[英]Xcode - Can run app on simulator but not on device - error: Failed with exit code 1
I am trying to install my AR app onto my device. 我正在尝试将AR应用程序安装到设备上。 If I build it onto the simulator it installs but obviously I can't test it as its not possible to run AR on simulator.
如果将其构建在模拟器上,则会安装该软件,但显然无法对其进行测试,因为无法在模拟器上运行AR。
The problem is that when I try to run it on my device I get this error 问题是当我尝试在设备上运行它时,出现此错误
error: Failed with exit code 1
错误:退出代码1失败
The error above this is 上面的错误是
Codesigning /Users/myName/Library/Developer/Xcode/DerivedData/ARanalytix-efmsytiskdgeajgnizwosccslwsj/Build/Products/Debug-iphoneos/ARanalytix.app/Frameworks/libswiftQuartzCore.dylib /usr/bin/codesign --force --sign 239D4B0E67A04154536E45B1893911C2673A85F5 --verbose /Users/samosborne/Library/Developer/Xcode/DerivedData/ARanalytix-efmsytiskdgeajgnizwosccslwsj/Build/Products/Debug-iphoneos/ARanalytix.app/Frameworks/libswiftQuartzCore.dylib /Users/samosborne/Library/Developer/Xcode/DerivedData/ARanalytix-efmsytiskdgeajgnizwosccslwsj/Build/Products/Debug-iphoneos/ARanalytix.app/Frameworks/libswiftQuartzCore.dylib: errSecInternalComponent
共同设计/Users/myName/Library/Developer/Xcode/DerivedData/ARanalytix-efmsytiskdgeajgnizwosccslwsj/Build/Products/Debug-iphoneos/ARanalytix.app/Frameworks/libswiftQuartzCore.dylib / usr / bin / codesign --force --sign 239D4B0F43A4E0E45A4E0F-E-Sign-E-E-E 239D4B0E0E4E0E0E4E0E0E-E-E-E-E-E签名-239D4B0F0E0E3E0E-E-E-E-E-E签名-239D4B0F0E3E0E-E0E-E-E-E-E 239D4B0F0E3E0E-E-A详细/Users/samosborne/Library/Developer/Xcode/DerivedData/ARanalytix-efmsytiskdgeajgnizwosccslwsj/Build/Products/Debug-iphoneos/ARanalytix.app/Framework/libswiftQuartzCore.dylib/Users/samosborne/code-analyst/ efmsytiskdgeajgnizwosccslwsj / Build / Products / Debug-iphoneos / ARanalytix.app / Frameworks / libswiftQuartzCore.dylib:errSecInternalComponent
I have tried cleaning my project, downloading certificates again, and also followed the steps from here but cant get it to work. 我尝试清理我的项目,再次下载证书,也按照此处的步骤操作,但无法正常工作。
Any help would be great as I am out of ideas. 如果我没有想法,任何帮助都会很棒。 Thank you in advance.
先感谢您。
There are couple of reasons why it doesn't run. 无法运行的原因有两个。
1) You need a download a develop provisioning profile, if you are using a production certificate it will not run. 1)您需要下载开发配置文件,如果您使用的是生产证书,它将无法运行。
2) Be sure from Apple portal to include you device UDID and download a new development provisioning profile including your device. 2)确保从Apple门户网站包含您的设备UDID,并下载包括您的设备在内的新开发配置文件。
3) From the project plist be sure to select the correct provisioning profile. 3)确保从项目plist中选择正确的配置文件。
I tried restarting my Mac and also deleted the certificates from my keychain. 我尝试重新启动Mac,还从钥匙串中删除了证书。 I then changed my bundle identifier name and it all seemed to work.
然后,我更改了包标识符名称,这一切似乎都奏效了。 Thank you for your help!
谢谢您的帮助!
Did you Restart Mac and iOS Device. 您是否重新启动了Mac和iOS设备。 Hope this will work
希望这会起作用
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.