简体   繁体   English

Xcode-可以在模拟器上运行应用程序,但不能在设备上运行-错误:退出代码1失败

[英]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.

相关问题 Xcode应用程序在模拟器上运行,但不在设备上运行 - Xcode app run on simulator but not on device Xcode 将在模拟器上运行应用程序但不在设备上 - Xcode will run app on simulator but not on device 解析应用无法在实际设备上运行“ clang:错误:链接器命令失败,退出代码为1” Swift 2.0 Xcode 7 beta 6 - Parse app not working on real device “clang: error: linker command failed with exit code 1” Swift 2.0 Xcode 7 beta 6 如何在xcode 7模拟器或设备上运行应用程序? - how to run app on xcode 7 simulator or device? 在模拟器和实际环境中,Xcode生成错误“命令/ usr / bin / codesign失败,退出代码为1” - Xcode build error “Command /usr/bin/codesign failed with exit code 1” in simulator and real environment Xcode - 共享应用程序 - PackageApplication失败,退出代码为1 - Xcode - Sharing app - PackageApplication failed with exit code 1 在流星应用程序上运行ios模拟器时出现错误“命令失败,退出代码为66” - Error “Command failed with exit code 66” running ios simulator on meteor app Xcode存档失败,错误退出代码1 - Xcode archive failed with error exit code 1 xcode构建错误:swiftc失败,退出代码为1 - xcode build error: swiftc failed with exit code 1 代码在模拟器中运行,在设备上运行时未发现dyld符号错误(Xcode 6 beta) - Code runs in simulator, dyld symbol not found error thrown when run on device (Xcode 6 beta)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM