Error message

The spam filter installed on this site is currently unavailable. Per site policy, we are unable to accept new submissions until that problem is resolved. Please try resubmitting the form in a couple of minutes.

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:

  1. Click on your project in the left side bar
  2. Click 'Build Settings'
  3. Go to 'Other Linker Flags'
  4. Click 'Release'
  5. 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...

Add new comment