简体   繁体   English

我是否需要iPhone Developer许可证才能在ios模拟器中运行cordova / phonegap?

[英]Do I need iPhone Developer license to run cordova/phonegap in ios simulator?

I don't have an iPhone developer license. 我没有iPhone开发者许可证。 It was working fine when I execute "cordova run ios" Then I created a new project using "cordova create test_app" When I run "cordova run ios", it throws this error. 当我执行“ cordova run ios”时运行正常,然后使用“ cordova create test_app”创建了一个新项目。当我运行“ cordova run ios”时,会引发此错误。
Then the project that used to work is also failing with the same error? 然后,用于工作的项目也因相同的错误而失败了?

Check dependencies
Code Sign error: No matching codesigning identity found: No codesigning identities (i.e. certificate and private key pairs) matching “iPhone Developer” were found.
CodeSign error: code signing is required for product type 'Application' in SDK 'iOS 7.1'

** BUILD FAILED **


The following build commands failed:
    Check dependencies
(1 failure)
Error: /Users/Anthony/dev/test_app/platforms/ios/cordova/run: Command failed with exit code 65
    at ChildProcess.whenDone (/usr/local/lib/node_modules/cordova/src/superspawn.js:126:23)
    at ChildProcess.EventEmitter.emit (events.js:98:17)
    at maybeClose (child_process.js:753:16)
    at Process.ChildProcess._handle.onexit (child_process.js:820:5)

Be sure to have no device connected to the Mac else phonegap will try to build and deploy your app on it. 确保没有设备连接到Mac,否则phonegap会尝试在其上构建和部署您的应用程序。 I had the issue with my iPhone plugged in. Also in Xcode be sure that you build the debug release with command line tools (in the info tab of project properties) 我在插入iPhone时遇到了问题。另外,在Xcode中,请确保使用命令行工具(在项目属性的“信息”选项卡中)构建调试版本。

I would suggest you to go over the solution in this thread - which tells you how to disabling Code Signing. 我建议您仔细研究该线程中的解决方案-它告诉您如何禁用代码签名。 Anyway, no harm in checking this - 无论如何,检查此无害-

Verify that the Code Signing section's Code Signing Identity within the project settings is set to None - 验证项目设置中“代码签名”部分的“代码签名身份”是否设置为“ 无” -

在此处输入图片说明

Search for Code Signing in Target of your app, and check if Don't Code Sign is chosen. 在您的应用程序目标中搜索代码签名 ,然后检查是否选择了“不进行代码签名”

在此处输入图片说明

Ey y

One thing is to play with XCode and Cordova to make a new project and learn how phonegap or another wrapper works and a different thing is to publish an application. 一件事是与XCode和Cordova一起创建一个新项目,并了解phonegap或另一个包装程序的工作方式,而另一件事是发布应用程序。 Following the apple specifications, you can always create a new application and test it in the simulator. 按照苹果的规格,您始终可以创建一个新的应用程序并在模拟器中对其进行测试。 The benefits of becoming an apple developer are you can try your applications in a physical device but it doesnt mean you cant create an application and try it in the simulator. 成为Apple开发人员的好处是您可以在物理设备上尝试应用程序,但这并不意味着您无法创建应用程序并在模拟器中进行尝试。 If you have tried to run the application in a real device, XCode will complain about the required credentials because you are not an apple developer and you dont have your certificate installed in the keychain so the application cant be signed for deployment on a real device. 如果您尝试在真实设备上运行该应用程序,则XCode会抱怨所需的凭据,因为您不是Apple开发人员,并且您没有在证书链中安装证书,因此无法对该应用程序进行签名以部署在真实设备上。 If you want to test the application in a device "Yes" you need to become an apple developer and pay the fee, if not, dont worry you can run as many applications as you want in the simulator. 如果要在设备中测试应用程序“是”,则需要成为Apple开发人员并支付费用,否则请不要担心,您可以在模拟器中运行任意数量的应用程序。 Check the settings of your project as well to see if there is something wrong. 还要检查项目的设置,看是否有问题。

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

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