Phonegap 2.1.0 Cordova / CDVViewController.h文件未找到 [英] Phonegap 2.1.0 Cordova/CDVViewController.h file not found

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

问题描述

我安装了Xcode 4.5(没有安装以前的phonegap版本)。我已经下载,提取和创建项目通过Phonegap教程: http://docs.phonegap.com/en/2.1.0/guide_getting-started_ios_index.md.html#Getting%20Started%20with%20iOS

I have installed Xcode 4.5 (no previous phonegap version installed). I have downloaded,extracted and created project by Phonegap tutorial : http://docs.phonegap.com/en/2.1.0/guide_getting-started_ios_index.md.html#Getting%20Started%20with%20iOS

终端命令后: ./ create myproject〜/ Desktop / myproject com.test.myproject 我有successfly创建的结构。

After the terminal command : ./create myproject ~/Desktop/myproject com.test.myproject I have successfly created structure.

比我启动xcode和想要播放这个示例项目。 Xcode build失败并说:

Than i launch xcode and wanna Play this example project. Xcode build Fails and says:

词汇或处理器问题Cordova / CDVViewController.h文件未找到

我试图将这个缺少的标题添加到classes文件夹,修复了导入语法,但仍然是同样的问题。

I tried to add this missing header in to classes folder, repaired the import syntax, but still same problem.

有人解决了这个问题吗? / HOW?

Does anybody solved this problem?/HOW?

推荐答案

经过多次尝试,我决定阅读 Readme.md ./ update_cordova_subproject

After many attempts I decided to read Readme.md and solve the problem using ./update_cordova_subproject!

使用以下方式创建项目:

Create project using:

./create ~/Desktop/project com.example.project project

更新cordova子专案参考:

Update cordova subproject reference:

./update_cordova_subproject ~/Desktop/project/project.xcodeproj

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

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