Xcode不会添加“嵌入式二进制”。在删除“DerivedData”之后

编程入门 行业动态 更新时间:2024-10-17 17:17:15
本文介绍了Xcode不会添加“嵌入式二进制”。在删除“DerivedData”之后的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

辅助搜索的其他标题:

  • 在Xcode中添加嵌入式二进制文件失败
  • Xcode不会链接来自单独项目的框架
  • 由于缺少框架,应用程序在设备上崩溃,在模拟器中工作

删除 Clean)后questions / tagged / xcode6class =post-tagtitle =show questions标记为'xcode6'rel =tag> xcode6 ,我无法将CocoaTouch框架从另一个项目添加到嵌入式二进制部分(在常规选项卡下)。

After deleting the "DerivedData" folder (or performing a "Product > Clean") in xcode6, I cannot add CocoaTouch frameworks from another project to the "Embedded Binary" section (under General tab).

或者,Xcode遇到链接器错误,因为它找不到以前可能的框架。

Or, Xcode hits a linker error because it cannot find a framework that if previously could.

单击嵌入式二进制文件下的+显示框架选择器,但在工作区中的不同项目中选择框架不会执行任何操作。

Clicking on the + under "Embedded Binaries" shows the Framework selector but selecting a framework in different project in the workspace does nothing.

推荐答案

T.他是我发现恢复嵌入式二进制文件的唯一方法,如果你发现不需要一些步骤,请发表评论。

This it the only way i have discovered to restore the embedded binaries, please leave comments if you find some steps are not required.

先决条件:阅读 Daniel Tull的回答。

  • 从工作区中删除所有框架项目
  • 执行clean build和/或删除DerivedData
  • 将项目添加回工作区
  • 构建项目(可选)
  • 在应用目标的常规标签中,点击链接的框架和库下的+,选择框架。
  • 在模拟器中构建并运行(应该没有问题构建或运行)
  • 构建并运行设备(由于框架不正确,这可能会导致崩溃)链接,忽略此崩溃)
  • 单击嵌入式二进制文件下的+,选择框架。这应该将它添加到项目中(在链接的框架和库下可能重复)
  • 重复所有必需的框架
  • 构建和运行后(在设备上)确认您可以删除Project Navigator中的任何重复(和/或红色)框架或目标常规选项卡
  • Remove all framework projects from the workspace
  • Perform a "clean build" and/or remove the "DerivedData"
  • Add project back into the workspace
  • Build the project (possibly optional)
  • In the General tab of the app target click the + under "Linked Frameworks and Libraries", select the framework.
  • Build and run in the Simulator (there should be no issues building or running)
  • Build and run for device (this might cause a crash due to the framework not being correctly linked, ignore this crash)
  • Click the + under "Embedded Binaries", select the framework. This should add it to the project (possible duplicate under "Linked Frameworks and Libraries")
  • Repeat for all required frameworks
  • Once building and running (on device) is confirmed you can remove any duplicate (and/or red) frameworks in the Project Navigator or target General tab
  • 更多推荐

    Xcode不会添加“嵌入式二进制”。在删除“DerivedData”之后

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

    发布评论

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

    >www.elefans.com

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