Alamofire Sudden Linker在模拟器上失败

时间:2016-05-27 04:02:33

标签: ios xcode xcode7 linker-errors alamofire

一切都很好,花花公子,直到我合并了一个分支到master并从master分支执行项目。由于某种原因(在iPhone 5上运行时效果很好),Alamofire似乎无法链接。

首先,我尝试了这里找到的答案: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
  • 将'Build Active Arch Only'(在项目构建设置中)更改为Yes和No以及调试和发布。
  • 将架构设置为“标准架构”

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

以下是我收到的错误的屏幕截图: enter image description here

1 个答案:

答案 0 :(得分:0)

您必须删除派生数据

Xcode 7.3中的

Window -> Projects