ios - ionic 运行无法部署到设备
<p><p>我使用的是 Mac OS X 10.11。我正在尝试通过运行 <code>sudo ionic run ios --device</code> 将构建部署到设备(iPhone 4),我收到以下错误消息:</p>
<pre><code>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
</code></pre>
<p>只运行 <code>ionic run ios</code> 时我没有问题,这会将应用程序部署到模拟器中。我该如何克服这个问题?</p></p>
<br><hr><h1><strong>Best Answer-推荐答案</ strong></h1><br>
<p><p>另一种方法是</p>
<p>转到您项目的平台目录<code>/platforms/ios</code></p>
<p>在控制台中写入 <code>open .</code> 这将使用 Finder 打开您的文件夹。</p>
<p>之后,使用 <strong>XCode</strong> 打开 <code>YourProject.xcodeproj</code> 并选择您的设备并点击运行。</p>
<p>祝你好运</p></p>
<p style="font-size: 20px;">关于ios -ionic 运行无法部署到设备,我们在Stack Overflow上找到一个类似的问题:
<a href="https://stackoverflow.com/questions/34197529/" rel="noreferrer noopener nofollow" style="color: red;">
https://stackoverflow.com/questions/34197529/
</a>
</p>
页:
[1]