升级到Xcode 8后,设备构建失败 [英] Device build fails after upgrading to Xcode 8
问题描述
自升级到Xcode 8后,我无法在iPhone上运行任何应用程序。构建失败并出现错误:
Since upgrading to Xcode 8 I cannot run any app on my iPhone. The build fails with error:
错误:任务失败,退出0信号11
error: Task failed with exit 0 signal 11
我可以在模拟器上运行应用程序,而不是在设备上运行。
完整的错误消息:
I can run the apps on the simulators, just not on a device. The full error message:
错误:任务失败,退出0信号11 {/ usr / bin / codesign
' - force'' - 签署''7F49C2A625C8976762BDEA351F8DA88E4F6FED22'
' - verbose'
'/ Users / reshef / Library / Developer / Xcode / DerivedData / testXcode-eltpwhxdshmmlygolxcnsroevmoo / Build / Products / Debug -iphoneos / testXcode.app / Frameworks / libswiftCore.dylib'
}
error: Task failed with exit 0 signal 11 { /usr/bin/codesign '--force' '--sign' '7F49C2A625C8976762BDEA351F8DA88E4F6FED22' '--verbose' '/Users/reshef/Library/Developer/Xcode/DerivedData/testXcode-eltpwhxdshmmlygolxcnsroevmoo/Build/Products/Debug-iphoneos/testXcode.app/Frameworks/libswiftCore.dylib' }
推荐答案
该死的Xcode ......
Damn Xcode...
升级到High Sierra和Xcode 9后,我花了很多时间......在结合所有答案之后,我解决了它按以下方式。
After upgrading to High Sierra and Xcode 9, I have spend a lot of time... After combining all the answers here, I solved it in the following way.
- 按其他人的说法删除派生数据。
- 清理项目为其他人说。
- 重新启动操作系统< - 这是关键。只有在重新启动后才显示密码弹出。
- 当弹出窗口显示xcode想要输入密码时,请键入您的登录密码,并且不要按下允许,但是请始终允许。 < - 重要!
- Delete the derived data as others said.
- Clean the project as others said.
- Restart the OS <-- This was the key. Only after a reboot it showed the password popup.
- When the popup shows that says xcode wants password to something, type your login password, and DO NOT PRESS ALLOW, but PRESS ALWAYS ALLOW. <- Important!
这篇关于升级到Xcode 8后,设备构建失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!