Xcode 7.2: In “Archive”: Getting the issue: “Cordova/CDVViewController.h’ file not found ”. While there is no such issues in building the app

前端 未结 17 1354
遥遥无期
遥遥无期 2020-12-07 14:00

In iOS, I update 7.2. I\'m able to build my existing project to my device with no problem. When it came time to archive the project to prepare for submission to the app sto

相关标签:
17条回答
  • 2020-12-07 15:00

    For me following worked

    Xcode 8.1 ios 10.x

    (target -> Build Settings -> Header search paths )

    "${PODS_ROOT}/Cordova/CordovaLib/Classes/Public"

    as

    "${PODS_ROOT}/Headers/Public" folder was empty

    0 讨论(0)
  • 2020-12-07 15:01

    You should update your project's Cordova iOS version to 3.9.2 (latest version of 3 as of 3/11/16). I got this same error when using 3.8.0 and it was fixed in 3.9.

    Alternatively, you could upgrade to Cordova iOS v4.1.0 (bleeding edge as of 3/11/16) but be aware you lose support for iOS 6 and 7, and cordova-plugin-screen-orientation isn't updated to use 4 yet so you have to lock your app in portrait or landscape.

    EDIT:

    Without upgrading you can fix this manually in XCode. go to

    Build Settings -> Header Search Paths : Change:

    $(OBJROOT)/UninstalledProducts/include
    

    to:

    $(OBJROOT)/UninstalledProducts/$(PLATFORM_NAME)/include
    

    (related issue on apache.org)

    0 讨论(0)
  • 2020-12-07 15:03

    The above solutions did not work for me.

    In my case, when I build my iOS platform, CordovaLib folder was not included.
    1. Delete existing CordovaLib.xcodeproj
    2. Add existing files. Add CordovaLib.xcodeproj from CordovaLib folder
    3. Add dependencies and select CordovaLib
    4. Add link Binaries with library and select libCordova.a
    

    Thats it!

    0 讨论(0)
  • 2020-12-07 15:06

    Uninstall And reinstall Cordova Platform

    cordova platform rm ios
    
    cordova platform add ios
    
    0 讨论(0)
  • 2020-12-07 15:07

    Also set ENABLE BITCODE = NO in the Build Settings

    0 讨论(0)
提交回复
热议问题