2014-07-02 31 views
0

我正在开发与phonegap的应用程序,我一直在使用android模拟器测试应用程序,我没有任何问题,但我无法得到它为iOS工作。在phonegap(为android工作正常)构建应用程序的错误

我正在使用Mac OS小牛,并安装了Xcode。

当我运行命令“PhoneGap的运行IOS”,我得到如下:

[phonegap] detecting iOS SDK environment... 
[phonegap] using the local environment 
[phonegap] compiling iOS... 
Build settings from command line: 
ARCHS = i386 
CONFIGURATION_BUILD_DIR = /Users/usuario/Desktop/desarrolloapp/nombreapp/platforms/ios/build/emulator 
SDKROOT = iphonesimulator7.1 
VALID_ARCHS = i386 

xcodebuild: error: The project ‘NombreApp.xcodeproj’ does not contain a target named ‘NombreApp’. 
[error] /Users/usuario/Desktop/desarrolloapp/nombreapp/platforms/ios/cordova/build: Command failed with exit code 65 

什么回事任何想法?

编辑:我解决这个问题做的:

  1. 从平台上删除IOS文件夹。
  2. 再次运行(phonegap运行ios)。
  3. 用命令安装ios-sim sudo npm install -g ios-sim。
  4. 一切正常!

非常感谢。

此致敬礼。

+0

在Xcode手动创建具有名称'NombreApp'目标为[这里给出](http://stackoverflow.com/questions/14651166/how-to-create-or-define-a-new-target-in-a-custom-xcode-project-template)。 – byJeevan

+0

解决了目标问题,按照你所说的去做。 然后我有一个文件libCordova.a没有找到问题。 在更改Xcode项目的构建设置中的选项并且没有解决这个问题之后,我做了下一步: 1.从平台上删除ios文件夹。 2.再次运行。 3.用命令sudo npm install -g ios-sim安装ios-sim。 4.一切正常! 谢谢。 – FranciscoVillen

+0

干杯,祝你好运。 – byJeevan

回答

相关问题