PhoneGap Xcode找不到Build'Cordova / CDVViewController.h'文件的头文件 [英] PhoneGap Xcode Missing Header files on Build 'Cordova/CDVViewController.h' file not found

查看:143
本文介绍了PhoneGap Xcode找不到Build'Cordova / CDVViewController.h'文件的头文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用PhoneGap 2.2.0和XCode 4.5.2。



我可以在模拟器中测试我的程序,我可以把它们放在我的设备上测试他们。



但我根本不能构建分发。它总是失败,并显示以下错误:



my-projevt-path / Classes / AppDelegate.h:30:9:Cordova / CDVViewController.h / p>

我已经看到了这个网络上的问题,仍然无法使它工作,给出了已经发布的解决方案。



我已经改变了Build Settings中的内容,我重新安装了PhoneGap,我在终端中运行了新行,我已经完成了我的应用程序,从头开始一个新的PhoneGap项目,在Xcode中建立位置...我无法确定这一切。



请问,有人可以帮助吗?

解决方案

p>在我的情况下,答案似乎与发送的错误消息无关。缺少头文件?这似乎不是问题。或者,至少不是问题的直接原因。



这是一个问题,我的配置/证书是不知何故不正确。



我将工作发送给另一位开发人员,他在机器上打开它,撤销了我的证书并创造了新的,并建立它,而不改变任何其他。他向我转发了证书,配置和作业存档。我打开xCode中的存档,并验证它并上传。很好。



如果你有这个问题,确定你的证书/配置设置正确。我以为我是,但显然不是? 苹果进程是绝对怪异的,当证书/配置文件搞乱,问题出现。


I am using PhoneGap 2.2.0 and XCode 4.5.2.

I can test my programs in the simulators, and I can put them on my devices to test them.

But I simply cannot build for distribution. It always fails with the following error:

my-projevt-path/Classes/AppDelegate.h:30:9: 'Cordova/CDVViewController.h' file not found

I've seen this problem around the web and still can't make it work, given whatever solutions have been posted.

I've changed things in Build Settings, I've reinstalled PhoneGap, I've run new lines in terminal, I've done my app over starting a new PhoneGap project from scratch, I've checked preferences in the build location in Xcode... I can't figure this out AT ALL.

Please, can anyone help? I've been working on this for days.

Thanks!

解决方案

The answer, in my case, had seemingly nothing to do with the error message that was being sent. Missing header files? That didn't seem to be the issue. Or, at least, not the direct cause of the issue.

This was an issue with my provisioning/certificates being somehow not right. I had re-created them several times, but it continued to be an issue.

I sent the job to another developer, who opened it on his machine, revoked my certificates and created new ones, and built it without changing anything else. He forwarded me the certificate, the provisioning, and an archive of the job. I opened the archive in xCode and validated it and uploaded it. And it was fine.

If you have got this problem, be certain your certificate/provisioning is set up right. I thought mine was, but apparently it wasn't? The "Apple Process" is definitely weird, and when certificates / profiles gets messed up, problems arise.

这篇关于PhoneGap Xcode找不到Build'Cordova / CDVViewController.h'文件的头文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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