Compilation is broken on Xcode 12
When building with Xcode 12 with parallel build optimisations, Optimizely does not build. I am highlighting an example below
To reproduce simply pod install Optimizely to any project (Xcode 12) with parallelisation on and attempt to build.
It fails because the spec definitions for most of the frameworks are missing the proper dependencies. See the user profile service for example: https://github.com/optimizely/objective-c-sdk/blob/master/OptimizelySDKUserProfileService.podspec#L19
Notice how it does not include Core but it definitely relies on Core. This can be fixed by adding the relevant dependencies. In our project we manually linked all Optimizely frameworks against their missing counterparts as you can see below where the new framework has a higher prominence and alpha than the ones automatically linked by pods.

@danielgalasko Thanks for reporting. We're looking into it and get you updated.
Awesome @jaeopt much appreciated 😄
Any news @jaeopt ? We're stuck in the same situation :(
3.1.4 is out, but it has same issues for me.
Workaround: use Legacy Build System. it works for me.
@danielgalasko Can you try with the legacy build system that @mattiacantalu suggested?
@danielgalasko @mattiacantalu We just released a patch (3.1.5) with a fix for this Xcode-12 build issue. Please give it a try and let us know if it works for you. Tx!
Thank you @jaeopt ! Anyway we just moved to the swift version of the sdk 😜
Great to hear that! It's a smart move.
Thanks folks 🙏
Since this was a critical blocker for us we moved to the Swift SDK, we also linked it all manually just so we could submit.
Thank you ❤️