简体   繁体   English

Phonegap 2.3.0 Xcode错误编译

[英]Phonegap 2.3.0 Xcode Error Compiling

when I create a phonegap-xcode project through console, and then compile it I have an error I can't deal with. 当我通过控制台创建一个phonegap-xcode项目,然后对其进行编译时,出现了我无法处理的错误。 I have looked for a solution in several forums, groups, blogs, etc but no one fits well. 我在多个论坛,团体,博客等中寻找一种解决方案,但没有人适合。 Actually, no one gives a quite solution. 实际上,没有人提供一个完全解决方案。

The error I obtain is related to this import in the CordovaLib_Prefix.pch: 我获得的错误与CordovaLib_Prefix.pch中的此导入有关:

#ifdef __OBJC__
    #import <Foundation/Foundation.h>
#endif

I've got the error with XCODE 4.5, Phonegap 2.1.0, 2.2.0 and 2.3.0. 我遇到了XCODE 4.5,Phonegap 2.1.0、2.2.0和2.3.0的错误。

Thanks in advance, DGM.- 预先感谢DGM.-

Set your build target to iOS5.0 and remove armv6 from architecture list. 将构建目标设置为iOS5.0并从体系结构列表中删除armv6。 iOS4.x support has been dropped from Cordova/Phonegap 2.3 iOS4.x支持已从Cordova / Phonegap 2.3中删除

I had the exact same problem with Phonegap 2.7 and what i did was i downloaded latest version of phonegap from here rather than cordova and then follow the installation instructions from here . 我在Phonegap 2.7中遇到了完全相同的问题,我所做的是我从这里而不是cordova从这里下载了最新版本的phonegap,然后按照此处的安装说明进行操作。 Worked for me, hope will work for you. 为我工作,希望会为您工作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM