libCordova.a file missing in PhoneGap 2.9

后端 未结 5 1504
小蘑菇
小蘑菇 2020-12-14 09:09

Can you plz help me? I am using XCode version 4.6.3 and phonegap version 2.9. The project is running fine in Simulator but when I want to make a IPA file, it always build fa

相关标签:
5条回答
  • 2020-12-14 09:25

    I you are using Xcode 5.0, do exactly the opposite and it works.

    0 讨论(0)
  • 2020-12-14 09:30

    If Prems answer doesn't fix the issue, try building your CordovaLib project first. After doing that I was able to build my project.

    0 讨论(0)
  • 2020-12-14 09:38

    In addition to several other suggestions & post, I found that I was experiencing this problem on my AdHoc builds only.

    The problem for me was the the CordovaLib subproject did not have an AdHoc configuration. Once I added an "AdHoc" configuration to the CordovaLib subproject, this started working.

    enter image description here

    Please note that I figured this out during debugging because if I set the Edit Scheme > Archive build configuration to "release" it would work OK, but if set to AdHoc it would give me a link error, telling me that this file could not be found:

    /Users/jason/Library/Developer/Xcode/DerivedData/MommyNearest-ceourmykvgxdekbkmzenuvhcfnzk/Build/Intermediates/ArchiveIntermediates/MommyNearest/BuildProductsPath/Adhoc-iphoneos/libCordova.a

    0 讨论(0)
  • 2020-12-14 09:44

    If you check the linker suggestion above and still not working. Make sure that Cordova project has the same configuration name. If your main project has "Debug, Release, and Production" configurations. Add same configurations in the Cordova project. Build Cordova and then build your project.

    0 讨论(0)
  • 2020-12-14 09:47

    Follow these steps to fix this problem:

    1. Go to project settings and Build Tab. Search for "Other Linker Flags"
    2. Double click on the linker flags for Release and Change ${TARGET_BUILD_DIR}/libCordova.a to ${BUILT_PRODUCTS_DIR}/libCordova.a
    3. Do the same for Debug
    4. Clean and build archive again
    0 讨论(0)
提交回复
热议问题