在Xcode中存档时找不到“Cordova / CDVViewController.h”(来自Worklight) [英] 'Cordova/CDVViewController.h' not found when Archiving in Xcode (from Worklight)
问题描述
在提交到App Store之前尝试存档我的应用时,我遇到此错误消息。
I'm suffering this error message when trying to Archive my app prior to submission to the App Store.
完整的错误是:
来自/ Users / Kevin的文件/Documents/workspace/SongLink2/apps/SLPhone/iphone/native/Classes/CDVMainViewController.m:14:
Classes / CDVMainViewController.h中包含的文件:15:
/ Users / Kevin / Documents /工作区/ SongLink2 / apps / SLPhone / iphone / native / WorklightSDK / include / MainViewController.h:34:9:致命错误:找不到'Cordova / CDVViewController.h'文件
In file included from /Users/Kevin/Documents/workspace/SongLink2/apps/SLPhone/iphone/native/Classes/CDVMainViewController.m:14: In file included from Classes/CDVMainViewController.h:15: /Users/Kevin/Documents/workspace/SongLink2/apps/SLPhone/iphone/native/WorklightSDK/include/MainViewController.h:34:9: fatal error: 'Cordova/CDVViewController.h' file not found
#import <Cordova/CDVViewController.h>
^
1 error generated.
我正在使用Worklight 6.2来生成添加了两者的项目Android和iPhone环境)。然后我切换到Xcode 6来运行我的应用程序。这对于Run来说是成功的,但是当我的产品 - >存档错误时失败。
I'm using Worklight 6.2 to generate the project having added both Android and iPhone environments). I then switch to Xcode 6 to Run my app. This is successful for Run but fails when I Product->Archive with the error.
我最近将所有内容升级到:
I've recently upgraded everything to:
- IBM Worklight Studio 6.2。 0.00-20140915-1601
- Xcode 6.0.1(6A317)
...但是没有成功。
... but with no success.
我试过:
- 更改标题>搜索路径:但这没有任何效果。这也建议重新安装Cordova,但我不确定如何在Worklight环境中执行此操作。
- 执行产品 - >清理无效。这个讨论还建议运行./update_cordova_subproject / path / to / your / project但我不知道Worklight在哪里安装了cordova来尝试它。
- 许多讨论建议Xcode-> Preferences->位置 - >高级并确保它已设置为唯一...但我已设置为此值。
- 类似:但这似乎没有得到解决
- Changing Header>Search Paths: but this had no effect. This also suggest reinstalling Cordova but I'm unsure how to do this in a Worklight environment.
- Perform Product->Clean with no effect. This discussion also suggested running ./update_cordova_subproject /path/to/your/project but I don't know where Worklight installed cordova to try it.
- Many discussions suggest Xcode->Preferences->Locations->Advanced and make sure it's set to Unique... but I'm already set to this value.
- similar: but this didn't seem to get resolved
请帮助我完成应用程序商店提交的最后一步!
Please help me on my last step to app store submission!
推荐答案
我遇到了这个问题,解决方案是一个经典的XCode神秘咒语添加到您的搜索路径:
I experienced this problem and the solution was a classic XCode mystery incantation to add to your search path:
"$(OBJROOT)/UninstalledProducts/$(PLATFORM_NAME)/include"
在此网站上找到:
这篇关于在Xcode中存档时找不到“Cordova / CDVViewController.h”(来自Worklight)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!