Phonegap CDVViewController.h file not found when Archiving for iOS

前端 未结 10 592
青春惊慌失措
青春惊慌失措 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:45

    I was experiencing the exact same problem. I believe it may have been introduced because I moved the location of the Xcode project after I created it with Cordova's tools. Or, it may also be possible that I didn't properly setup the Cordova iOS toolset - perhaps I didn't run the installer package (I've rebuilt this machine a couple of times). Also, all the related answers I found with Google suggested I needed to change some of Cordova's core classes - which I wasn't willing to do.

    My solution was to use the Cordova create command to build an entirely new Xcode project. I copied my original project's www directory into the new project and then went about re-configuring the new project to match the settings of the original project.

    The new project, using the same plugins, frameworks and build settings successfully built an archive whereas the original project could not. It's not an ideal solution - but it worked.

提交回复
热议问题