Build Error for XCODE 9, sierra 10.12.6, corona 2017.3160

Im trying to build the app, i keep getting this exception.

Can anyone point me in the right direction?

Thank you

libc++abi.dylib: terminating with uncaught exception of type NSException

Oct 18 02:30:13.198 BUILD ERROR: 2017-10-18 02:30:13.167 ibtoold[994:24730] [MT] DVTPlugInLoading: Failed to load code for plug-in com.apple.dt.IDE.IDEInterfaceBuilderCocoaTouchIntegration (/Applications/Xcode.app/Contents/PlugIns/IDEInterfaceBuilderCocoaTouchIntegration.framework), error = Error Domain=NSCocoaErrorDomain Code=3587 “dlopen_preflight(/Applications/Xcode.app/Contents/PlugIns/IDEInterfaceBuilderCocoaTouchIntegration.framework/IDEInterfaceBuilderCocoaTouchIntegration): Library not loaded: /Library/Developer/PrivateFrameworks/CoreSimulator.framework/Versions/A/CoreSimulator
  Referenced from: /Applications/Xcode.app/Contents/Developer/Library/PrivateFrameworks/SimulatorKit.framework/Versions/A/SimulatorKit
  Reason: image not found” UserInfo={NSLocalizedFailureReason=The bundle is damaged or missing necessary resources., NSLocalizedRecoverySuggestion=Try reinstalling the bundle., NSFilePath=/Applications/Xcode.app/Contents/PlugIns/IDEInterfaceBuilderCocoaTouchIntegration.framework/IDEInterfaceBuilderCocoaTouchIntegration, NSDebugDescription=dlopen_preflight(/Applications/Xcode.app/Contents/PlugIns/IDEInterfaceBuilderCocoaTouchIntegration.framework/IDEInterfaceBuilderCocoaTouchIntegration): Library not loaded: /Library/Developer/PrivateFrameworks/CoreSimulator.framework/Versions/A/CoreSimulator
  Referenced from: /Applications/Xcode.app/Contents/Developer/Library/PrivateFrameworks/SimulatorKit.framework/Versions/A/SimulatorKit
  Reason: image not found, NSBundlePath=/Applications/Xcode.app/Contents/PlugIns/IDEInterfaceBuilderCocoaTouchIntegration.framework, NSLocalizedDescription=The bundle “IDEInterfaceBuilderCocoaTouchIntegration” couldn’t be loaded because it is damaged or missing necessary resources.}, dyldError = dlopen(/Applications/Xcode.app/Contents/PlugIns/IDEInterfaceBuilderCocoaTouchIntegration.framework/IDEInterfaceBuilderCocoaTouchIntegration, 0): Library not loaded: /Library/Developer/PrivateFrameworks/CoreSimulator.framework/Versions/A/CoreSimulator
  Referenced from: /Applications/Xcode.app/Contents/Developer/Library/PrivateFrameworks/SimulatorKit.framework/Versions/A/SimulatorKit
  Reason: image not found
2017-10-18 02:30:13.167 ibtoold[994:24730] [MT] DVTPlugInExtensionFaulting: Failed to fire fault for extension Xcode.InterfaceBuilderKit.CocoaTouchIntegration.Singletons: Error Domain=DVTPlugInErrorDomain Code=2 “Loading a plug-in failed.” UserInfo={DVTPlugInIdentifierErrorKey=com.apple.dt.IDE.IDEInterfaceBuilderCocoaTouchIntegration, DVTPlugInExecutablePathErrorKey=/Applications/Xcode.app/Contents/PlugIns/IDEInterfaceBuilderCocoaTouchIntegration.framework/IDEInterfaceBuilderCocoaTouchIntegration, NSLocalizedRecoverySuggestion=The plug-in or one of its prerequisite plug-ins may be missing or damaged and may need to be reinstalled., DVTPlugInDYLDErrorMessageErrorKey=dlopen(/Applications/Xcode.app/Contents/PlugIns/IDEInterfaceBuilderCocoaTouchIntegration.framework/IDEInterfaceBuilderCocoaTouchIntegration, 0): Library not loaded: /Library/Developer/PrivateFrameworks/CoreSimulator.framework/Versions/A/CoreSimulator
  Referenced from: /Applications/Xcode.app/Contents/Developer/Library/PrivateFrameworks/SimulatorKit.framework/Versions/A/SimulatorKit
  Reason: image not found, NSLocalizedDescription=Loading a plug-in failed., NSFilePath=/Applications/Xcode.app/Contents/PlugIns/IDEInterfaceBuilderCocoaTouchIntegration.framework, NSLocalizedFailureReason=The plug-in “com.apple.dt.IDE.IDEInterfaceBuilderCocoaTouchIntegration” at path “/Applications/Xcode.app/Contents/PlugIns/IDEInterfaceBuilderCocoaTouchIntegration.framework” could not be loaded.  The plug-in or one of its prerequisite plug-ins may be missing or damaged., NSUnderlyingError=0x7f9e205f1090 {Error Domain=NSCocoaErrorDomain Code=3587 “dlopen_preflight(/Applications/Xcode.app/Contents/PlugIns/IDEInterfaceBuilderCocoaTouchIntegration.framework/IDEInterfaceBuilderCocoaTouchIntegration): Library not loaded: /Library/Developer/PrivateFrameworks/CoreSimulator.framework/Versions/A/CoreSimulator
  Referenced from: /Applications/Xcode.app/Contents/Developer/Library/PrivateFrameworks/SimulatorKit.framework/Versions/A/SimulatorKit
  Reason: image not found” UserInfo={NSLocalizedFailureReason=The bundle is damaged or missing necessary resources., NSLocalizedRecoverySuggestion=Try reinstalling the bundle., NSFilePath=/Applications/Xcode.app/Contents/PlugIns/IDEInterfaceBuilderCocoaTouchIntegration.framework/IDEInterfaceBuilderCocoaTouchIntegration, NSDebugDescription=dlopen_preflight(/Applications/Xcode.app/Contents/PlugIns/IDEInterfaceBuilderCocoaTouchIntegration.framework/IDEInterfaceBuilderCocoaTouchIntegration): Library not loaded: /Library/Developer/PrivateFrameworks/CoreSimulator.framework/Versions/A/CoreSimulator
  Referenced from: /Applications/Xcode.app/Contents/Developer/Library/PrivateFrameworks/SimulatorKit.framework/Versions/A/SimulatorKit
  Reason: image not found, NSBundlePath=/Applications/Xcode.app/Contents/PlugIns/IDEInterfaceBuilderCocoaTouchIntegration.framework, NSLocalizedDescription=The bundle “IDEInterfaceBuilderCocoaTouchIntegration” couldn’t be loaded because it is damaged or missing necessary resources.}}}
2017-10-18 02:30:13.170 ibtoold[994:24730] *** Terminating app due to uncaught exception ‘NSInternalInconsistencyException’, reason: ‘Error getting value for parameter key ‘name’ of extension ‘Xcode.InterfaceBuilderKit.CocoaTouchIntegration.Singletons’ in plug-in ‘com.apple.dt.IDE.IDEInterfaceBuilderCocoaTouchIntegration’’
*** First throw call stack:
(
0   CoreFoundation                      0x00007fffd45d757b __exceptionPreprocess + 171
1   libobjc.A.dylib                     0x00007fffe99a81da objc_exception_throw + 48
2   DVTFoundation                       0x00000001055f8aad -[DVTExtensionParameter valueForKey:error:] + 0
3   IDEInterfaceBuilderKit              0x0000000104d88b4d -[IBScopedSingletonRegistry init] + 722
4   IDEInterfaceBuilderKit              0x0000000104d88861 __43+[IBScopedSingletonRegistry sharedInstance]_block_invoke + 41
5   libdispatch.dylib                   0x00007fffea2538fc _dispatch_client_callout + 8
6   libdispatch.dylib                   0x00007fffea2538b9 dispatch_once_f + 38
7   IDEInterfaceBuilderKit              0x0000000104d88835 +[IBScopedSingletonRegistry sharedInstance] + 45
8   IDEInterfaceBuilderKit              0x0000000104ba2689 -[IBInterfaceBuilderPlugin init] + 146
9   IDEInterfaceBuilderKit              0x0000000104ba25dd +[IBInterfaceBuilderPlugin ide_initializeWithOptions:error:] + 34
10  IDEFoundation                       0x0000000105f1ccce _IDEInitializeOnePlugInAndPrerequisites + 2324
11  IDEFoundation                       0x0000000105f1c5d5 _IDEInitializeOnePlugInAndPrerequisites + 539
12  IDEFoundation                       0x0000000105f1c5d5 _IDEInitializeOnePlugInAndPrerequisites + 539
13  IDEFoundation                       0x0000000105f1acca _IDEInitializePlugIns + 1604
14  IDEFoundation                       0x0000000105f1a081 IDEInitialize + 8547
15  ibtoold                             0x000000010489d5a9 ibtoold + 71081
16  ibtoold                             0x000000010489c724 ibtoold + 67364
17  libdyld.dylib                       0x00007fffea289235 start + 1
18  ???                                 0x000000000000001d 0x0 + 29
)
libc++abi.dylib: terminating with uncaught exception of type NSException

Oct 18 02:30:13.199 

Oct 18 02:30:13.217 iOS build failed (12) after 116 seconds

Oct 18 02:30:13.607 ERROR: Build Failed: 2017-10-18 02:30:13.167 ibtoold[994:24730] [MT] DVTPlugInLoading: Failed to load code for plug-in com.apple.dt.IDE.IDEInterfaceBuilderCocoaTouchIntegration (/Applications/Xcode.app/Contents/PlugIns/IDEInterfaceBuilderCocoaTouchIntegration.framework), error = Error Domain=NSCocoaErrorDomain Code=3587 “dlopen_preflight(/Applications/Xcode.app/Contents/PlugIns/IDEInterfaceBuilderCocoaTouchIntegration.framework/IDEInterfaceBuilderCocoaTouchIntegration): Library not loaded: /Library/Developer/PrivateFrameworks/CoreSimulator.framework/Versions/A/CoreSimulator
  Referenced from: /Applications/Xcode.app/Contents/Developer/Library/PrivateFrameworks/SimulatorKit.framework/Versions/A/SimulatorKit
  Reason: image not found” UserInfo={NSLocalizedFailureReason=The bundle is damaged or missing necessary resources., NSLocalizedRecoverySuggestion=Try reinstalling the bundle., NSFilePath=/Applications/Xcode.app/Contents/PlugIns/IDEInterfaceBuilderCocoaTouchIntegration.framework/IDEInterfaceBuilderCocoaTouchIntegration, NSDebugDescription=dlopen_preflight(/Applications/Xcode.app/Contents/PlugIns/IDEInterfaceBuilderCocoaTouchIntegration.framework/IDEInterfaceBuilderCocoaTouchIntegration): Library not loaded: /Library/Developer/PrivateFrameworks/CoreSimulator.framework/Versions/A/CoreSimulator
  Referenced from: /Applications/Xcode.app/Contents/Developer/Library/PrivateFrameworks/SimulatorKit.framework/Versions/A/SimulatorKit
  Reason: image not found, NSBundlePath=/Applications/Xcode.app/Contents/PlugIns/IDEInterfaceBuilderCocoaTouchIntegration.framework, NSLocalizedDescription=The bundle “IDEInterfaceBuilderCocoaTouchIntegration” couldn’t be loaded because it is damaged or missing necessary resources.}, dyldError = dlopen(/Applications/Xcode.app/Contents/PlugIns/IDEInterfaceBuilderCocoaTouchIntegration.framework/IDEInterfaceBuilderCocoaTouchIntegration, 0): Library not loaded: /Library/Developer/PrivateFrameworks/CoreSimulator.framework/Versions/A/CoreSimulator
  Referenced from: /Applications/Xcode.app/Contents/Developer/Library/PrivateFrameworks/SimulatorKit.framework/Versions/A/SimulatorKit
  Reason: image not found
2017-10-18 02:30:13.167 ibtoold[994:24730] [MT] DVTPlugInExtensionFaulting: Failed to fire fault for extension Xcode.InterfaceBuilderKit.CocoaTouchIntegration.Singletons: Error Domain=DVTPlugInErrorDomain Code=2 “Loading a plug-in failed.” UserInfo={DVTPlugInIdentifierErrorKey=com.apple.dt.IDE.IDEInterfaceBuilderCocoaTouchIntegration, DVTPlugInExecutablePathErrorKey=/Applications/Xcode.app/Contents/PlugIns/IDEInterfaceBuilderCocoaTouchIntegration.framework/IDEInterfaceBuilderCocoaTouchIntegration, NSLocalizedRecoverySuggestion=The plug-in or one of its prerequisite plug-ins may be missing or damaged and may need to be reinstalled., DVTPlugInDYLDErrorMessageErrorKey=dlopen(/Applications/Xcode.app/Contents/PlugIns/IDEInterfaceBuilderCocoaTouchIntegration.framework/IDEInterfaceBuilderCocoaTouchIntegration, 0): Library not loaded: /Library/Developer/PrivateFrameworks/CoreSimulator.framework/Versions/A/CoreSimulator
  Referenced from: /Applications/Xcode.app/Contents/Developer/Library/PrivateFrameworks/SimulatorKit.framework/Versions/A/SimulatorKit
  Reason: image not found, NSLocalizedDescription=Loading a plug-in failed., NSFilePath=/Applications/Xcode.app/Contents/PlugIns/IDEInterfaceBuilderCocoaTouchIntegration.framework, NSLocalizedFailureReason=The plug-in “com.apple.dt.IDE.IDEInterfaceBuilderCocoaTouchIntegration” at path “/Applications/Xcode.app/Contents/PlugIns/IDEInterfaceBuilderCocoaTouchIntegration.framework” could not be loaded.  The plug-in or one of its prerequisite plug-ins may be missing or damaged., NSUnderlyingError=0x7f9e205f1090 {Error Domain=NSCocoaErrorDomain Code=3587 “dlopen_preflight(/Applications/Xcode.app/Contents/PlugIns/IDEInterfaceBuilderCocoaTouchIntegration.framework/IDEInterfaceBuilderCocoaTouchIntegration): Library not loaded: /Library/Developer/PrivateFrameworks/CoreSimulator.framework/Versions/A/CoreSimulator
  Referenced from: /Applications/Xcode.app/Contents/Developer/Library/PrivateFrameworks/SimulatorKit.framework/Versions/A/SimulatorKit
  Reason: image not found” UserInfo={NSLocalizedFailureReason=The bundle is damaged or missing necessary resources., NSLocalizedRecoverySuggestion=Try reinstalling the bundle., NSFilePath=/Applications/Xcode.app/Contents/PlugIns/IDEInterfaceBuilderCocoaTouchIntegration.framework/IDEInterfaceBuilderCocoaTouchIntegration, NSDebugDescription=dlopen_preflight(/Applications/Xcode.app/Contents/PlugIns/IDEInterfaceBuilderCocoaTouchIntegration.framework/IDEInterfaceBuilderCocoaTouchIntegration): Library not loaded: /Library/Developer/PrivateFrameworks/CoreSimulator.framework/Versions/A/CoreSimulator
  Referenced from: /Applications/Xcode.app/Contents/Developer/Library/PrivateFrameworks/SimulatorKit.framework/Versions/A/SimulatorKit
  Reason: image not found, NSBundlePath=/Applications/Xcode.app/Contents/PlugIns/IDEInterfaceBuilderCocoaTouchIntegration.framework, NSLocalizedDescription=The bundle “IDEInterfaceBuilderCocoaTouchIntegration” couldn’t be loaded because it is damaged or missing necessary resources.}}}
2017-10-18 02:30:13.170 ibtoold[994:24730] *** Terminating app due to uncaught exception ‘NSInternalInconsistencyException’, reason: ‘Error getting value for parameter key ‘name’ of extension ‘Xcode.InterfaceBuilderKit.CocoaTouchIntegration.Singletons’ in plug-in ‘com.apple.dt.IDE.IDEInterfaceBuilderCocoaTouchIntegration’’
*** First throw call stack:
(
0   CoreFoundation                      0x00007fffd45d757b __exceptionPreprocess + 171
1   libobjc.A.dylib                     0x00007fffe99a81da objc_exception_throw + 48
2   DVTFoundation                       0x00000001055f8aad -[DVTExtensionParameter valueForKey:error:] + 0
3   IDEInterfaceBuilderKit              0x0000000104d88b4d -[IBScopedSingletonRegistry init] + 722
4   IDEInterfaceBuilderKit              0x0000000104d88861 __43+[IBScopedSingletonRegistry sharedInstance]_block_invoke + 41
5   libdispatch.dylib                   0x00007fffea2538fc _dispatch_client_callout + 8
6   libdispatch.dylib                   0x00007fffea2538b9 dispatch_once_f + 38
7   IDEInterfaceBuilderKit              0x0000000104d88835 +[IBScopedSingletonRegistry sharedInstance] + 45
8   IDEInterfaceBuilderKit              0x0000000104ba2689 -[IBInterfaceBuilderPlugin init] + 146
9   IDEInterfaceBuilderKit              0x0000000104ba25dd +[IBInterfaceBuilderPlugin ide_initializeWithOptions:error:] + 34
10  IDEFoundation                       0x0000000105f1ccce _IDEInitializeOnePlugInAndPrerequisites + 2324
11  IDEFoundation                       0x0000000105f1c5d5 _IDEInitializeOnePlugInAndPrerequisites + 539
12  IDEFoundation                       0x0000000105f1c5d5 _IDEInitializeOnePlugInAndPrerequisites + 539
13  IDEFoundation                       0x0000000105f1acca _IDEInitializePlugIns + 1604
14  IDEFoundation                       0x0000000105f1a081 IDEInitialize + 8547
15  ibtoold                             0x000000010489d5a9 ibtoold + 71081
16  ibtoold                             0x000000010489c724 ibtoold + 67364
17  libdyld.dylib                       0x00007fffea289235 start + 1
18  ???                                 0x000000000000001d 0x0 + 29
)
libc++abi.dylib: terminating with uncaught exception of type NSException

Can you post your build.settings?

Can you build the “HelloWorld” sample app?

Thanks

Rob

Thank you for the reply Rob, I’m at my day job right now, I will go home at lunch to post my build.settings, and will try the hello world to build.

Hi Rob, i was able to build it, i just recompiled the lauch storyboard in xcode 9. it was previously compiled with xcode 8

one question: can i use the same exported lauch storyboard with other apps? or do i need to recompile whenever there is a new app?

I did a test submission with the game I’m working on. It’s launchScreen storyboard is untouched from what I made with Xcode 8.  But there have been other people reporting they need to remake them. So I’m confused about this. It doesn’t make a lot of sense.

Rob

I too am getting this same error, what is the work around?

hi Chevol,

i just recompiled the launchScreen against xcode 9, and that fixed it.

I am dealing with an older Corona Project that doesn’t have the LaunchScreen.storyboardc. I know its in the Corona Folder but I have never had to recompile it before, do you have anymore instructions?

i advise you, to try my remedy. compile the launchscreen with xcode 9. that was my fix. i did not try anything else. since you said its a similar issue, im thinking the fix might be the same. but im not sure, you wont know for sure unless you try.

I’m not sure how to do that exactly, as I have never had to do it before.

Something like this?

https://docs.coronalabs.com/guide/distribution/launchFile/index.html

yes exactly that, thats the guide that i followed for xcode 8, you need to do that for xcode 9 and the new os and latest corona build. goodluck!

Thanks, that did the trick. For those who come across this the Assets.xcassets -> Application.appiconset -> Contents.json file has additional icons that are not in the Corona file. Here is the updated .json file:

{   "images" : [    {       "size" : "20x20",       "idiom" : "iphone",       "filename" : "Icon-40.png",       "scale" : "2x"     },     {       "idiom" : "iphone",       "size" : "20x20",       "scale" : "3x"     },     {       "size" : "29x29",       "idiom" : "iphone",       "filename" : "Icon-58.png",       "scale" : "2x"     },     {       "size" : "29x29",       "idiom" : "iphone",       "filename" : "Icon-87.png",       "scale" : "3x"     },     {       "size" : "40x40",       "idiom" : "iphone",       "filename" : "Icon-80.png",       "scale" : "2x"     },     {       "idiom" : "iphone",       "size" : "40x40",       "scale" : "3x"     },     {       "size" : "60x60",       "idiom" : "iphone",       "filename" : "Icon-120.png",       "scale" : "2x"     },     {       "size" : "60x60",       "idiom" : "iphone",       "filename" : "Icon-180.png",       "scale" : "3x"     },     {       "idiom" : "ipad",       "size" : "20x20",       "scale" : "1x"     },     {       "idiom" : "ipad",       "size" : "20x20",       "scale" : "2x"     },     {       "idiom" : "ipad",       "size" : "29x29",       "scale" : "1x"     },     {       "idiom" : "ipad",       "size" : "29x29",       "scale" : "2x"     },     {       "idiom" : "ipad",       "size" : "40x40",       "scale" : "1x"     },     {       "idiom" : "ipad",       "size" : "40x40",       "scale" : "2x"     },     {       "size" : "76x76",       "idiom" : "ipad",       "filename" : "Icon-76.png",       "scale" : "1x"     },     {       "size" : "76x76",       "idiom" : "ipad",       "filename" : "Icon-152.png",       "scale" : "2x"     },     {       "size" : "83.5x83.5",       "idiom" : "ipad",       "filename" : "Icon-167.png",       "scale" : "2x"     },     {       "size" : "1024x1024",       "idiom" : "ios-marketing",       "filename" : "Icon-1024.png",       "scale" : "1x"     }  ],   "info" : {     "version" : 1,     "author" : "xcode"   } }

Can you post your build.settings?

Can you build the “HelloWorld” sample app?

Thanks

Rob

Thank you for the reply Rob, I’m at my day job right now, I will go home at lunch to post my build.settings, and will try the hello world to build.

Hi Rob, i was able to build it, i just recompiled the lauch storyboard in xcode 9. it was previously compiled with xcode 8

one question: can i use the same exported lauch storyboard with other apps? or do i need to recompile whenever there is a new app?

I did a test submission with the game I’m working on. It’s launchScreen storyboard is untouched from what I made with Xcode 8.  But there have been other people reporting they need to remake them. So I’m confused about this. It doesn’t make a lot of sense.

Rob

I too am getting this same error, what is the work around?

hi Chevol,

i just recompiled the launchScreen against xcode 9, and that fixed it.

I am dealing with an older Corona Project that doesn’t have the LaunchScreen.storyboardc. I know its in the Corona Folder but I have never had to recompile it before, do you have anymore instructions?