objective-c-sdk icon indicating copy to clipboard operation
objective-c-sdk copied to clipboard

Compilation is broken on Xcode 12

Open danielgalasko opened this issue 6 years ago • 9 comments

When building with Xcode 12 with parallel build optimisations, Optimizely does not build. I am highlighting an example below

93474411-9940e900-f8f7-11ea-8c50-06fa43becc3d

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.

Screenshot 2020-09-17 at 16 03 35

danielgalasko avatar Sep 17 '20 14:09 danielgalasko

@danielgalasko Thanks for reporting. We're looking into it and get you updated.

jaeopt avatar Sep 18 '20 00:09 jaeopt

Awesome @jaeopt much appreciated 😄

danielgalasko avatar Sep 18 '20 07:09 danielgalasko

Any news @jaeopt ? We're stuck in the same situation :(

mattiacantalu avatar Sep 23 '20 09:09 mattiacantalu

3.1.4 is out, but it has same issues for me.

Workaround: use Legacy Build System. it works for me.

mattiacantalu avatar Sep 25 '20 08:09 mattiacantalu

@danielgalasko Can you try with the legacy build system that @mattiacantalu suggested?

jaeopt avatar Sep 25 '20 14:09 jaeopt

@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!

jaeopt avatar Oct 07 '20 23:10 jaeopt

Thank you @jaeopt ! Anyway we just moved to the swift version of the sdk 😜

mattiacantalu avatar Oct 08 '20 06:10 mattiacantalu

Great to hear that! It's a smart move.

jaeopt avatar Oct 08 '20 15:10 jaeopt

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 ❤️

danielgalasko avatar Nov 03 '20 13:11 danielgalasko