KimoW / mobileterminal

Automatically exported from code.google.com/p/mobileterminal
0 stars 0 forks source link

[HowToFix] Crashes on ARMV6 Devices #187

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Build the application for iPhoneOS Device.
2. Install on an iPod Touch or iPhone 3Gs or older.
3. Try to open the application.

The application should open, but crashes because it doesn't have the correct 
binary for the current architecture.

How To Fix It:
1. Right click MobileTerminal under Targets, and click Get Info.
2. Change Configuration to All Configurations
3. Change Architectures to Standard (armv6 armv7)

Original issue reported on code.google.com by ryanbobp...@gmail.com on 3 Aug 2010 at 11:59

GoogleCodeExporter commented 8 years ago
I guess the iPhone 3GS, iPod Touch 3G, and iPad are all ARMV7 in addition to 
the iPhone 4. But my friend said the app crashed on his iPod Touch 2G, and gave 
him this error in console: 
"(UIKitApplication:com.googlecode.mobileterminal.Terminal[0xaaa8]) 
posix_spawn("/Applications/Terminal.app/Terminal", ...): Bad CPU type in 
executable"

When I did the steps above, it opened fine on his 2nd gen. I forgot a step 
between 1 and 2 though. Make sure you are on the Build tab with all the 
configuration settings.

Original comment by ryanbobp...@gmail.com on 5 Aug 2010 at 5:58

GoogleCodeExporter commented 8 years ago
How can I do a right click on an iPod Touch and where i can find the Targets?

Original comment by Tom.sla...@gmail.com on 11 Aug 2010 at 6:56

GoogleCodeExporter commented 8 years ago
Sorry, but these are instructions on how to fix the Xcode Project on Mac. You 
will have to have someone else build it if you don't have access to a Mac.

Original comment by ryanbobp...@gmail.com on 12 Aug 2010 at 4:21

GoogleCodeExporter commented 8 years ago
Thanks for the detailed bug report.
Fixed with r443

Original comment by allen.po...@gmail.com on 14 Aug 2010 at 7:17

GoogleCodeExporter commented 8 years ago
I have fixed similar error right now :) Maybe it will helps somebody. 

1. My app works greate - i built it for iPhone 3G, 3GS, 4 and iPad. Everything 
was ok. I always build in Release configuration (simply don't want to forget to 
switch it back). I mean building from XCode directly on device.
2. I decide to test AdHoc version. It works on iPhone 4, don't install with 
iTunes on iPod 3GS and install but crashes on iPhone 3G with the same error in 
console: " (UIKitApplication ... posix_spawn ... Bad CPU type in executable "
3. I found this "How To Fix" but my architecture was Standard (armv6 armv7) to 
All Configurations.
4. Buuuuuuuuuuuuuuut :))) "Build Active Architecture Only" was setted to "No" 
in Release configuration! And when iPhone 4 was connected to computer XCode 
build in ARMV7 only, and the same for iPhone 3G/3GS - ARMV6. But when i built 
ARMV7 - i tryed to launch it on ARMV6 devices and it didn't work!
5.So.... i checked   "Build Active Architecture Only" both Debug and Release to 
"No"

Original comment by fed...@gmail.com on 25 Aug 2011 at 4:32

GoogleCodeExporter commented 8 years ago
I have fixed similar error right now :) Maybe it will helps somebody. 

1. My app works greate - i built it for iPhone 3G, 3GS, 4 and iPad. Everything 
was ok. I always build in Release configuration (simply don't want to forget to 
switch it back). I mean building from XCode directly on device.
2. I decide to test AdHoc version. It works on iPhone 4, don't install with 
iTunes on iPod 3GS and install but crashes on iPhone 3G with the same error in 
console: " (UIKitApplication ... posix_spawn ... Bad CPU type in executable "
3. I found this "How To Fix" but my architecture was Standard (armv6 armv7) to 
All Configurations.
4. Buuuuuuuuuuuuuuut :))) "Build Active Architecture Only" was setted to "No" 
in Release configuration! And when iPhone 4 was connected to computer XCode 
build in ARMV7 only, and the same for iPhone 3G/3GS - ARMV6. But when i built 
ARMV7 - i tryed to launch it on ARMV6 devices and it didn't work!
5.So.... i checked   "Build Active Architecture Only" both Debug and Release to 
"No"

Original comment by fed...@gmail.com on 25 Aug 2011 at 4:32