我使用的是Mac OS X 10.11。我试图通过运行sudo ionic run ios --device
部署构建到设备(iPhone 4),我收到此错误消息:
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
时我没有问题,这会将应用程序部署到模拟器中。我怎样才能克服这个问题?
答案 0 :(得分:4)
另一种方法是
转到项目/platforms/ios
在控制台open .
中写入,这将使用Finder打开您的文件夹。
之后使用 XCode 打开YourProject.xcodeproj
,然后选择您的设备并点击“运行”。