Slow app startup using Xcode 10.2 + iOS 12.2

Hello everyone,

I have very strange issue seemingly caused by latest Xcode 10.2 compilation.


I have noticed my app start time to get significantly worse (3x slower) caused simply by building using Xcode 10.2 and running on iOS 12.2. The same code revision when running on older iOS (12.0) or compiled with Xcode 10.1 for iOS 12.2 runs fine.


App setup (quickly):

  • Mixed target Swift + Obj-C
  • Using internal frameworks for code separation
  • Using CocoaPods


Here is what happens

Old code revision (Swift 4.2) - one of older release which worked fine back then compiled using Xcode 10.1

- Running iOS 12.2, building with Xcode 10.2 -> Very slow app start (3x slower)

- iOS 12.2, Xcode 10.1 -> all fine (1x of time)

- iOS 12.0, Xcode 10.1 -> all fine (1x of time)

- iOS 12.0, Xcode 10.2 -> all fine (1x of time)


Latest code (Swift 5) - all code migrated to Swift 5

Very similar situation as before Swift 5.



Since the issue happens only on iOS 12.2 + Xcode 10.2 (which has support for Swift 5), I was wondering if this issue can somehow be related to ABI stability or something. What does not make sense to me is that it happens even for code before Swift 5 migration when compiled with Xcode 10.2.


Any help / ideas appreciated! Thank you!

Replies

What version CCPs?