Phonegap CDVViewController.h file not found when Archiving for iOS

前端 未结 10 564
青春惊慌失措
青春惊慌失措 2020-11-27 12:57

I\'m currently using Phonegap 2.0 to develop an iOS App in XCode. The app builds and runs fine in the emulator and also on the testing devices.

The problem appears w

相关标签:
10条回答
  • 2020-11-27 13:27
    $(OBJROOT)/UninstalledProducts/$(PLATFORM_NAME)/include
    

    Adding this to the "Search Paths" section in "Build Settings" work perfectly.

    Search Paths in XCode Build Settings

    0 讨论(0)
  • 2020-11-27 13:30

    For future ref:

    I just fixed this exact problem for myself.

    If you are using Cordova cli, and have your config.xml updated, you can just remove ios as a platform and add it back. Then archive again from XCode.

    cordova platform remove ios
    cordova platform add ios
    

    Hope that helps, worked perfectly for me,

    0 讨论(0)
  • 2020-11-27 13:32

    Xcode 7.2 is a little different

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

    needs to be put in the header search paths for debug and for release.

    Header search paths have a debug and release sub field

    0 讨论(0)
  • 2020-11-27 13:34

    Managed to fix it.

    These were missing from "Header Search Path" in the build setting of my TARGET settings:

    "$(TARGET_BUILD_DIR)/usr/local/lib/include"
    "$(OBJROOT)/UninstalledProducts/include"
    "$(BUILT_PRODUCTS_DIR)"
    

    Get the solution form multiple sources:

    Upgrading Cordova iOS (Stepts from 31) http://docs.phonegap.com/en/2.0.0/guide_upgrading_ios_index.md.html#Upgrading%20Cordova%20iOS

    Bug report https://issues.apache.org/jira/browse/CB-1122

    Discussion at groups.google.com/forum/?fromgroups=#!topic/phonegap/IcR8-ijrUfk

    Discussion at groups.google.com/forum/?fromgroups=#!topic/phonegap/PzqZEm8QKmc

    0 讨论(0)
  • 2020-11-27 13:36

    I was facing the same issue when copying my project to another folder. I'm using Phonegap 2.0.0. After trying several solutions without success, I ran Product->Clean and everything worked properly. Do not ask me why but this path already solved several small glitches that I had to deal with, i.e. changing splash and icon files, who was not updated on device. Hope this help.

    0 讨论(0)
  • 2020-11-27 13:38

    Xcode 6.x

    add $(OBJROOT)/UninstalledProducts/include to BuildSettings->Header Search Paths

    Xcode 7.x

    add $(OBJROOT)/UninstalledProducts/$(PLATFORM_NAME)/include to BuildSettings->Header Search Paths

    1.Double click the <multiple values> and you can add this in.

    2.Change $(OBJROOT)/UninstalledProducts/include to $(OBJROOT)/UninstalledProducts/$(PLATFORM_NAME)/include

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