对于我的项目,问题与pod有关,Cache当Optimization Levelfor Release设置为时,pod 会给出错误Optimize for Speed [-O]。我已Compilation Mode到Whole Module了在POD文件荚一次集优化级别:
post_install do |installer|
installer.pods_project.targets.each do |target|
# Cache pod does not accept optimization level '-O', causing Bus 10 error. Use '-Osize' or '-Onone'
if target.name == 'Cache'
target.build_configurations.each do |config|
level = '-Osize'
config.build_settings['SWIFT_OPTIMIZATION_LEVEL'] = level
puts "Set #{target.name} #{config.name} to Optimization Level #{level}"
end
end
end
end
Run Code Online (Sandbox Code Playgroud)
参考:https : //github.com/hyperoslo/Cache/issues/233#issuecomment-477749560
我通过将Pods Project转到建筑设置并将Compilation Mode设置为Incremental for Release来解决此问题。然后清理并存档,然后应编译良好。
小智 0
你可以按照这个步骤...
您收到所有这些错误只是因为 pod。所以您需要更新您正在使用的每个 pod。
| 归档时间: |
|
| 查看次数: |
6154 次 |
| 最近记录: |