I updated Xcode to new stable 10.2v. I tried to build my project and it was successful. When I'm trying to archive the project (workspace), I'm getting errors like on screenshot below:
What I've tried so far:
For me it was only the Cache
framework. Until they have fixed it, you can manually set SWIFT_OPTIMIZATION_LEVEL
to -Onone
for the configuration you want to use for archiving.
You could even use your Podfile if you don't want Cococapods to overwrite the settings every time you run pod install
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
if target.name == 'Cache'
config.build_settings['SWIFT_OPTIMIZATION_LEVEL'] = '-Onone'
end
end
end
end
Note that this is specifically checking for the
Cache
framework. If you have problems with other frameworks you might want to change or extend this condition.