Pau*_*ien 48
更新到 CocoaPods 1.10,运行pod deintegrate
和pod install
.
要在较早的 CocoaPods 版本中解决此问题,请禁用CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER
generate Pods 项目构建设置中的选项:
https://github.com/firebase/firebase-ios-sdk/issues/5987和https://github.com/CocoaPods/CocoaPods/issues/9902 中的更多详细信息。
lor*_*sum 21
我通过使用 cocoapods 的预发布修复了它
sudo gem install cocoapods --pre
然后进行更新
pod install --repo-update
Dan*_*man 13
我的团队不想在 cocoapods 1.10 发布之前使用它,也不想在每次pod install
重新生成它时重新编辑 Pods 项目的构建设置。这个Podfile post_install 步骤成功了,归功于Léo-Paul JULIE:
post_install do |installer|
installer.pods_project.build_configurations.each do |config|
config.build_settings['CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER'] = 'NO'
end
end
Run Code Online (Sandbox Code Playgroud)
编辑:正如snakeoil在下面指出的那样,您还可以消除有关您不支持的不相关iOS 版本的烦人警告。但是应该为每个target的配置的构建设置编辑该设置,因此在嵌套循环中。总之,我现在要做这样的事情:
post_install do |installer|
installer.pods_project.build_configurations.each do |config|
# Can be removed when moving to cocoapods 1.10
config.build_settings['CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER'] = 'NO'
end
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
# Inherit the deployment target defined in this Podfile instead, e.g. platform :ios, '11.0' at the top of this file
config.build_settings.delete 'IPHONEOS_DEPLOYMENT_TARGET'
end
end
end
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
14371 次 |
最近记录: |