【发布时间】:2016-06-16 00:17:06
【问题描述】:
我使用 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 查看调用)
【问题讨论】:
-
您能检查一下
Framework Search Paths设置是什么吗?在目标的 Build Settings 中。 -
"${PODS_ROOT}/GoogleMaps/Frameworks" $(PROJECT_DIR)
-
尝试将
$(inherited) "${PODS_ROOT}/Crashlytics/iOS" "${PODS_ROOT}/Fabric/iOS"添加到列表中? -
现在我有错误 ld: framework not found Alamofire。 Xcode怎么了??在此之前一切正常
-
另外,推荐看看this。有点长,但绝对值得。
标签: swift cocoapods crashlytics