归档分发时找不到Phonegap CDVViewController.h [英] Phonegap CDVViewController.h not found when archiving for distribution

查看:99
本文介绍了归档分发时找不到Phonegap CDVViewController.h的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 Xcode 4.5.2 版本2.2的Cordova / Phonegap 中遇到此问题。这是一个新项目 - 所以在没有任何东西在 www 文件夹中修改。当我构建在调试模式一切都很好。当我尝试以分发模式(AdHoc或App Store)进行存档时,会出现以下错误:

I am experiencing this issue in version 2.2 of Cordova/Phonegap in Xcode 4.5.2. This is a new project - so right off the bat without anything in the www folder modified. When I build in Debug mode everything goes fine. When I try to build for archiving in distribution mode (AdHoc or App store) I get this error:

'Cordova/CDVViewController.h' file not found

以帮助澄清情况?

我已经尝试从头开始几次(根据我遇到的一些类似问题的建议)以及卸载和重新安装Xcode为好的措施。我的Xcode 派生数据位置设置为唯一(根据另一个类似问题)。我还对项目执行了 update_cordova_subproject ,没有任何效果。

I have tried starting from scratch several times (as per the suggestion of some similar questions I've seen asked) as well as uninstalling and reinstalling Xcode for good measure. My Xcode derived data location is set to Unique (as per another similar question). I have also performed update_cordova_subproject on the project to no effect.

感谢这里有任何帮助! p>

Thanks so much for any help here!

推荐答案

在尝试每个解决方案后,我找到(包括Jonathan发布的这个问题)没有成功我解决了我的问题。希望这个答案增加到其他人的名单将帮助别人。如果我的答案不适用于你的类似情况,请查看下面列出的列表Jonathan这是其他可能的解决方案的完整列表。

After trying every solution I could find (including the ones Jonathan posted for this question) with no success I have solved my problem. Hopefully this answer added to the list of others will help someone else. If my answer does not apply to your similar situation please check out the list below posted by Jonathan which is a comprehensive list of other possible solutions.

我有点独特的情况:一个前2.0版Phonegap(当我能够编译时)我已经为AdHoc和AppStore创建了一个自定义构建配置。我们默认的是Debug和Release,我创建了两个自定义配置,所以当我从AppStore版本切换到AdHoc版本时,我不需要切换代码签名证书。

My somewhat unique situation: In a pre 2.0 version of Phonegap (when I was able to compile) I had created a custom build configuration for AdHoc and AppStore. The defaults we have are "Debug" and "Release" and my two custom configurations were created so I didn't have to switch the code signing certificates when I switched from an AppStore release to an AdHoc build.

问题/解决方案:在后2.0 Phonegap中,我们有一个CordovaLib.xcodeproj子项目的实例(这是新的)...这意味着如果我要使用自定义构建主项目我也要在这个子项目中添加自定义生成配置。

The problem/solution: In post 2.0 Phonegap we've got an instance of CordovaLib.xcodeproj subproject (this is new)... which means if I'm going to use a custom build in my main project I have to add that custom build configuration in this subproject as well.

项目导航>>点击CordovaLib.xcodeproj >>点击 em> CordovaLib >> Configurations >>确保您将使用的构建存在(按名称)在此列表中。无需进一步配置,假设您已经在您的主项目中已经处理过这些在过去创建这些自定义构建配置。

Project Navigator >> Click CordovaLib.xcodeproj >> Click on the project CordovaLib >> Configurations >> make sure whichever build you are going to use exists (by name) in this list. No further configuration is necessary assuming you've already dealt with this in your main project having created these custom build configurations in the past.

这篇关于归档分发时找不到Phonegap CDVViewController.h的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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