我有一个使用Cordova(6.1.1)/Phonegap(5.3.10)的项目。我试图使用Xcode 7.3构建ipa文件。当我点击Product > Archive时,构建失败并显示日志:'Cordova/CDVViewController.h'文件未找到。我可以成功地将项目构建到设备上,所以我不知道问题可能是什么。
我尝试更改Header Search Path,从
"$(OBJROOT)/UninstalledProducts/include"
到
"$(OBJROOT)/UninstalledProducts/$(PLATFORM_NAME)/include"
从这篇文章中阅读: Xcode 7.2: In “Archive”: Getting the issue: “Cordova/CDVViewController.h’ file not found ”. While there is no such issues in building the app 我尝试将启用bitcode更改为“否”,但仍无法在我的应用程序中进行归档。
根据在stackoverflow上的许多阅读,问题似乎与头搜索路径有关,但这没有解决我的问题。不知道Xcode 7.3是否还有其他问题,因为其他帖子都是针对Xcode 7.2及以下版本的。不知道如何解决此问题,是否有其他人遇到过这个问题?
更新(解决方案):
在Build Settings > Deployment > Install owner下,我将其留空,然后它最终起作用了。
我尝试更改Header Search Path,从
"$(OBJROOT)/UninstalledProducts/include"
到
"$(OBJROOT)/UninstalledProducts/$(PLATFORM_NAME)/include"
从这篇文章中阅读: Xcode 7.2: In “Archive”: Getting the issue: “Cordova/CDVViewController.h’ file not found ”. While there is no such issues in building the app 我尝试将启用bitcode更改为“否”,但仍无法在我的应用程序中进行归档。
根据在stackoverflow上的许多阅读,问题似乎与头搜索路径有关,但这没有解决我的问题。不知道Xcode 7.3是否还有其他问题,因为其他帖子都是针对Xcode 7.2及以下版本的。不知道如何解决此问题,是否有其他人遇到过这个问题?
更新(解决方案):
在Build Settings > Deployment > Install owner下,我将其留空,然后它最终起作用了。