Icon build error

Hello!

When I build my simple guide app using Version 2017.3184 (2017.12.8), I’m getting the following errors. Any idea what could be causing this? I thought I had all required icons, but maybe not!

Jun 01 09:57:54.898 ERROR: build command failed: xcrun actool --output-format human-readable-text --warnings --export-dependency-info “/var/folders/z7/q7dh8stx3l139pt9sds9363h0000gn/T/CLtmpyOtXSi/assetcatalog_dependencies” --output-partial-info-plist “/var/folders/z7/q7dh8stx3l139pt9sds9363h0000gn/T/CLtmpyOtXSi/assetcatalog_generated_info.plist” --compress-pngs --enable-on-demand-resources YES --product-type com.apple.product-type.application --compile “/Users/danielwilliams/Desktop/Aura.app” --target-device iphone --target-device ipad --minimum-deployment-target 8.0 --platform iphoneos --app-icon AppIcon “Images.xcassets”

Jun 01 09:57:54.898 ERROR: with exit code 255 and output: 

Jun 01 09:57:54.898 

Jun 01 09:57:54.927 ERROR: while compiling icons: 

Jun 01 09:57:54.928 BUILD ERROR: 

Jun 01 09:57:54.928 

Jun 01 09:57:54.945 iOS build failed (12) after 18 seconds

Jun 01 09:57:55.210 ERROR: Build Failed: 

In the root, I have these images:

Icon-hdpi.png

Icon-ldpi.png

Icon-mdpi.png

Icon-xhdpi.png

Icon-xxhdpi.png

Icon-xxxhdpi.png

Icon.png

And in the folder Images.xcassets/AppIcon.appiconset/ I have:

Contents.json

Icon-40.png

Icon-58.png

Icon-76.png

Icon-80.png

Icon-87.png

Icon-120.png

Icon-152.png

Icon-167.png

Icon-180.png

Icon-1024.png

I’ve attached a screenshot of the project folder.

What happens if you try and build one of our sample apps?

Have you tried copying the Images.xassets folder from one of these sample apps to yours and just replaced the PNG files?

Can you share your build.settings?

Rob

Hello Rob!

I created a new project using the tabbed project, made no changes, and received the same error. This time, I did notice that I’m getting an iOS SDK mismatch in the console. I’ve copied the console error along with build.settings below. 

console error

Jun 04 08:12:11.765 UNSUPPORTED iOS SDK Mismatch
The version of iOS SDK (11.4) that’s installed on this computer does not match the target iOS version (11.2). You may encounter issues building or incompatibilities at runtime.

You should consider updating your version of Xcode or using xcode-select to enable a compatible version.

Do you want to proceed with a build?Building iOS app for thatssopanda@gmail.com with 2017.3184

build.settings

-- -- For more information on build.settings, see the Project Build Settings guide at: -- https://docs.coronalabs.com/guide/distribution/buildSettings -- settings = { orientation = { -- Supported values for orientation: -- portrait, portraitUpsideDown, landscapeLeft, landscapeRight default = "portrait", supported = { "portrait", }, }, -- -- Android section -- android = { usesPermissions = { "android.permission.INTERNET", }, }, -- -- iOS section -- iphone = { xcassets = "Images.xcassets", plist = { UIStatusBarHidden = false, UILaunchStoryboardName = "LaunchScreen", }, }, -- -- Plugins section -- plugins = { }, -- -- Project section -- excludeFiles = { -- Exclude unnecessary files for each platform all = { "Icon.png", "Icon-\*dpi.png", "Images.xcassets", }, android = { "LaunchScreen.storyboardc", }, }, }

So let me re-ask you this: Have you tried building a sample app like HelloWorld, not create a new project.

If you have installed Xcode 9.4, you will need to install daily build 3307 or later to get rid of that warning.

I suspect this is the source of the problem:

all = { "Icon.png", "Icon-\*dpi.png", "Images.xcassets", },

I’m not sure why we are saying to exclude Images.xcassets file for all devices. I suspect that should be on the android line.

Rob

Also, do you still have the icon error with the blank project?

I was initially getting a similar build succeeded/build failed ERROR: with exit code 255 and output: ERROR: while compiling icons:.

I’m using Mac OS (10.13.5 high sierra), corona build 3308, xcode 9.4, IOS SDK set to 11.4 when building, after build set to ‘do nothing’.

The error I got, first it indicated the ‘build succeeded.’ followed by the assets error that ‘thatsopanda’ posted.

However, after I opened up xcode (as i wanted to confirm the version), xcode asked to install some additional components, and after that installed, I rebuilt the app using corona and it built fine without any errors.

I also made sure to remove the old .ipa and .dsym files from my build folder before rebuilding with corona.

I notice if you leave the files in your build folder and rebuild then corona does not go through the whole process of adding/deflating assets nor re-compiling the xcode assets catalog. However, most likely it seems that whatever components xcode installed in itself seemed to be the fix.

So perhaps ‘thatsopanda’ can retry with any of the above.

note: I also notice that the time when I got the icon assets error my .ipa was 92.8MB, when xcode did its additional component install and I rebuilt the app and it built fine, the .ipa had become only 82.8MB?

@rob My brain read that as “build a blank project”. I tried opening up the sample app, Hello World, and I still received the same issue. I’m copy/pasting the console output below. Please note, I did try upgrading to 2018.3308 per jacques1 suggestion.

Jun 05 02:11:53.554 Project sandbox folder: ~/Library/Application Support/Corona Simulator/HelloWorld-3B15995F268CF14F9C8C136758CA5C05

Jun 05 02:11:53.622 Platform: iPhone / x86_64 / 10.13.5 / Intel Iris OpenGL Engine / 2.1 INTEL-10.34.27 / 2018.3308 / en-US | US | en_US | en

Jun 05 02:11:59.863 Building iOS app for thatssopanda@gmail.com with 2018.3308

Jun 05 02:12:01.470 Using custom build id from app bundle: 00000 (AppSettings.lua)

Jun 05 02:12:06.161 BuildID: 5b16d27204120

Jun 05 02:12:11.902 Using additional build settings from: build.settings
Building: Copying app resources
Building: Unpacking build from server
Building: Compiling Xcode assets catalog

Jun 05 02:12:11.902 ERROR: build command failed: xcrun actool --output-format human-readable-text --warnings --export-dependency-info “/var/folders/z7/q7dh8stx3l139pt9sds9363h0000gn/T/CLtmpZfLYld/assetcatalog_dependencies” --output-partial-info-plist “/var/folders/z7/q7dh8stx3l139pt9sds9363h0000gn/T/CLtmpZfLYld/assetcatalog_generated_info.plist” --compress-pngs --enable-on-demand-resources YES --product-type com.apple.product-type.application --compile “/Users/danielwilliams/Desktop/HelloWorld.app” --target-device iphone --target-device ipad --minimum-deployment-target 8.0 --platform iphoneos --app-icon AppIcon “Images.xcassets”

Jun 05 02:12:11.902 ERROR: with exit code 255 and output:

Jun 05 02:12:11.903

Jun 05 02:12:11.916 ERROR: while compiling icons:

Jun 05 02:12:11.917 BUILD ERROR:

Jun 05 02:12:11.917

Jun 05 02:12:11.935 iOS build failed (12) after 10 seconds

Jun 05 02:12:12.263 ERROR: Build Failed:

Jun 05 02:12:12.263

Did you run Xcode and let it finish installing?

*slams head on desk*

All I had to do was open up xcode and allow it to self-update. If anyone else is running into this issue, just update xcode! Thank you to everyone who replied here to help me out!

I have updated Xcode, I have downloaded the latest daily build of Corona (3319) and I am still getting the “ERROR: while compiling icons” error.

Any suggestions?

@mr.coxall, have you actually run Xcode after updating it?

Rob

I am really happy that there is such a good support for Corona SDK. 

It saves me a lot of time !

:smiley:

This fixed it for me too. Thanks for the help! Rob is Miracle. :) 

What happens if you try and build one of our sample apps?

Have you tried copying the Images.xassets folder from one of these sample apps to yours and just replaced the PNG files?

Can you share your build.settings?

Rob

Hello Rob!

I created a new project using the tabbed project, made no changes, and received the same error. This time, I did notice that I’m getting an iOS SDK mismatch in the console. I’ve copied the console error along with build.settings below. 

console error

Jun 04 08:12:11.765 UNSUPPORTED iOS SDK Mismatch
The version of iOS SDK (11.4) that’s installed on this computer does not match the target iOS version (11.2). You may encounter issues building or incompatibilities at runtime.

You should consider updating your version of Xcode or using xcode-select to enable a compatible version.

Do you want to proceed with a build?Building iOS app for thatssopanda@gmail.com with 2017.3184

build.settings

-- -- For more information on build.settings, see the Project Build Settings guide at: -- https://docs.coronalabs.com/guide/distribution/buildSettings -- settings = { orientation = { -- Supported values for orientation: -- portrait, portraitUpsideDown, landscapeLeft, landscapeRight default = "portrait", supported = { "portrait", }, }, -- -- Android section -- android = { usesPermissions = { "android.permission.INTERNET", }, }, -- -- iOS section -- iphone = { xcassets = "Images.xcassets", plist = { UIStatusBarHidden = false, UILaunchStoryboardName = "LaunchScreen", }, }, -- -- Plugins section -- plugins = { }, -- -- Project section -- excludeFiles = { -- Exclude unnecessary files for each platform all = { "Icon.png", "Icon-\*dpi.png", "Images.xcassets", }, android = { "LaunchScreen.storyboardc", }, }, }

So let me re-ask you this: Have you tried building a sample app like HelloWorld, not create a new project.

If you have installed Xcode 9.4, you will need to install daily build 3307 or later to get rid of that warning.

I suspect this is the source of the problem:

all = { "Icon.png", "Icon-\*dpi.png", "Images.xcassets", },

I’m not sure why we are saying to exclude Images.xcassets file for all devices. I suspect that should be on the android line.

Rob

Also, do you still have the icon error with the blank project?

I was initially getting a similar build succeeded/build failed ERROR: with exit code 255 and output: ERROR: while compiling icons:.

I’m using Mac OS (10.13.5 high sierra), corona build 3308, xcode 9.4, IOS SDK set to 11.4 when building, after build set to ‘do nothing’.

The error I got, first it indicated the ‘build succeeded.’ followed by the assets error that ‘thatsopanda’ posted.

However, after I opened up xcode (as i wanted to confirm the version), xcode asked to install some additional components, and after that installed, I rebuilt the app using corona and it built fine without any errors.

I also made sure to remove the old .ipa and .dsym files from my build folder before rebuilding with corona.

I notice if you leave the files in your build folder and rebuild then corona does not go through the whole process of adding/deflating assets nor re-compiling the xcode assets catalog. However, most likely it seems that whatever components xcode installed in itself seemed to be the fix.

So perhaps ‘thatsopanda’ can retry with any of the above.

note: I also notice that the time when I got the icon assets error my .ipa was 92.8MB, when xcode did its additional component install and I rebuilt the app and it built fine, the .ipa had become only 82.8MB?

@rob My brain read that as “build a blank project”. I tried opening up the sample app, Hello World, and I still received the same issue. I’m copy/pasting the console output below. Please note, I did try upgrading to 2018.3308 per jacques1 suggestion.

Jun 05 02:11:53.554 Project sandbox folder: ~/Library/Application Support/Corona Simulator/HelloWorld-3B15995F268CF14F9C8C136758CA5C05

Jun 05 02:11:53.622 Platform: iPhone / x86_64 / 10.13.5 / Intel Iris OpenGL Engine / 2.1 INTEL-10.34.27 / 2018.3308 / en-US | US | en_US | en

Jun 05 02:11:59.863 Building iOS app for thatssopanda@gmail.com with 2018.3308

Jun 05 02:12:01.470 Using custom build id from app bundle: 00000 (AppSettings.lua)

Jun 05 02:12:06.161 BuildID: 5b16d27204120

Jun 05 02:12:11.902 Using additional build settings from: build.settings
Building: Copying app resources
Building: Unpacking build from server
Building: Compiling Xcode assets catalog

Jun 05 02:12:11.902 ERROR: build command failed: xcrun actool --output-format human-readable-text --warnings --export-dependency-info “/var/folders/z7/q7dh8stx3l139pt9sds9363h0000gn/T/CLtmpZfLYld/assetcatalog_dependencies” --output-partial-info-plist “/var/folders/z7/q7dh8stx3l139pt9sds9363h0000gn/T/CLtmpZfLYld/assetcatalog_generated_info.plist” --compress-pngs --enable-on-demand-resources YES --product-type com.apple.product-type.application --compile “/Users/danielwilliams/Desktop/HelloWorld.app” --target-device iphone --target-device ipad --minimum-deployment-target 8.0 --platform iphoneos --app-icon AppIcon “Images.xcassets”

Jun 05 02:12:11.902 ERROR: with exit code 255 and output:

Jun 05 02:12:11.903

Jun 05 02:12:11.916 ERROR: while compiling icons:

Jun 05 02:12:11.917 BUILD ERROR:

Jun 05 02:12:11.917

Jun 05 02:12:11.935 iOS build failed (12) after 10 seconds

Jun 05 02:12:12.263 ERROR: Build Failed:

Jun 05 02:12:12.263

Did you run Xcode and let it finish installing?