我使用 CocoaPods 安装了 Fabric。 我的 Podfile:
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" ****
build设置 - 启用位码 - 否
我做了清理和构建 但我有错误 ld:找不到框架 Crashlytics clang:错误:链接器命令失败,退出代码为 1(使用 -v 查看调用)
最佳答案
如果你检查你的项目,你可以看到一个名为 Pods
的文件夹,对吗?在那里您可以找到一堆 xcconfig
文件。您必须将它们链接到项目的配置。
删除我告诉您添加到框架搜索路径
的额外路径(抱歉:P)。并像这样设置配置文件。
关于swift - ld : framework not found Crashlytics Xcode7. 2.1,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35759180/