升级到Xcode 8后,设备构建失败 [英] Device build fails after upgrading to Xcode 8

查看:107
本文介绍了升级到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.


  1. 按其他人的说法删除派生数据。

  2. 清理项目为其他人说。

  3. 重新启动操作系统< - 这是关键。只有在重新启动后才显示密码弹出。

  4. 当弹出窗口显示xcode想要输入密码时,请键入您的登录密码,并且不要按下允许,但是请始终允许。 < - 重要!

  1. Delete the derived data as others said.
  2. Clean the project as others said.
  3. Restart the OS <-- This was the key. Only after a reboot it showed the password popup.
  4. 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆