Building an archive for Xcode 4.6 release with phonegap v 2.9 fails Building an archive for Xcode 4.6 release with phonegap v 2.9 fails ios ios

Building an archive for Xcode 4.6 release with phonegap v 2.9 fails


Found a fix.

  1. In your Target's Build Settings, find Other Linker Flags
  2. Change $(TARGET_BUILD_DIR)/libCordova.a
  3. To $(BUILT_PRODUCTS_DIR)/libCordova.a


It's does not works for me to change to "$(BUILT_PRODUCTS_DIR)/libCordova.a" in "Other Linker Flags". The problem still exist. (Xcode 4.6.3 phonegap 2.9.0)

So, I try the setting below and it works for me.

  1. In your Target's Build Settings, find "Other Linker Flags"
  2. Delete "$(TARGET_BUILD_DIR)/libCordova.a"
  3. Change "-force_load" to "-all_load"

This did the trick for me.

======== Update ============

With the above trick, I can achieve the app and submit to App Store with no issue.But I found out in the iTune Connect that it shows "Invalid binary".


matomo