Error on building for Apple Store with xcassets

Hi,

since I followed this tutorial and added an “Images/xcassets” folder in my app I’m getting this error below when I try to build for the Apple Store. My folder have all the files mentioned in this article and with the exactly same name. I’m also using some images from the Corona’s “Resource Library” folder to complete some icon sizes that I still don’t have (see attachment).

If I comment the line “xcassets = “Images.xcassets”” in build.settings file it builds fine, but Apple don’t accept my app (obviously).

2017-10-30 22:41:27.805 ibtoold[17560:13693935] [MT] DVTPlugInExtensionFaulting: Failed to fire fault for extension Xcode.InterfaceBuilderKit.PepperIntegration.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=0x7ff07debf730 {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.}}}

Am I missing something? I’ve tried with the builds 2017.3161 and 2017.3162.

Thank you

Can you post your build.settings?

Rob

This same error also happens when I try to build the eBook template of Corona.

settings = { plugins = { ["plugin.google.iap.v3"] = { publisherId = "com.coronalabs", supportedPlatforms = { android=true } }, ["plugin.flurry.analytics"] = { publisherId = "com.coronalabs" }, }, orientation = { default = "portrait", --initial launch orientation content = "portrait", --locked orientation of the Corona stage, independent of Native UI elements (iOS only) supported = {"portrait"}, --table of allowed options for auto-orientation }, android = { versionCode = "01", largeHeap = true, allowAppsReadOnlyAccessToFiles = false, usesExpansionFile = false, usesPermissions = { "android.permission.INTERNET", "android.permission.WRITE\_EXTERNAL\_STORAGE", "com.android.vending.BILLING", "com.android.vending.CHECK\_LICENSE", "android.permission.VIBRATE", }, }, iphone = { xcassets = "Images.xcassets", plist = { CFBundleDisplayName = "Torto Turtle", CFBundleName = "Torto Turtle", CFBundleLocalizations = { "English", "Portuguese", "French", "German", "Italian", "Spanish" }, UILaunchImages = { { -- iPhone 4 Portrait ["UILaunchImageMinimumOSVersion"] = "7.0", ["UILaunchImageName"] = "Default", ["UILaunchImageOrientation"] = "Portrait", ["UILaunchImageSize"] = "{320, 480}" }, { -- iPhone 5 Portrait ["UILaunchImageMinimumOSVersion"] = "7.0", ["UILaunchImageName"] = "Default-568h", ["UILaunchImageOrientation"] = "Portrait", ["UILaunchImageSize"] = "{320, 568}" }, { -- iPad Portrait ["UILaunchImageMinimumOSVersion"] = "7.0", ["UILaunchImageName"] = "Default-Portrait", ["UILaunchImageOrientation"] = "Portrait", ["UILaunchImageSize"] = "{768, 1024}" }, { -- iPhone 6 Portrait ["UILaunchImageMinimumOSVersion"] = "8.0", ["UILaunchImageName"] = "Default-667h", ["UILaunchImageOrientation"] = "Portrait", ["UILaunchImageSize"] = "{375, 667}" }, { -- iPhone 6 Plus Portrait ["UILaunchImageMinimumOSVersion"] = "8.0", ["UILaunchImageName"] = "Default-736h", ["UILaunchImageOrientation"] = "Portrait", ["UILaunchImageSize"] = "{414, 736}" }, { -- iPad Pro Portrait ["UILaunchImageMinimumOSVersion"] = "9.0", ["UILaunchImageName"] = "Default-Portrait-1366", ["UILaunchImageOrientation"] = "Portrait", ["UILaunchImageSize"] = "{1024, 1366}" } }, UIStatusBarHidden = true, UIApplicationExitsOnSuspend = false, -- must be false for single sign-on to work CFBundleURLTypes = { { CFBundleURLSchemes = { "XXXXXXXXX", -- replace XXXXXXXXX with your facebook appId } } }, UIAppFonts = { "Dosis-Bold.otf", }, } } }

I just tried building eBook template, worked just fine.

Anyway. Here’s couple things to try:

  1. Upgrade Xcode, it should be like 9.0.1 now.

  2. Try removing all custom plist entries, add them 1 by 1

  3. Try building any of the samples (like Animation/HorseAnimation)

Also, consider removing these lines:

CFBundleDisplayName = “Torto Turtle”,
CFBundleName = “Torto Turtle”,

These are values that should come from the Corona build dialog form. The Bundle Name is taken from the provisioning profile. The display name is also provided by the form. Let us do that work for you.  On the Android side, the versionCode also comes from the Android build dialog and should increment each time you submit to Google. Setting it in build.settings is a good way to forget to update it later on.

You should also switch to a storyboard based launch image scheme rather than the static files. Apple pretty much has made it where you have to use these modern image management technologies if you want to submit today.

Rob

Problem solved.

I’ve installed some developer tools required by xcode and removed the entries below of the build.settings, after that It worked just fine.

CFBundleDisplayName CFBundleName CFBundleURLTypes

Thank you very much

Can you post your build.settings?

Rob

This same error also happens when I try to build the eBook template of Corona.

settings = { plugins = { ["plugin.google.iap.v3"] = { publisherId = "com.coronalabs", supportedPlatforms = { android=true } }, ["plugin.flurry.analytics"] = { publisherId = "com.coronalabs" }, }, orientation = { default = "portrait", --initial launch orientation content = "portrait", --locked orientation of the Corona stage, independent of Native UI elements (iOS only) supported = {"portrait"}, --table of allowed options for auto-orientation }, android = { versionCode = "01", largeHeap = true, allowAppsReadOnlyAccessToFiles = false, usesExpansionFile = false, usesPermissions = { "android.permission.INTERNET", "android.permission.WRITE\_EXTERNAL\_STORAGE", "com.android.vending.BILLING", "com.android.vending.CHECK\_LICENSE", "android.permission.VIBRATE", }, }, iphone = { xcassets = "Images.xcassets", plist = { CFBundleDisplayName = "Torto Turtle", CFBundleName = "Torto Turtle", CFBundleLocalizations = { "English", "Portuguese", "French", "German", "Italian", "Spanish" }, UILaunchImages = { { -- iPhone 4 Portrait ["UILaunchImageMinimumOSVersion"] = "7.0", ["UILaunchImageName"] = "Default", ["UILaunchImageOrientation"] = "Portrait", ["UILaunchImageSize"] = "{320, 480}" }, { -- iPhone 5 Portrait ["UILaunchImageMinimumOSVersion"] = "7.0", ["UILaunchImageName"] = "Default-568h", ["UILaunchImageOrientation"] = "Portrait", ["UILaunchImageSize"] = "{320, 568}" }, { -- iPad Portrait ["UILaunchImageMinimumOSVersion"] = "7.0", ["UILaunchImageName"] = "Default-Portrait", ["UILaunchImageOrientation"] = "Portrait", ["UILaunchImageSize"] = "{768, 1024}" }, { -- iPhone 6 Portrait ["UILaunchImageMinimumOSVersion"] = "8.0", ["UILaunchImageName"] = "Default-667h", ["UILaunchImageOrientation"] = "Portrait", ["UILaunchImageSize"] = "{375, 667}" }, { -- iPhone 6 Plus Portrait ["UILaunchImageMinimumOSVersion"] = "8.0", ["UILaunchImageName"] = "Default-736h", ["UILaunchImageOrientation"] = "Portrait", ["UILaunchImageSize"] = "{414, 736}" }, { -- iPad Pro Portrait ["UILaunchImageMinimumOSVersion"] = "9.0", ["UILaunchImageName"] = "Default-Portrait-1366", ["UILaunchImageOrientation"] = "Portrait", ["UILaunchImageSize"] = "{1024, 1366}" } }, UIStatusBarHidden = true, UIApplicationExitsOnSuspend = false, -- must be false for single sign-on to work CFBundleURLTypes = { { CFBundleURLSchemes = { "XXXXXXXXX", -- replace XXXXXXXXX with your facebook appId } } }, UIAppFonts = { "Dosis-Bold.otf", }, } } }

I just tried building eBook template, worked just fine.

Anyway. Here’s couple things to try:

  1. Upgrade Xcode, it should be like 9.0.1 now.

  2. Try removing all custom plist entries, add them 1 by 1

  3. Try building any of the samples (like Animation/HorseAnimation)

Also, consider removing these lines:

CFBundleDisplayName = “Torto Turtle”,
CFBundleName = “Torto Turtle”,

These are values that should come from the Corona build dialog form. The Bundle Name is taken from the provisioning profile. The display name is also provided by the form. Let us do that work for you.  On the Android side, the versionCode also comes from the Android build dialog and should increment each time you submit to Google. Setting it in build.settings is a good way to forget to update it later on.

You should also switch to a storyboard based launch image scheme rather than the static files. Apple pretty much has made it where you have to use these modern image management technologies if you want to submit today.

Rob

Problem solved.

I’ve installed some developer tools required by xcode and removed the entries below of the build.settings, after that It worked just fine.

CFBundleDisplayName CFBundleName CFBundleURLTypes

Thank you very much