Cordova应用无法使用Xcode 7.3归档(找不到Cordova / CDVViewController.h文件) [英] Cordova app failing to Archive with Xcode 7.3 (Cordova/CDVViewController.h' file not found)

查看:176
本文介绍了Cordova应用无法使用Xcode 7.3归档(找不到Cordova / CDVViewController.h文件)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个项目与Cordova(6.1.1)/ Phonegap(5.3.10)。我试图用Xcode 7.3构建一个ipa文件。当我点击产品>存档,构建失败,日志说:Cordova / CDVViewController.h文件找不到。我可以成功地将项目构建到一个设备,所以我有点失去知道的问题可能是什么。



我试图改变标题搜索路径



$(OBJROOT)/卸载的产品/ include





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



阅读此帖
Xcode 7.2:在存档:获取问题:Cordova / CDVViewController.h'文件未找到。虽然在构建应用程序没有这样的问题



我试图更改chage以启用位码为否,但仍然没有运气归档我的app。



从stackoverflow的许多读数问题似乎是与标题搜索路径,但这没有解决我的问题。不知道如果Xcode 7.3上有其他东西,因为其他帖子是与Xcode 7.2及以下。不知道如何解决这个问题,是否有其他人遇到过这个问题?



更新(解决方案)



在构建设置>部署>安装所有者下。

解决方案

尝试一下,这应该可以工作。




  • 在您的终端机运行此程序:cordova platform update ios


  • Xcode


  • 前往偏好设定 - >位置 - >进阶

    作为构建位置的选项


  • 产品 - >清除


  • 产品 - >构建




试用 cordova平台更新ios 修正了问题


的问题

I have a project with Cordova(6.1.1)/Phonegap(5.3.10). I am trying to build an ipa file with Xcode 7.3. When I click on Product > Archive the build fails, and the log says: 'Cordova/CDVViewController.h' file not found. I can successfully build the project to a device, so i am kinda lost knowing what the problem might be.

I have tried to change the Header Search Path from

"$(OBJROOT)/UninstalledProducts/include"

to

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

from reading this post Xcode 7.2: In "Archive": Getting the issue: "Cordova/CDVViewController.h’ file not found ". While there is no such issues in building the app

I have tried to change chage to enable bitcode to "no", but still no luck at Archiving my app.

From many readings here on stackoverflow the issue seems to be with header search path, but this havent solved my issue. Dont know if there is something else on Xcode 7.3, because the other posts is with Xcode 7.2 and below. Dont know how to solve this issue, has anyone else experienced this problem?

Update (Solution):

Under Build Settings > Deployment > Install owner. I left that blank and then it finally worked.

解决方案

Try this out, this should work.

  • Run this in your terminal: cordova platform update ios

  • Open your project in Xcode

  • Go to Preference -> Locations -> Advanced

  • Choose "Unique" as the option for Build Location

  • Product -> Clean

  • Product -> Build

Try out cordova platform update ios as well as it fixed the problem for the questioner

这篇关于Cordova应用无法使用Xcode 7.3归档(找不到Cordova / CDVViewController.h文件)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆