升级到Xcode 8后,设备构建失败

编程入门 行业动态 更新时间:2024-10-19 02:16:17
本文介绍了升级到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后,设备构建失败

    本文发布于:2023-11-11 07:18:43,感谢您对本站的认可!
    本文链接:https://www.elefans.com/category/jswz/34/1577751.html
    版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
    本文标签:升级到   设备   Xcode

    发布评论

    评论列表 (有 0 条评论)
    草根站长

    >www.elefans.com

    编程频道|电子爱好者 - 技术资讯及电子产品介绍!