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:
- Update cocoa pods to latest version -> COCOAPODS: 1.7.0.beta.3
- Clean DeliveredData folder
- Reinstall Xcode
- Remove repository, clone it again and install pods
- Totally remove all pods from project and add them back
Temporary Workaround
For me it was only the
Cacheframework. Until they have fixed it, you can manually setSWIFT_OPTIMIZATION_LEVELto-Ononefor the configuration you want to use for archiving.CocoaPods
You could even use your Podfile if you don't want Cococapods to overwrite the settings every time you run
pod install