Xcode 7.2:在“存档"中:解决问题:“找不到Cordova/CDVViewController.h文件".虽然在构建应用程序时没有此类问题 [英] Xcode 7.2: In “Archive”: Getting the issue: “Cordova/CDVViewController.h’ file not found ”. While there is no such issues in building the app

查看:65
本文介绍了Xcode 7.2:在“存档"中:解决问题:“找不到Cordova/CDVViewController.h文件".虽然在构建应用程序时没有此类问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在iOS中,我更新了7.2.我可以毫无问题地将现有项目构建到我的设备上.但是,当需要归档项目以准备提交到应用商店时,我遇到了构建错误-找不到Cordova/CDVViewController.h文件.我经历了几乎没有发现Stack Overflow和Google的所有修复程序/变通办法,但它们都没有为我工作.如果我回到Xcode 6.4,则可以毫无问题地进行构建和存档,但是由于它运行的是iOS 9.1,因此无法构建至我的设备.

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 store, however, I'm getting a build error - Cordova/CDVViewController.h file not found. I've gone through just about every fix/workaround that I've not found Stack Overflow, and Google, and none of them have worked for me. If I go back to Xcode 6.4 I can build and archive no problem, but I can't build to my device now that it's running iOS 9.1.

我猜这是新的Xcode版本设置引起的配置问题.还有其他人碰到这个吗?同样,通常的可疑对象(首选项">位置">派生数据">高级">唯一"),标头搜索路径等似乎都很好.

I'm guessing it's a configuration issue somewhere with the new Xcode version setup. Has anyone else run into this? Again, the usual suspects (Preferences > Location > Derived Data > Advanced > Unique), Header Search Paths, etc. all seem to be fine.

谢谢, Adisheshu

Thanks, Adisheshu

推荐答案

由于搜索路径/包含,此问题似乎出现在Xcode 7.2中.

This issues seems to appear in Xcode 7.2 due to search path/include.

通过以下方式解决此问题:

Solve this in following way:

  1. 在Xcode 目标中选择您的[projectName].

转到构建设置标签.

确保将过滤器设置为全部"而不是基本".

Make sure that the filter is set to "All" and not "Basic".

搜索标题搜索路径"

双击,然后将此路径添加到"Debug"和"Release":$(OBJROOT)/UninstalledProducts/$(PLATFORM_NAME)/include

Double click and add this path to both "Debug" and "Release": $(OBJROOT)/UninstalledProducts/$(PLATFORM_NAME)/include

现在清理项目并重新启动 Xcode.

Now clean the Project and restart Xcode.

能够进行 Build Archive .

仅此而已.

这篇关于Xcode 7.2:在“存档"中:解决问题:“找不到Cordova/CDVViewController.h文件".虽然在构建应用程序时没有此类问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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