Ionic运行无法部署到设备 [英] Ionic run fail to deploy to device
本文介绍了Ionic运行无法部署到设备的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我使用Mac OS X 10.11。我试图通过运行 sudo ionic run ios --device
来部署构建到设备(iPhone 4),我收到此错误消息:
I am using Mac OS X 10.11. I am trying to deploy build to device (iPhone 4) by running sudo ionic run ios --device
and I get this error message:
Check dependencies
Code Sign error: No code signing identities found: No valid signing identities (i.e. certificate and private key pair) were found.
** BUILD FAILED **
The following build commands failed:
Check dependencies
(1 failure)
Error code 65 for command: xcodebuild with args: -xcconfig,/Users/john/Desktop/Myproject/platforms/ios/cordova/build-debug.xcconfig,-project,Myproject.xcodeproj,ARCHS=armv7 armv7s arm64,-target,Myproject,-configuration,Debug,-sdk,iphoneos,build,VALID_ARCHS=armv7 armv7s arm64,CONFIGURATION_BUILD_DIR=/Users/john/Desktop/Myproject/platforms/ios/build/device,SHARED_PRECOMPS_DIR=/Users/john/Desktop/Myproject/platforms/ios/build/sharedpch
ERROR running one or more of the platforms: Error: /Users/john/Desktop/Myproject/platforms/ios/cordova/run: Command failed with exit code 2
You may not have the required environment or OS to run this project
只需运行 ionic run ios
,即可将应用程序部署到模拟器中。
I have no problem when running just only ionic run ios
, which will deploy the app into emulator. How can I overcome the problem?
推荐答案
另一种方法是
转到您的项目的平台目录 / platforms / ios
Go to your platform directory of your project /platforms/ios
写入控制台
Write in the console open .
which will open your folder with Finder.
之后打开 YourProject.xcodeproj $ c $
After that open YourProject.xcodeproj
with XCode and select your device and click on run.
祝你好运
这篇关于Ionic运行无法部署到设备的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文