I recently switched my development MacBook from a classic MacBook (32 bit) to a MacBook Air (64 bit). I am trying to open a project that was made on my old MacBook (32 bit) running XCode 4.
The project is a PhoneGap application made in PhoneGap 1.7.0.
My new MacBook Air (64 bit) is running XCode 5.
I imported my developer profiles from my old MacBook to my new MacBook Air. But when I try to run it, I get the following error message.
I have tried changing the my architecture in the build settings to armv7 but still no luck :(
Does anyone know why I'm getting this error and how to fix it?
Thanks
Xcode 5 asks you to build your libraries for the simulator (1) and for iOS (2). You can then merge (3) these into a fat binary which you then link to your main project. I use the same flags as Xcode is using to build your main project (as seen in your screendump).
Expressed in common gnu toolchain variables I do:
1. Building a library for the simulator
2. Building a library for iOS
3. Merging to a fat binary
Choose either of
.a
or.dylib
depending on what you use:OK so as it turns out, XCode 5 changes the default architecture to armv7 when my application does not support armv7. I am running Cordova 1.7.0 and that version does not have support for armv7 architecture.
Fix architecture issue:
Build Settings
-->Valid Architecture
armv6
toBuild Settings
-->Valid Architecture
Fix
libSystem.B.dylib
issue:Removed
/usr/lib/libSystem.B.dylib
fromBuild Settings
-->Linking
-->Other Linker Flags
Also removed
-weak_library
fromBuild Settings
-->Linking
-->Other Linker Flags