Xcode 10 failed to render and update error somehow related to cocoapods

Hello friends,

I had update my system to Mojave and Xcode 10 and now all the sudley all my projects that use cocopods gives me an error message "


When I run the project in the simulator all works great, again the project was working 100% under Xcode 9 and it still does.Somehow after I open it in Xcode 10 it wont render properly when I call the storyBoard.

For all the viewcontrollers under MainStoryboard it displays an error like "Failed to render and update auto layout status for ActionsViewController (LLu-9M-wS5): The agent crashed"

After a lot of atempts I create a complete new project, install cocoapods tha I need and imidiatly the error apears when I try to add UI elements.If I remove the pods by going to command line and do a "pod deintegrate" the Main Storyboard works normaly.

Somehow it is something to do with Cocoapods!

If I go ~/Library/Logs/DiagnosticReports I get lots of crash reports and inside I found this:

Process: IBDesignablesAgent-iOS [59242]
Path: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/Xcode/Overlays/IBDesignablesAgent-iOS
Identifier: IBDesignablesAgent-iOS
Version: 10.0 (14283.14)
Code Type: X86-64 (Native)
Parent Process: launchd_sim [53156]
Responsible: IBDesignablesAgent-iOS [59242]
User ID: 501


Date/Time: 2018-10-29 20:45:52.542 +0000
OS Version: Mac OS X 10.14 (18A391)
Report Version: 12
Anonymous UUID: BCE605EE-6B63-BFF3-BE98-69CF92D71562


Sleep/Wake UUID: 9305F79D-45D1-4E61-8F20-FE5BA5726080


Time Awake Since Boot: 180000 seconds

Time Since Wake: 84000 seconds


System Integrity Protection: enabled


Crashed Thread: 0


Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY


Application Specific Information:

*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Invalid parameter not satisfying: bundleProxy != nil'

_LSContextInit() failed with error -10813

terminating with uncaught exception of type NSException

abort() called

CoreSimulator 580 - Device: iPhone XS - Runtime: iOS 12.0 (16A366) - DeviceType: iPhone XS



Does anybody has this issue to?

Thanks for your time

Hugo

Replies

Some 3rd party SDKs do method swizzling "to make it easier to use their SDK" and are causing this issue. Compare

https://github.com/OneSignal/OneSignal-iOS-SDK/issues/416#issuecomment-423600511


I had this with one 3rd party SDK and our project was loading an XIB designable view into a storyboard. Taking the 3rd party SDK out resolved the issue. Or they have to fix their swizzling code.