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 1450
遥遥无期
遥遥无期 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: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)

提交回复
热议问题