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 1350
遥遥无期
遥遥无期 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 14:40

    After trying every solution with no success I ran:

    cordova platform update ios
    

    This fixed it for me. (XCODE 7.3.1, Cordova 6.3.0)

    Reference: Cordova app failing to Archive with Xcode 7.1 (Cordova/CDVViewController.h file not found)

    0 讨论(0)
  • 2020-12-07 14:40

    I was using xcode 7.3 and I was having the same problem. In my case the error was due to an error that was happening when executing "cordova platform add ios", an error was ocurring because an image couldn't be found in res folder and this was avoiding cordova platform add ios to finish correctly.

    0 讨论(0)
  • 2020-12-07 14:42

    I faced this issue when I removed and re-added the project, some resources files such as icons or splashes screen not found made the project doesn't create at all.

    0 讨论(0)
  • 2020-12-07 14:45
    1. In your Xcode project settings select TARGETS
    2. Within TARGETS select the Build Settings tab
    3. In the sub-options under the Build Settings tab be sure to select All
    4. Scroll down to the Search Paths section
    5. Locate Header Search Paths
    6. Add the following configuration to the Release option (as a new value on its own line):$(OBJROOT)/UninstalledProducts/$(PLATFORM_NAME)/include
    7. Clean the project: Command + Shift + K
    8. Restart Xcode

    The following screenshot demonstrates what you should see in Xcode 7.2 after following steps 1 to 6 (the line highlighted in blue displays the added configuration):

    0 讨论(0)
  • 2020-12-07 14:46

    The CDV.h file is present in CordovaLib/CordovaLib.xcodeproj/public. You can give this path and worked for me.

    I don't know how to give relative path. So I dragged/dropped the file and put it in "" with #import like:

    #import "dragged file full path"
    
    0 讨论(0)
  • 2020-12-07 14:50

    I had the same issue so i just removed <icon src="icon.png" /> from config file. then I removed&affffded IOS platform using cordova platform remove ios then cordova platform add ios

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