Cordova ios error building Images.xcassets

I've spent a lot of time trying to work this out to no avail.

I udpated cordova and since el capitan my mac now has issues with NPM and cordova.

I got it to install but I have to use sudo for cordova now.

I tried the following:

sudo cordova platform remove ios
sudo cordova platform add ios
sudo cordova build ios

And this gives me the following output:

** BUILD FAILED **


The following build commands failed:
    CompileAssetCatalog build/emulator/<AppName>.app <AppName>/Images.xcassets
(1 failure)
ERROR building one of the platforms: Error code 65 for command: xcodebuild with args: -xcconfig,/Users/MacUserName/Desktop/<AppName>/<AppName>/platforms/ios/cordova/build-debug.xcconfig,-project,<AppName>.xcodeproj,ARCHS=i386,-target,<AppName>,-configuration,Debug,-sdk,iphonesimulator,build,VALID_ARCHS=i386,CONFIGURATION_BUILD_DIR=/Users/MacUserName/Desktop/<AppName>/<AppName>/platforms/ios/build/emulator,SHARED_PRECOMPS_DIR=/Users/MacUserName/Desktop/<AppName>/<AppName>/platforms/ios/build/sharedpch
You may not have the required environment or OS to build this project
Error: Error code 65 for command: xcodebuild with args: -xcconfig,/Users/MacUserName/Desktop/<AppName>/<AppName>/platforms/ios/cordova/build-debug.xcconfig,-project,<AppName>.xcodeproj,ARCHS=i386,-target,<AppName>,-configuration,Debug,-sdk,iphonesimulator,build,VALID_ARCHS=i386,CONFIGURATION_BUILD_DIR=/Users/MacUserName/Desktop/<AppName>/<AppName>/platforms/ios/build/emulator,SHARED_PRECOMPS_DIR=/Users/MacUserName/Desktop/<AppName>/<AppName>/platforms/ios/build/sharedpch

Cordova version

sudo cordova -v
6.0.0

Update: I'm now running 6.1.1, still the same issue

Cordova iOS platform version

sudo cordova platform ios -v
6.1.1

Mac Version: 10.11.3 XCode Version:7.2.1

Build on XCode: Compile Asset Catalog failed � Issue #255 , cordova build ios --release --verbose exited with exit code 65. I tried replacing the images provided = same error App_Resources/iOS/Assets.xcassets/ LaunchImage.launchimage should be deleted = file deleted, launch a� I udpated cordova and since el capitan my mac now has issues with NPM and cordova. I got it to install but I have to use sudo for cordova now. I tried the following: sudo cordova platform remove ios sudo cordova platform add ios sudo cordova build ios And this gives me the following output:

I would recommend using the cordova-icon and cordova-splash npm packages. This is because you can just put two images in your root, then the commands will work out the rest for you. They are written by cordova, and you can install using:

npm install -g cordova-icon
npm install -g cordova-splash

Then just put a 1024x1024 version of your logo as "icon.png" in the project root. And:

"The splash screen image should be 2208x2208 px with a center square of about 1200x1200 px. The image may be cropped around the center square."

https://www.npmjs.com/package/cordova-splash

Just put an image matching that description in the project root as "splash.png"

Remove any lines in config.xml that specify the images to use for ios, cordova-icon/splash will automatically put them in the correct place with the right names so that xcode will recognize them.

Once you've got that setup, just execute these commands:

cordova platform remove ios
cordova platform add ios
cordova-icon
cordova-splash

Then run your build command. For me it is:

cordova build ios --build-config

But you may not have a build config, or need additional params. If the build fails (make sure you run the command even if you think it will fail - it will set things up) just open the generated workspace in platforms/ios in xcode, clean the project, and build. That should work.

CompileAssetCatalog error when running ionic cordova run ios , [ERROR] An error occurred while running cordova build ios (exit code 1): mmCalc/Images.xcassets (1 failure) Error: Error code 65 for� Until PhoneGap Build supports `cordova-ios@4.3.1`, launch storyboards will definitely not work. I'm not staff, so I can't give any estimation as to when support might happen. Sorry 😞

  1. Rename Platform/ios
  2. on terminal type: cordova platform add ios
  3. cordova build ios.

worked at my case

Cordova ios error building Images.xcassets, Yo recomendar�a el uso de los paquetes de NPM-cordova icono y C�rdoba- salpicaduras. Esto se debe a que puedes poner dos im�genes en tu ra�z, luego los� I udpated cordova and since el capitan my mac now has issues with NPM and cordova. I got it to install but I have to use sudo for cordova now. I tried the following: sudo cordova platform remove ios sudo cordova platform add ios sudo cordova build ios And this gives me the following output:

I got this error when I was using cordova-icon but my icon.png image was not square.

Changing the icon.png to a square image and re-doing cordova-icon meant that cordova build ios now works for me.

ios — Cordova ios error building Images.xcassets, Cordova ios error building Images.xcassets. J'ai pass� beaucoup de temps � essayer de r�soudre ce probl�me en vain. J'ai mis � jour cordova et depuis el� Ionic cli 6.2.2 Ionic1 1.3.2 Cordova cli 9.0.0 Cordova platform ios 5.1.1 cordova-plugin-inappbrowser 3.2.0 share | improve this answer | follow | edited Mar 20 at 13:28

Ths simple solution that I have tried is to add the correct size of the image 1024x1024

   <platform name="ios">
        <icon src="res/icon-1024.png" />
    </platform>

Solved: Build error ios (app id : 2879554), Jasonetlesargonautes/Images.xcassets. (1 failure). Error code 65 for command : xcodebuild with args: -xcconfig,/private/project/cordova/build-release.xcconfig� I udpated cordova and since el capitan my mac now has issues with NPM and cordova. I got it to install but I have to use sudo for cordova now. I tried the following: sudo cordova platform remove ios sudo cordova platform add ios sudo cordova build ios And this gives me the following output:

xcassets "Distill failed for unkno…, xcassets "Distill failed for unknown reasons" in Xcode 8, works fine in Xcode 7 I get a lot of output like this in the error: Provenance-beta/DerivedData/ Provenance/Build/Products/Release-appletvos/Provenance.app/Assets.car / Users/. $ cordova platform add https: //github.com/apache/cordova-ios.git#3.9.2 --verbose Executing "before_platform_add" hook for all plugins. git cloning: https: //github

Cordova ios error building Images.xcassets, Cordova ios error building Images.xcassets. 放荡不羁爱自由 关注. 发布时间:2019 -01-23 12:21. 可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如� I was hoping that I would be able to use the cordova CLI (version 6.3.1) for building both Android apps and iOS apps. At this stage I don't know what to do. This comment has been minimized.

科尔多瓦ios错误生成Images.xcassets Cordova ios error building , Cordova ios error building Images.xcassets. 发表于 2016-03-18 23:15:43. 活跃于 2019-� I'm using Ionic 3 and I execute the following command in terminal ionic cordova build ios And now I have this issue The following build commands failed: CompileAssetCatalog build/emu

Comments
  • had the same error. removed and re-added the ios platform then removed icon instructions in config.xml and re-built successfully. no idea how it can manage to generate icons without making them correct size, but somehow, some component in cordova manages to create all the icons the wrong size (1024x1024 in my case). Go team.
  • @jimmont I've definitely tried removing the platform and re-adding it many times. Never any luck
  • There are a couple of useful app icon/splash screen builders for cordova: github.com/AlexDisler/cordova-splash and github.com/AlexDisler/cordova-icon
  • I'm using cordova not ionic, so I can't run "ionic resources" anything
  • Thanks, I was having this exact problem.
  • @csga5000 You can just use the ionic tools when you're building. You don't have to include the client libraries for this to help.
  • @FrodmanG I believe I did somethign like removing configs for icons/splashes, removing/adding my ios platform, and then correcting the configuration of icons/splash. One thing I'd advise for anyone with similar issues is to open the platform in xcode and check that everything looks right and has valid filepaths in the xcassets file.
  • @csga5000 - you can do the same thing with cordova : first install cordova-splash and cordova-icon (npm install -g cordova-splash cordova-icon), then create your icon.png and splash.png in the root of your cordova project (ie. the directory above /www), then run them (cordova-icon ; cordova-splash) and all the correct icon and splash images will be created in the correct area under /platforms. (Note that you need ImagicMagic installed). The iconic commands are just wrapping these same npm modules.
  • Note for a bug: On OSX it was required to also install imagemagick to get cordova-icon or cordova-splash working. The bug I encountered which had to have imagemagick installed was answered here. This also required having HomeBrew installed to imagemagick which can be done by typing into the terminal /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" Which I found on the HomeBrew site here. Hopefully this helps somebody.
  • I don't think cordova is as active now that there are arguably better alternatives like Flutter, Xamarin, and React Native for cross platform mobile development. Coming back to a cordova project, cordova-icon doesn't seem to be working well with updated cordova. (Which in turn wasn't playing well with updated iOS and I had to disable the modern build system)
  • On the second point you got an error. Its cordova platform add ios .
  • If 1 suggests renaming the directory platforms/ios I have not tried that. However, I've tried cordova platform remove ios, instead and this did not resolve the issue. I've even tried creating a new project and adding that. The only fix I've found is commenting the line for the logo from the config file and then removing/adding the platform.
  • That wasn't my problem, I only found out about cordova-icon a day or two ago actually, and no problems. But perhaps still useful for some. Thanks Kris
  • I appreciate this may have solved a problem for you but I don't believe this is the solution to the OP as the issue is related to the incorrect, or lack of, suitable icon and splash screen images. I had the same problem and had that error on first build, so at that point there was no platform/ios folder!