Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Bad CPU type in executable

Tags:

ios

I have to update an application for iOS, which is running from iOS 3.1.3 to the latest 5.1.

When I build the code on the new Xcode 4.3.1 and try to test this app on an old device with iOS 3.1.3 I get an error "Bad CPU type on executable".

iOS Deployment Target = 3.1.3
Architectures = armv6 $(ARCHS_STANDARD_32_BIT) - armv6 $
Valid Architectures = armv6 armv7

If I add armv5 to the list of valid architectures, the code is installed on the device, but the application starts with a black screen and nothing happens. Then I can stop the program and start it on the device. It seems to be working then.

Is it allowed to add armv5 to the list of valid architectures? Is this the solution to get rid of the error?

like image 836
thpitsch Avatar asked Mar 30 '26 22:03

thpitsch


1 Answers

I saw the same problem today with iOS 4.1 and Xcode 4.3.3. The fix - just re-open Xcode and re-connect the phone.

like image 137
Pavel Avatar answered Apr 02 '26 06:04

Pavel