xCode - Apple Mach-O Linker Error - Linker command failed with exit code 1
Category:
With PhoneGap 2.9.0 (Cordova), while trying to compile in xCode to build a mobile application for release, I receive this error:
Apple Mach-O Linker Error - Linker command failed with exit code 1
To fix this problem, this worked for me in xCode:
- Click on your project in the left side bar
- Click 'Build Settings'
- Go to 'Other Linker Flags'
- Click 'Release'
- Change the "-force_load" value from this:
${TARGET_BUILD_DIR}/libCordova.a
to this:
${BUILT_PRODUCTS_DIR}/libCordova.a
After that, just re-compile and the error should go away! We can only hope...