ionic-team / ionic-framework

A powerful cross-platform UI toolkit for building native-quality iOS, Android, and Progressive Web Apps with HTML, CSS, and JavaScript.
https://ionicframework.com
MIT License
51.02k stars 13.51k forks source link

New project fails to build and run on iOS. Assets fail to compile. #13815

Closed SusanKern closed 6 years ago

SusanKern commented 6 years ago

Ionic version: (check one with "x") (For Ionic 1.x issues, please use https://github.com/ionic-team/ionic-v1) [ ] 2.x [ ] 3.x [X] 4.x

I'm submitting a ... (check one with "x") [X] bug report [ ] feature request

Current behavior: The build fails to complete.

Expected behavior: The code should compile and run.

Steps to reproduce: Create a new app using ionic start testapp tabs. Run the app as an iOS app on the emulator using ionic cordova emulate ios. The code fails to build, showing many warnings and errors during the compilation of the asset catalog.

Other information: Build output shown at end of this post..

Ionic info: (run ionic info from a terminal/cmd prompt and paste output below):

cli packages: (/usr/local/lib/node_modules)
    @ionic/cli-utils  : 1.19.0
    ionic (Ionic CLI) : 3.19.0

global packages:
    cordova (Cordova CLI) : 8.0.0 

local packages:
    @ionic/app-scripts : 3.1.6
    Cordova Platforms  : ios 4.5.4
    Ionic Framework    : ionic-angular 3.9.2

System:
    Node  : v8.9.4
    npm   : 5.6.0 
    OS    : macOS Sierra
    Xcode : Xcode 9.2 Build version 9C40b 

Environment Variables:
    ANDROID_HOME : not set

Misc:
    backend : pro

Build output:

CompileAssetCatalog /Users/skern/littlegreensoftware/ionictest/testapp/platforms/ios/build/emulator/testapp.app testapp/Images.xcassets
    cd /Users/skern/LittleGreenSoftware/ionictest/testapp/platforms/ios
    export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Users/skern/LittleGreenSoftware/ionictest/testapp/node_modules/.bin:/opt/local/bin:/opt/local/sbin:/Users/skern/.composer/vendor/bin:/usr/local/php5/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
    /Applications/Xcode.app/Contents/Developer/usr/bin/actool --output-format human-readable-text --notices --warnings --export-dependency-info /Users/skern/Library/Developer/Xcode/DerivedData/testapp-bkgjmsuyjitgoccsbzjvgkasofjs/Build/Intermediates.noindex/testapp.build/Debug-iphonesimulator/testapp.build/assetcatalog_dependencies --output-partial-info-plist /Users/skern/Library/Developer/Xcode/DerivedData/testapp-bkgjmsuyjitgoccsbzjvgkasofjs/Build/Intermediates.noindex/testapp.build/Debug-iphonesimulator/testapp.build/assetcatalog_generated_info.plist --app-icon AppIcon --launch-image LaunchImage --compress-pngs --enable-on-demand-resources YES --filter-for-device-model iPhone10,3 --filter-for-device-os-version 11.2 --sticker-pack-identifier-prefix .sticker-pack. --target-device iphone --target-device ipad --minimum-deployment-target 9.0 --platform iphonesimulator --product-type com.apple.product-type.application --compile /Users/skern/littlegreensoftware/ionictest/testapp/platforms/ios/build/emulator/testapp.app /Users/skern/LittleGreenSoftware/ionictest/testapp/platforms/ios/testapp/Images.xcassets
BOMStorage BOMStorageNewWithOptionsAndSys(const char *, CFDictionaryRef, BomSys *) can't open: '/Users/skern/littlegreensoftware/ionictest/testapp/platforms/ios/build/emulator/testapp.app/Assets.car' No such file or directory
CoreUI: Error: unable to create storage file /Users/skern/littlegreensoftware/ionictest/testapp/platforms/ios/build/emulator/testapp.app/Assets.car error 'No such file or directory'
/* com.apple.actool.errors */
/Users/skern/LittleGreenSoftware/ionictest/testapp/platforms/ios/testapp/Images.xcassets: error: ERROR: Each TDDistiller instance can be distilled only one time!
/* com.apple.actool.document.warnings */
/Users/skern/LittleGreenSoftware/ionictest/testapp/platforms/ios/testapp/Images.xcassets:./AppIcon.appiconset/[][watch][24x24][notificationCenter][38mm][2x][][]: warning: The file "AppIcon24x24@2x.png" for the image set "AppIcon" does not exist.
/Users/skern/LittleGreenSoftware/ionictest/testapp/platforms/ios/testapp/Images.xcassets:./AppIcon.appiconset/[][watch][98x98][quickLook][42mm][2x][][]: warning: The file "AppIcon98x98@2x.png" for the image set "AppIcon" does not exist.
/Users/skern/LittleGreenSoftware/ionictest/testapp/platforms/ios/testapp/Images.xcassets:./AppIcon.appiconset/[][watch][86x86][quickLook][38mm][2x][][]: warning: The file "AppIcon86x86@2x.png" for the image set "AppIcon" does not exist.
/Users/skern/LittleGreenSoftware/ionictest/testapp/platforms/ios/testapp/Images.xcassets:./AppIcon.appiconset/[][watch][44x44][longLook][42mm][2x][][]: warning: The file "AppIcon44x44@2x.png" for the image set "AppIcon" does not exist.
/Users/skern/LittleGreenSoftware/ionictest/testapp/platforms/ios/testapp/Images.xcassets:./AppIcon.appiconset/[][ipad][20x20][][][1x][][]: warning: The file "icon-20.png" for the image set "AppIcon" does not exist.
/Users/skern/LittleGreenSoftware/ionictest/testapp/platforms/ios/testapp/Images.xcassets:./AppIcon.appiconset/[][watch][27.5x27.5][notificationCenter][42mm][2x][][]: warning: The file "AppIcon27.5x27.5@2x.png" for the image set "AppIcon" does not exist.
/Users/skern/LittleGreenSoftware/ionictest/testapp/platforms/ios/testapp/Images.xcassets:./LaunchImage.launchimage/[iphone][2436h][3x][landscape][full-screen][11.0]: warning: The file "Default-Landscape-2436h.png" for the image set "LaunchImage" does not exist.
/Users/skern/LittleGreenSoftware/ionictest/testapp/platforms/ios/testapp/Images.xcassets:./LaunchImage.launchimage/[iphone][2436h][3x][portrait][full-screen][11.0]: warning: The file "Default-2436h.png" for the image set "LaunchImage" does not exist.
/Users/skern/LittleGreenSoftware/ionictest/testapp/platforms/ios/testapp/Images.xcassets:./AppIcon.appiconset/[][ipad][20x20][][][1x][][]: warning: The file "icon-20.png" for the image set "AppIcon" does not exist.
/Users/skern/LittleGreenSoftware/ionictest/testapp/platforms/ios/testapp/Images.xcassets:./AppIcon.appiconset/[][watch][27.5x27.5][notificationCenter][42mm][2x][][]: warning: The file "AppIcon27.5x27.5@2x.png" for the image set "AppIcon" does not exist.
/Users/skern/LittleGreenSoftware/ionictest/testapp/platforms/ios/testapp/Images.xcassets:./AppIcon.appiconset/[][watch][86x86][quickLook][38mm][2x][][]: warning: The file "AppIcon86x86@2x.png" for the image set "AppIcon" does not exist.
/Users/skern/LittleGreenSoftware/ionictest/testapp/platforms/ios/testapp/Images.xcassets:./AppIcon.appiconset/[][watch][24x24][notificationCenter][38mm][2x][][]: warning: The file "AppIcon24x24@2x.png" for the image set "AppIcon" does not exist.
/Users/skern/LittleGreenSoftware/ionictest/testapp/platforms/ios/testapp/Images.xcassets:./AppIcon.appiconset/[][watch][98x98][quickLook][42mm][2x][][]: warning: The file "AppIcon98x98@2x.png" for the image set "AppIcon" does not exist.
/Users/skern/LittleGreenSoftware/ionictest/testapp/platforms/ios/testapp/Images.xcassets:./AppIcon.appiconset/[][watch][44x44][longLook][42mm][2x][][]: warning: The file "AppIcon44x44@2x.png" for the image set "AppIcon" does not exist.
/* com.apple.actool.document.notices */
/Users/skern/LittleGreenSoftware/ionictest/testapp/platforms/ios/testapp/Images.xcassets:./AppIcon.appiconset/[][iphone][57x57][][][1x][][]: notice: 57x57 app icons only apply to iPhone apps targeting releases of iOS prior to 7.0
/Users/skern/LittleGreenSoftware/ionictest/testapp/platforms/ios/testapp/Images.xcassets:./AppIcon.appiconset/[][iphone][57x57][][][2x][][]: notice: 57x57@2x app icons only apply to iPhone apps targeting releases of iOS prior to 7.0
/Users/skern/LittleGreenSoftware/ionictest/testapp/platforms/ios/testapp/Images.xcassets:./AppIcon.appiconset/[][ipad][50x50][][][1x][][]: notice: 50x50 iPad spotlight icons only apply to iPad apps targeting releases of iOS prior to 7.0
/Users/skern/LittleGreenSoftware/ionictest/testapp/platforms/ios/testapp/Images.xcassets:./AppIcon.appiconset/[][ipad][50x50][][][2x][][]: notice: 50x50 iPad spotlight icons only apply to iPad apps targeting releases of iOS prior to 7.0
/Users/skern/LittleGreenSoftware/ionictest/testapp/platforms/ios/testapp/Images.xcassets:./AppIcon.appiconset/[][ipad][72x72][][][1x][][]: notice: 72x72 app icons only apply to iPad apps targeting releases of iOS prior to 7.0
/Users/skern/LittleGreenSoftware/ionictest/testapp/platforms/ios/testapp/Images.xcassets:./AppIcon.appiconset/[][ipad][72x72][][][2x][][]: notice: 72x72@2x app icons only apply to iPad apps targeting releases of iOS prior to 7.0
/Users/skern/LittleGreenSoftware/ionictest/testapp/platforms/ios/testapp/Images.xcassets:./AppIcon.appiconset/[][ipad][76x76][][][1x][][]: notice: 76x76@1x app icons only apply to iPad apps targeting releases of iOS prior to 10.0.
/Users/skern/LittleGreenSoftware/ionictest/testapp/platforms/ios/testapp/Images.xcassets:./LaunchImage.launchimage/[iphone][736h][3x][portrait][full-screen][8.0]: notice: This launch image only applies to iOS 6.x and prior but the minimum deployment is 7.0 or later.
/Users/skern/LittleGreenSoftware/ionictest/testapp/platforms/ios/testapp/Images.xcassets:./LaunchImage.launchimage/[iphone][736h][3x][landscape][full-screen][8.0]: notice: This launch image only applies to iOS 6.x and prior but the minimum deployment is 7.0 or later.
/Users/skern/LittleGreenSoftware/ionictest/testapp/platforms/ios/testapp/Images.xcassets:./LaunchImage.launchimage/[iphone][667h][2x][portrait][full-screen][8.0]: notice: This launch image only applies to iOS 6.x and prior but the minimum deployment is 7.0 or later.
/Users/skern/LittleGreenSoftware/ionictest/testapp/platforms/ios/testapp/Images.xcassets:./LaunchImage.launchimage/[iphone][][1x][portrait][full-screen][]: notice: This launch image only applies to iOS 6.x and prior but the minimum deployment is 7.0 or later.
/Users/skern/LittleGreenSoftware/ionictest/testapp/platforms/ios/testapp/Images.xcassets:./LaunchImage.launchimage/[iphone][][2x][portrait][full-screen][]: notice: This launch image only applies to iOS 6.x and prior but the minimum deployment is 7.0 or later.
/Users/skern/LittleGreenSoftware/ionictest/testapp/platforms/ios/testapp/Images.xcassets:./LaunchImage.launchimage/[iphone][retina4][2x][portrait][full-screen][]: notice: This launch image only applies to iOS 6.x and prior but the minimum deployment is 7.0 or later.
/Users/skern/LittleGreenSoftware/ionictest/testapp/platforms/ios/testapp/Images.xcassets:./LaunchImage.launchimage/[ipad][][1x][portrait][full-screen][]: notice: This launch image only applies to iOS 6.x and prior but the minimum deployment is 7.0 or later.
/Users/skern/LittleGreenSoftware/ionictest/testapp/platforms/ios/testapp/Images.xcassets:./LaunchImage.launchimage/[ipad][][1x][landscape][full-screen][]: notice: This launch image only applies to iOS 6.x and prior but the minimum deployment is 7.0 or later.
/Users/skern/LittleGreenSoftware/ionictest/testapp/platforms/ios/testapp/Images.xcassets:./LaunchImage.launchimage/[ipad][][2x][portrait][full-screen][]: notice: This launch image only applies to iOS 6.x and prior but the minimum deployment is 7.0 or later.
/Users/skern/LittleGreenSoftware/ionictest/testapp/platforms/ios/testapp/Images.xcassets:./LaunchImage.launchimage/[ipad][][2x][landscape][full-screen][]: notice: This launch image only applies to iOS 6.x and prior but the minimum deployment is 7.0 or later.
/* com.apple.actool.compilation-results */
/Users/skern/littlegreensoftware/ionictest/testapp/platforms/ios/build/emulator/testapp.app/AppIcon20x20@2x.png
/Users/skern/littlegreensoftware/ionictest/testapp/platforms/ios/build/emulator/testapp.app/AppIcon20x20@3x.png
/Users/skern/littlegreensoftware/ionictest/testapp/platforms/ios/build/emulator/testapp.app/AppIcon29x29.png
/Users/skern/littlegreensoftware/ionictest/testapp/platforms/ios/build/emulator/testapp.app/AppIcon29x29@2x.png
/Users/skern/littlegreensoftware/ionictest/testapp/platforms/ios/build/emulator/testapp.app/AppIcon29x29@3x.png
/Users/skern/littlegreensoftware/ionictest/testapp/platforms/ios/build/emulator/testapp.app/AppIcon40x40@2x.png
/Users/skern/littlegreensoftware/ionictest/testapp/platforms/ios/build/emulator/testapp.app/AppIcon40x40@3x.png
/Users/skern/littlegreensoftware/ionictest/testapp/platforms/ios/build/emulator/testapp.app/AppIcon57x57.png
/Users/skern/littlegreensoftware/ionictest/testapp/platforms/ios/build/emulator/testapp.app/AppIcon57x57@2x.png
/Users/skern/littlegreensoftware/ionictest/testapp/platforms/ios/build/emulator/testapp.app/AppIcon60x60@2x.png
/Users/skern/littlegreensoftware/ionictest/testapp/platforms/ios/build/emulator/testapp.app/AppIcon60x60@3x.png
/Users/skern/littlegreensoftware/ionictest/testapp/platforms/ios/build/emulator/testapp.app/AppIcon20x20@2x~ipad.png
/Users/skern/littlegreensoftware/ionictest/testapp/platforms/ios/build/emulator/testapp.app/AppIcon29x29~ipad.png
/Users/skern/littlegreensoftware/ionictest/testapp/platforms/ios/build/emulator/testapp.app/AppIcon29x29@2x~ipad.png
/Users/skern/littlegreensoftware/ionictest/testapp/platforms/ios/build/emulator/testapp.app/AppIcon40x40~ipad.png
/Users/skern/littlegreensoftware/ionictest/testapp/platforms/ios/build/emulator/testapp.app/AppIcon40x40@2x~ipad.png
/Users/skern/littlegreensoftware/ionictest/testapp/platforms/ios/build/emulator/testapp.app/AppIcon50x50~ipad.png
/Users/skern/littlegreensoftware/ionictest/testapp/platforms/ios/build/emulator/testapp.app/AppIcon50x50@2x~ipad.png
/Users/skern/littlegreensoftware/ionictest/testapp/platforms/ios/build/emulator/testapp.app/AppIcon72x72~ipad.png
/Users/skern/littlegreensoftware/ionictest/testapp/platforms/ios/build/emulator/testapp.app/AppIcon72x72@2x~ipad.png
/Users/skern/littlegreensoftware/ionictest/testapp/platforms/ios/build/emulator/testapp.app/AppIcon76x76~ipad.png
/Users/skern/littlegreensoftware/ionictest/testapp/platforms/ios/build/emulator/testapp.app/AppIcon76x76@2x~ipad.png
/Users/skern/littlegreensoftware/ionictest/testapp/platforms/ios/build/emulator/testapp.app/AppIcon83.5x83.5@2x~ipad.png
/Users/skern/littlegreensoftware/ionictest/testapp/platforms/ios/build/emulator/testapp.app/LaunchImage-800-Portrait-736h@3x.png
/Users/skern/littlegreensoftware/ionictest/testapp/platforms/ios/build/emulator/testapp.app/LaunchImage-800-Landscape-736h@3x.png
/Users/skern/littlegreensoftware/ionictest/testapp/platforms/ios/build/emulator/testapp.app/LaunchImage-800-667h@2x.png
/Users/skern/littlegreensoftware/ionictest/testapp/platforms/ios/build/emulator/testapp.app/LaunchImage-700@2x.png
/Users/skern/littlegreensoftware/ionictest/testapp/platforms/ios/build/emulator/testapp.app/LaunchImage-700-568h@2x.png
/Users/skern/littlegreensoftware/ionictest/testapp/platforms/ios/build/emulator/testapp.app/LaunchImage-700-Portrait~ipad.png
/Users/skern/littlegreensoftware/ionictest/testapp/platforms/ios/build/emulator/testapp.app/LaunchImage-700-Landscape~ipad.png
/Users/skern/littlegreensoftware/ionictest/testapp/platforms/ios/build/emulator/testapp.app/LaunchImage-700-Portrait@2x~ipad.png
/Users/skern/littlegreensoftware/ionictest/testapp/platforms/ios/build/emulator/testapp.app/LaunchImage-700-Landscape@2x~ipad.png
/Users/skern/littlegreensoftware/ionictest/testapp/platforms/ios/build/emulator/testapp.app/LaunchImage.png
/Users/skern/littlegreensoftware/ionictest/testapp/platforms/ios/build/emulator/testapp.app/LaunchImage@2x.png
/Users/skern/littlegreensoftware/ionictest/testapp/platforms/ios/build/emulator/testapp.app/LaunchImage-568h@2x.png
/Users/skern/littlegreensoftware/ionictest/testapp/platforms/ios/build/emulator/testapp.app/LaunchImage-Portrait~ipad.png
/Users/skern/littlegreensoftware/ionictest/testapp/platforms/ios/build/emulator/testapp.app/LaunchImage-Landscape~ipad.png
/Users/skern/littlegreensoftware/ionictest/testapp/platforms/ios/build/emulator/testapp.app/LaunchImage-Portrait@2x~ipad.png
/Users/skern/littlegreensoftware/ionictest/testapp/platforms/ios/build/emulator/testapp.app/LaunchImage-Landscape@2x~ipad.png
/Users/skern/littlegreensoftware/ionictest/testapp/platforms/ios/build/emulator/testapp.app/Assets.car
/Users/skern/Library/Developer/Xcode/DerivedData/testapp-bkgjmsuyjitgoccsbzjvgkasofjs/Build/Intermediates.noindex/testapp.build/Debug-iphonesimulator/testapp.build/assetcatalog_generated_info.plist

CompileStoryboard testapp/CDVLaunchScreen.storyboard
    cd /Users/skern/LittleGreenSoftware/ionictest/testapp/platforms/ios
    export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Users/skern/LittleGreenSoftware/ionictest/testapp/node_modules/.bin:/opt/local/bin:/opt/local/sbin:/Users/skern/.composer/vendor/bin:/usr/local/php5/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
    export XCODE_DEVELOPER_USR_PATH=/Applications/Xcode.app/Contents/Developer/usr/bin/..
    /Applications/Xcode.app/Contents/Developer/usr/bin/ibtool --errors --warnings --notices --module testapp --output-partial-info-plist /Users/skern/Library/Developer/Xcode/DerivedData/testapp-bkgjmsuyjitgoccsbzjvgkasofjs/Build/Intermediates.noindex/testapp.build/Debug-iphonesimulator/testapp.build/CDVLaunchScreen-SBPartialInfo.plist --auto-activate-custom-fonts --target-device iphone --target-device ipad --minimum-deployment-target 9.0 --output-format human-readable-text --compilation-directory /Users/skern/Library/Developer/Xcode/DerivedData/testapp-bkgjmsuyjitgoccsbzjvgkasofjs/Build/Intermediates.noindex/testapp.build/Debug-iphonesimulator/testapp.build /Users/skern/LittleGreenSoftware/ionictest/testapp/platforms/ios/testapp/CDVLaunchScreen.storyboard

CompileXIB testapp/Classes/MainViewController.xib
    cd /Users/skern/LittleGreenSoftware/ionictest/testapp/platforms/ios
    export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Users/skern/LittleGreenSoftware/ionictest/testapp/node_modules/.bin:/opt/local/bin:/opt/local/sbin:/Users/skern/.composer/vendor/bin:/usr/local/php5/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
    export XCODE_DEVELOPER_USR_PATH=/Applications/Xcode.app/Contents/Developer/usr/bin/..
    /Applications/Xcode.app/Contents/Developer/usr/bin/ibtool --errors --warnings --notices --module testapp --output-partial-info-plist /Users/skern/Library/Developer/Xcode/DerivedData/testapp-bkgjmsuyjitgoccsbzjvgkasofjs/Build/Intermediates.noindex/testapp.build/Debug-iphonesimulator/testapp.build/MainViewController-PartialInfo.plist --auto-activate-custom-fonts --target-device iphone --target-device ipad --minimum-deployment-target 9.0 --output-format human-readable-text --compile /Users/skern/littlegreensoftware/ionictest/testapp/platforms/ios/build/emulator/testapp.app/MainViewController.nib /Users/skern/LittleGreenSoftware/ionictest/testapp/platforms/ios/testapp/Classes/MainViewController.xib

** BUILD FAILED **

The following build commands failed:
    CompileAssetCatalog /Users/skern/littlegreensoftware/ionictest/testapp/platforms/ios/build/emulator/testapp.app testapp/Images.xcassets
(1 failure)
(node:88586) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error code 65 for command: xcodebuild with args: -xcconfig,/Users/skern/littlegreensoftware/ionictest/testapp/platforms/ios/cordova/build-debug.xcconfig,-workspace,testapp.xcworkspace,-scheme,testapp,-configuration,Debug,-sdk,iphonesimulator,-destination,platform=iOS Simulator,name=iPhone X,build,CONFIGURATION_BUILD_DIR=/Users/skern/littlegreensoftware/ionictest/testapp/platforms/ios/build/emulator,SHARED_PRECOMPS_DIR=/Users/skern/littlegreensoftware/ionictest/testapp/platforms/ios/build/sharedpch
(node:88586) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
kensodemann commented 6 years ago

Hello! Thank you for opening an issue with us!

The Ionic Framework issues list is designated for the reporting of bugs with the Ionic Framework or for requesting new features. As this seems like more of a tooling issue or tooling support question I am going to close this issue.

I urge that you ask this question on our forum or on our slack channel.

I followed your exact steps but everything worked just fine. Here are a couple of things you can try:

Thanks for using Ionic!

SusanKern commented 6 years ago

This is actually a problem when running Xcode 9.2. I was able to back down to Xcode 9.1 and get the app to run, although the asset warnings about missing icons were still there.

ionitron-bot[bot] commented 6 years ago

Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.