Building an archive for Xcode 4.6 release with phonegap v 2.9 fails
Found a fix.
- In your Target's Build Settings, find
Other Linker Flags
- Change
$(TARGET_BUILD_DIR)/libCordova.a
- 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.
- In your Target's Build Settings, find "Other Linker Flags"
- Delete "$(TARGET_BUILD_DIR)/libCordova.a"
- 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".