Swift: iOS 12.2 Crash of the app on launch

前端 未结 2 851
慢半拍i
慢半拍i 2021-01-15 20:56

after updating Xcode and swift 5, after launching the simulator on iOS 12.2 my application crash on launch. But in earlier versions of ios (like 12.0) the application works

相关标签:
2条回答
  • 2021-01-15 21:16

    The problem is solved; I use the Swinject CocoaPod so in the Podfile I updated the corresponding line for that pod with:

    pod 'SwinjectStoryboard', :git => 'https://github.com/mdyson/SwinjectStoryboard.git', :branch => 'master'`
    
    0 讨论(0)
  • 2021-01-15 21:35

    The error you mention is very related :)

    objc[39432]: Swift class extensions and categories on Swift classes are not allowed to have +load methods

    I can't find the reason why it occurs, but the problem seems to be that you, or some dependency you are using is using a static load method, which is no longer allowed.

    There are a couple of things you can try

    1. Check your code for load functions
    2. Look through your dependencies and see if there are updates to any of them that could fix this problem

    This thread on twitter can also be used to pinpoint where the problem might be. As it is suggested, try adding OBJC_PRINT_LOAD_METHODS=YES when you launch the app, as this should give you some more clues.

    Hope that helps.

    0 讨论(0)
提交回复
热议问题