ld: 未找到框架 Crashlytics Xcode7.2.1

ld: framework not found Crashlytics Xcode7.2.1

我使用 CocoaPods 安装了 Fabric。 我的播客文件:

platform :ios, '8.0'
use_frameworks!

target '*****' do
pod 'GoogleMaps'
pod 'SwiftyJSON', :git => 'https://github.com/SwiftyJSON/SwiftyJSON.git'
pod 'Alamofire'
pod 'Google/Analytics', '~> 1.0.0'
pod 'Fabric'
pod 'Crashlytics'
end
target '****Tests' do
end
target '****UITests' do
end

post_install do |installer|
  installer.pods_project.build_configuration_list.build_configurations.each do |configuration|
    configuration.build_settings['CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES'] = 'YES'
  end
end

添加 运行 脚本构建阶段

"${PODS_ROOT}/Fabric/run" ****

构建设置 - 启用位码 - 否

我做了清理和构建 但是我有错误 ld:未找到 Crashlytics 框架 clang:错误:链接器命令失败,退出代码为 1(使用 -v 查看调用)

如果您检查您的项目,您会看到一个名为 Pods 的文件夹,对吧?在那里你可以找到一堆 xcconfig 文件。您必须 link 将它们添加到您的项目配置中。

见下图:

删除我告诉您添加到 Framework search paths 的额外路径(抱歉 :P)。并像这样设置配置文件。