4 Replies
      Latest reply on Nov 7, 2019 9:59 AM by paul.lavoine@teachonmars.com
      paul.lavoine@teachonmars.com Level 1 Level 1 (0 points)

        My app ran without any crashes while using Xcode 10.3.  After updating to XCode 11.1, 11.2 and 11.2.1, my app experienced a crash:

         

        *** Terminating app due to uncaught exception 'NSInvalidUnarchiveOperationException', reason: 'Could not instantiate class named _UIScrollerImpContainerView because no class named _UIScrollerImpContainerView was found; the class needs to be defined in source code or linked in from a library (ensure the class is part of the correct target)'

         

        This crash seems to occur during before any of my views appear on the screen.

         

        Similar problem has been see on apple developper forum : https://forums.developer.apple.com/thread/125287

         

        Any idea on the cause or solution?

         

        Thanks.

        • Re: App crashes from Xcode 11
          Claude31 Level 8 Level 8 (7,295 points)

          Test with XCode 12.2.1

            • Re: App crashes from Xcode 11
              paul.lavoine@teachonmars.com Level 1 Level 1 (0 points)

              Xcode 12.2.1 doesn't not exist yet.

              You meant Xcode 11.2.1? I already tested with it like I said in my post

                • Re: App crashes from Xcode 11
                  Claude31 Level 8 Level 8 (7,295 points)

                  Yes I meant 11.2 ! Hope we don't have to wait 12.2 for a solution.

                   

                  Is it 11.2.1 GM Seed, available yesterday (Build 11B53, not 11B52)

                  When does it occur ? Which conditions ? Simulator or device ?

                   

                  Have you checked the file where it occurs is in the correct targets ?

                    • Re: App crashes from Xcode 11
                      paul.lavoine@teachonmars.com Level 1 Level 1 (0 points)

                      Yes I tried with 11.2.1 GM Seed but no success ...

                       

                      It occurs when I build my framework and I deploy on simulator OR device, no matter.

                      (xcodebuild -quiet -project MyApp.xcodeproj/ -scheme MyAppFramework-library -sdk iphoneos$VERSION_NUMBER -configuration Distribution build -UseModernBuildSystem=NO)

                       

                      But if I deploy the code in a classic way (Build & Run with Xcode) on a simulator or device, I have no problem.

                       

                      It occurs only when I create my framework. Moreover, Crash occur only with some view (common point is maybe they were created with .xib). Otherwise I can start application and use some features (very few).

                      The targets are corrects (everything works with Xcode 10.3).

                      The crash produced inside "required init?(coder aDecoder: NSCoder)" at 2 differents places (I didn't check the rest of the application because I crash before...)

                       

                      I hope I was clear.

                      Thanks for helping