【问题标题】:Alamofire Sudden Linker Failed On SimulatorAlamofire 突然链接器在模拟器上失败
【发布时间】:2016-05-27 04:02:33
【问题描述】:

在我将一个分支合并到 master 并从 master 分支执行项目之前,一切都很好。使用模拟器时,由于某种原因,Alamofire 似乎无法链接(在 iPhone 5 上运行完美)。

首先,我尝试了此处找到的答案:Xcode 6.1: file was built for x86_64 which is not the architecture being linked (i386),但没有运气。此外,我尝试了来自这个 github 页面的建议:https://github.com/CocoaPods/CocoaPods/issues/2053

我明确表示:

  • 删除 Pod 文件夹和 Podfile.locl 然后完成 pod install
  • 将“仅构建 Active Arch”(在项目构建设置中)更改为“是”和“否”,用于调试和发布。
  • 将架构设置为“标准架构”

此外,我的 Podfile 中有以下行: pod 'Alamofire', '~> 3.4'

这是我遇到的错误的屏幕截图:

【问题讨论】:

  • 试试Product -> Clean。之后Product -> Build。大部分时间都有效。
  • 清理后错误仍然存​​在...还有其他建议吗?
  • 点击链接错误并发布截图

标签: ios xcode xcode7 linker-errors alamofire


【解决方案1】:

您必须删除派生数据

在 Xcode 7.3 中

Window -> Projects

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-04-22
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-06-01
    • 2021-11-01
    相关资源
    最近更新 更多