When I run ionic cordova build ios
or ionic cordova build ios --prod
I receive the following error:
[WARN] Error occurred during command execution from a CLI plugin (@ionic/cli-plugin-cordova). Your plugins may be out of date.
TypeError: env.runcmd is not a function` and at the bottom of the trace: `(node:18696) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: channel closed
(node:18696) 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.
I have tried all the steps in https://github.com/ionic-team/ionic/issues/1256. Uninstalled, reinstalled xcode, switched swift language version to 3.2 from 4.0. I have run ionic cordova platform remove ios
and then ionic cordova platform add ios
.
I have tried
npm install --save --save-exact ionic@3.6.0
and am met with
βββ UNMET PEER DEPENDENCY @angular/common@4.1.2
βββ UNMET PEER DEPENDENCY @angular/compiler@4.1.2
βββ UNMET PEER DEPENDENCY @angular/core@4.1.2
βββ UNMET PEER DEPENDENCY @angular/platform-browser@4.1.2
βββ ionic@3.6.0 invalid
βββ UNMET PEER DEPENDENCY ionic-angular@3.3.0
I have tried npm install ionic-angular
and am met with the above unmet peer dependency message. Also, when I try to update any of the packages mentioned in the above unmet peer dependency message, I am met with the same unmet peer dependency message.
I have also tried uninstalling and reinstalling ionic and cordova, but no dice.
I have tried
npm install --save-dev @ionic/cli-plugin-cordova@1.4.1
and
npm install --save-dev @ionic/cli-plugin-cordova@1.4.1
.
I am met with
βββ UNMET PEER DEPENDENCY @angular/common@4.1.2
βββ UNMET PEER DEPENDENCY @angular/compiler@4.1.2
βββ UNMET PEER DEPENDENCY @angular/core@4.1.2
βββ UNMET PEER DEPENDENCY @angular/platform-browser@4.1.2
βββ¬ @ionic/cli-plugin-cordova@1.4.1 invalid
β βββ¬ @ionic/cli-utils@1.5.0
β β βββ archiver@1.3.0
β β βββ cross-spawn@4.0.2
β β βββ¬ string-width@2.1.1
β β β βββ is-fullwidth-code-point@2.0.0
β β βββ¬ strip-ansi@4.0.0
β β βββ ansi-regex@3.0.0
β βββ¬ chalk@2.2.0
β βββ ansi-styles@3.2.0
β βββ¬ supports-color@4.5.0
β βββ has-flag@2.0.0
βββ UNMET PEER DEPENDENCY ionic-angular@3.3.0
I have tried npm install --save --save-exact @ionic/cli-plugin-cordova@1.5.0
and same unmet peer dependency message.
I have also tried npm i -g ionic@latest
and ionic config set -g daemon.updates true
then when I run ionic cordova build ios
, I am prompted to update cli-plugin-cordova, refuse, and continue. I am met with
[ERROR] Cordova encountered an error.
You may get more insight by running the Cordova command above directly.
[ERROR] An error occurred while running cordova build ios (exit code 1):
(truncated) ... ODE_DEVELOPER_USR_PATH=/Applications/Xcode.app/Contents/Developer/usr/bin/..
/Applications/Xcode.app/Contents/Developer/usr/bin/ibtool --errors --warnings --notices --module __PROJECT_NAME__ --output-partial-info-plist /Users/justinfrevert/Library/Developer/Xcode/DerivedData/FirebaseAuth-bkjcmbdujwgqqxfzcplddubqwlad/Build/Intermediates.noindex/FirebaseAuth.build/Debug-iphonesimulator/__PROJECT_NAME__.build/CDVLaunchScreen-SBPartialInfo.plist --auto-activate-custom-fonts --target-device iphone --target-device ipad --minimum-deployment-target 8.0 --output-format human-readable-text --compilation-directory /Users/justinfrevert/Library/Developer/Xcode/DerivedData/FirebaseAuth-bkjcmbdujwgqqxfzcplddubqwlad/Build/Intermediates.noindex/FirebaseAuth.build/Debug-iphonesimulator/__PROJECT_NAME__.build /Users/justinfrevert/Desktop/AceAdz-App/app-copy/platforms/ios/__PROJECT_NAME__/CDVLaunchScreen.storyboard
/* com.apple.ibtool.errors */
/Users/justinfrevert/Desktop/AceAdz-App/app-copy/platforms/ios/__PROJECT_NAME__/CDVLaunchScreen.storyboard: error: Interface Builder could not open the document CDVLaunchScreen.storyboard" because it does not exist.
CompileAssetCatalog build/emulator/__PROJECT_NAME__.app __PROJECT_NAME__/Images.xcassets
cd /Users/justinfrevert/Desktop/AceAdz-App/app-copy/platforms/ios
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Users/justinfrevert/.nvm/versions/node/v7.7.1/bin:/Library/Frameworks/Python.framework/Versions/3.6/bin:/Library/Frameworks/Python.framework/Versions/3.6/bin:/Library/Frameworks/Python.framework/Versions/3.6/bin:/Library/Frameworks/Python.framework/Versions/3.6/bin:/Library/Frameworks/Python.framework/Versions/3.6/bin:/Users/justinfrevert/anaconda/bin:/opt/local/bin:/opt/local/sbin:/Library/Frameworks/Python.framework/Versions/3.6/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/go/bin:/Library/Frameworks/Mono.framework/Versions/Current/Commands:/Applications/Wireshark.app/Contents/MacOS"
/Applications/Xcode.app/Contents/Developer/usr/bin/actool --output-format human-readable-text --notices --warnings --export-dependency-info /Users/justinfrevert/Library/Developer/Xcode/DerivedData/FirebaseAuth-bkjcmbdujwgqqxfzcplddubqwlad/Build/Intermediates.noindex/FirebaseAuth.build/Debug-iphonesimulator/__PROJECT_NAME__.build/assetcatalog_dependencies --output-partial-info-plist /Users/justinfrevert/Library/Developer/Xcode/DerivedData/FirebaseAuth-bkjcmbdujwgqqxfzcplddubqwlad/Build/Intermediates.noindex/FirebaseAuth.build/Debug-iphonesimulator/__PROJECT_NAME__.build/assetcatalog_generated_info.plist --app-icon AppIcon --launch-image LaunchImage --compress-pngs --enable-on-demand-resources YES --filter-for-device-model iPhone6,1 --filter-for-device-os-version 11.0.1 --sticker-pack-identifier-prefix .sticker-pack. --target-device iphone --target-device ipad --minimum-deployment-target 8.0 --platform iphonesimulator --product-type com.apple.product-type.application --compile /Users/justinfrevert/Desktop/AceAdz-App/app-copy/platforms/ios/build/emulator/__PROJECT_NAME__.app /Users/justinfrevert/Desktop/AceAdz-App/app-copy/platforms/ios/__PROJECT_NAME__/Images.xcassets
/* com.apple.actool.errors */
/Users/justinfrevert/Desktop/AceAdz-App/app-copy/platforms/ios/__PROJECT_NAME__/Images.xcassets: error: None of the input catalogs contained a matching stickers icon set or app icon set named "AppIcon".
/Users/justinfrevert/Desktop/AceAdz-App/app-copy/platforms/ios/__PROJECT_NAME__/Images.xcassets: error: None of the input catalogs contained a matching launch image set named "LaunchImage".
/* com.apple.actool.notices */
/Users/justinfrevert/Desktop/AceAdz-App/app-copy/platforms/ios/__PROJECT_NAME__/Images.xcassets: warning: Failed to read file attributes for "/Users/justinfrevert/Desktop/AceAdz-App/app-copy/platforms/ios/__PROJECT_NAME__/Images.xcassets"
Failure Reason: No such file or directory
/* com.apple.actool.compilation-results */
/Users/justinfrevert/Library/Developer/Xcode/DerivedData/FirebaseAuth-bkjcmbdujwgqqxfzcplddubqwlad/Build/Intermediates.noindex/FirebaseAuth.build/Debug-iphonesimulator/__PROJECT_NAME__.build/assetcatalog_generated_info.plist
** BUILD FAILED **
The following build commands failed:
CompileXIB __PROJECT_NAME__/Classes/MainViewController.xib
CompileStoryboard __PROJECT_NAME__/CDVLaunchScreen.storyboard
(2 failures)
Error: Error code 65 for command: xcodebuild with args: -xcconfig,/Users/justinfrevert/Desktop/AceAdz-App/app-copy/platforms/ios/cordova/build-debug.xcconfig,-workspace,FirebaseAuth.xcworkspace,-scheme,FirebaseAuth,-configuration,Debug,-sdk,iphonesimulator,-destination,platform=iOS Simulator,name=iPhone 5s,build,CONFIGURATION_BUILD_DIR=/Users/justinfrevert/Desktop/AceAdz-App/app-copy/platforms/ios/build/emulator,SHARED_PRECOMPS_DIR=/Users/justinfrevert/Desktop/AceAdz-App/app-copy/platforms/ios/build/sharedpch
I run cordova build ios and get:
=== BUILD TARGET __PROJECT_NAME__ OF PROJECT FirebaseAuth WITH CONFIGURATION Debug ===
Check dependencies
PhaseScriptExecution Copy\ www\ directory /Users/justinfrevert/Library/Developer/Xcode/DerivedData/FirebaseAuth-bkjcmbdujwgqqxfzcplddubqwlad/Build/Intermediates.noindex/FirebaseAuth.build/Debug-iphonesimulator/__PROJECT_NAME__.build/Script-304B58A110DAC018002A0835.sh
cd /Users/justinfrevert/Desktop/AceAdz-App/app-copy/platforms/ios
/bin/sh -c /Users/justinfrevert/Library/Developer/Xcode/DerivedData/FirebaseAuth-bkjcmbdujwgqqxfzcplddubqwlad/Build/Intermediates.noindex/FirebaseAuth.build/Debug-iphonesimulator/__PROJECT_NAME__.build/Script-304B58A110DAC018002A0835.sh
CompileStoryboard __PROJECT_NAME__/CDVLaunchScreen.storyboard
cd /Users/justinfrevert/Desktop/AceAdz-App/app-copy/platforms/ios
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Users/justinfrevert/.nvm/versions/node/v7.7.1/bin:/Library/Frameworks/Python.framework/Versions/3.6/bin:/Library/Frameworks/Python.framework/Versions/3.6/bin:/Library/Frameworks/Python.framework/Versions/3.6/bin:/Library/Frameworks/Python.framework/Versions/3.6/bin:/Library/Frameworks/Python.framework/Versions/3.6/bin:/Users/justinfrevert/anaconda/bin:/opt/local/bin:/opt/local/sbin:/Library/Frameworks/Python.framework/Versions/3.6/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/go/bin:/Library/Frameworks/Mono.framework/Versions/Current/Commands:/Applications/Wireshark.app/Contents/MacOS"
export XCODE_DEVELOPER_USR_PATH=/Applications/Xcode.app/Contents/Developer/usr/bin/..
/Applications/Xcode.app/Contents/Developer/usr/bin/ibtool --errors --warnings --notices --module __PROJECT_NAME__ --output-partial-info-plist /Users/justinfrevert/Library/Developer/Xcode/DerivedData/FirebaseAuth-bkjcmbdujwgqqxfzcplddubqwlad/Build/Intermediates.noindex/FirebaseAuth.build/Debug-iphonesimulator/__PROJECT_NAME__.build/CDVLaunchScreen-SBPartialInfo.plist --auto-activate-custom-fonts --target-device iphone --target-device ipad --minimum-deployment-target 8.0 --output-format human-readable-text --compilation-directory /Users/justinfrevert/Library/Developer/Xcode/DerivedData/FirebaseAuth-bkjcmbdujwgqqxfzcplddubqwlad/Build/Intermediates.noindex/FirebaseAuth.build/Debug-iphonesimulator/__PROJECT_NAME__.build /Users/justinfrevert/Desktop/AceAdz-App/app-copy/platforms/ios/__PROJECT_NAME__/CDVLaunchScreen.storyboard
/* com.apple.ibtool.errors */
/Users/justinfrevert/Desktop/AceAdz-App/app-copy/platforms/ios/__PROJECT_NAME__/CDVLaunchScreen.storyboard: error: Interface Builder could not open the document CDVLaunchScreen.storyboard" because it does not exist.
CompileAssetCatalog build/emulator/__PROJECT_NAME__.app __PROJECT_NAME__/Images.xcassets
cd /Users/justinfrevert/Desktop/AceAdz-App/app-copy/platforms/ios
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Users/justinfrevert/.nvm/versions/node/v7.7.1/bin:/Library/Frameworks/Python.framework/Versions/3.6/bin:/Library/Frameworks/Python.framework/Versions/3.6/bin:/Library/Frameworks/Python.framework/Versions/3.6/bin:/Library/Frameworks/Python.framework/Versions/3.6/bin:/Library/Frameworks/Python.framework/Versions/3.6/bin:/Users/justinfrevert/anaconda/bin:/opt/local/bin:/opt/local/sbin:/Library/Frameworks/Python.framework/Versions/3.6/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/go/bin:/Library/Frameworks/Mono.framework/Versions/Current/Commands:/Applications/Wireshark.app/Contents/MacOS"
/Applications/Xcode.app/Contents/Developer/usr/bin/actool --output-format human-readable-text --notices --warnings --export-dependency-info /Users/justinfrevert/Library/Developer/Xcode/DerivedData/FirebaseAuth-bkjcmbdujwgqqxfzcplddubqwlad/Build/Intermediates.noindex/FirebaseAuth.build/Debug-iphonesimulator/__PROJECT_NAME__.build/assetcatalog_dependencies --output-partial-info-plist /Users/justinfrevert/Library/Developer/Xcode/DerivedData/FirebaseAuth-bkjcmbdujwgqqxfzcplddubqwlad/Build/Intermediates.noindex/FirebaseAuth.build/Debug-iphonesimulator/__PROJECT_NAME__.build/assetcatalog_generated_info.plist --app-icon AppIcon --launch-image LaunchImage --compress-pngs --enable-on-demand-resources YES --filter-for-device-model iPhone6,1 --filter-for-device-os-version 11.0.1 --sticker-pack-identifier-prefix .sticker-pack. --target-device iphone --target-device ipad --minimum-deployment-target 8.0 --platform iphonesimulator --product-type com.apple.product-type.application --compile /Users/justinfrevert/Desktop/AceAdz-App/app-copy/platforms/ios/build/emulator/__PROJECT_NAME__.app /Users/justinfrevert/Desktop/AceAdz-App/app-copy/platforms/ios/__PROJECT_NAME__/Images.xcassets
/* com.apple.actool.errors */
/Users/justinfrevert/Desktop/AceAdz-App/app-copy/platforms/ios/__PROJECT_NAME__/Images.xcassets: error: None of the input catalogs contained a matching stickers icon set or app icon set named "AppIcon".
/Users/justinfrevert/Desktop/AceAdz-App/app-copy/platforms/ios/__PROJECT_NAME__/Images.xcassets: error: None of the input catalogs contained a matching launch image set named "LaunchImage".
/* com.apple.actool.notices */
/Users/justinfrevert/Desktop/AceAdz-App/app-copy/platforms/ios/__PROJECT_NAME__/Images.xcassets: warning: Failed to read file attributes for "/Users/justinfrevert/Desktop/AceAdz-App/app-copy/platforms/ios/__PROJECT_NAME__/Images.xcassets"
Failure Reason: No such file or directory
/* com.apple.actool.compilation-results */
/Users/justinfrevert/Library/Developer/Xcode/DerivedData/FirebaseAuth-bkjcmbdujwgqqxfzcplddubqwlad/Build/Intermediates.noindex/FirebaseAuth.build/Debug-iphonesimulator/__PROJECT_NAME__.build/assetcatalog_generated_info.plist
CompileXIB __PROJECT_NAME__/Classes/MainViewController.xib
cd /Users/justinfrevert/Desktop/AceAdz-App/app-copy/platforms/ios
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Users/justinfrevert/.nvm/versions/node/v7.7.1/bin:/Library/Frameworks/Python.framework/Versions/3.6/bin:/Library/Frameworks/Python.framework/Versions/3.6/bin:/Library/Frameworks/Python.framework/Versions/3.6/bin:/Library/Frameworks/Python.framework/Versions/3.6/bin:/Library/Frameworks/Python.framework/Versions/3.6/bin:/Users/justinfrevert/anaconda/bin:/opt/local/bin:/opt/local/sbin:/Library/Frameworks/Python.framework/Versions/3.6/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/go/bin:/Library/Frameworks/Mono.framework/Versions/Current/Commands:/Applications/Wireshark.app/Contents/MacOS"
export XCODE_DEVELOPER_USR_PATH=/Applications/Xcode.app/Contents/Developer/usr/bin/..
/Applications/Xcode.app/Contents/Developer/usr/bin/ibtool --errors --warnings --notices --module __PROJECT_NAME__ --output-partial-info-plist /Users/justinfrevert/Library/Developer/Xcode/DerivedData/FirebaseAuth-bkjcmbdujwgqqxfzcplddubqwlad/Build/Intermediates.noindex/FirebaseAuth.build/Debug-iphonesimulator/__PROJECT_NAME__.build/MainViewController-PartialInfo.plist --auto-activate-custom-fonts --target-device iphone --target-device ipad --minimum-deployment-target 8.0 --output-format human-readable-text --compile /Users/justinfrevert/Desktop/AceAdz-App/app-copy/platforms/ios/build/emulator/__PROJECT_NAME__.app/MainViewController.nib /Users/justinfrevert/Desktop/AceAdz-App/app-copy/platforms/ios/__PROJECT_NAME__/Classes/MainViewController.xib
/* com.apple.ibtool.errors */
/Users/justinfrevert/Desktop/AceAdz-App/app-copy/platforms/ios/__PROJECT_NAME__/Classes/MainViewController.xib: error: Interface Builder could not open the document MainViewController.xib" because it does not exist.
** BUILD FAILED **
The following build commands failed:
CompileStoryboard __PROJECT_NAME__/CDVLaunchScreen.storyboard
CompileAssetCatalog build/emulator/__PROJECT_NAME__.app __PROJECT_NAME__/Images.xcassets
CompileXIB __PROJECT_NAME__/Classes/MainViewController.xib
(3 failures)
Error: Error code 65 for command: xcodebuild with args: -xcconfig,/Users/justinfrevert/Desktop/AceAdz-App/app-copy/platforms/ios/cordova/build-debug.xcconfig,-workspace,FirebaseAuth.xcworkspace,-scheme,FirebaseAuth,-configuration,Debug,-sdk,iphonesimulator,-destination,platform=iOS Simulator,name=iPhone 5s,build,CONFIGURATION_BUILD_DIR=/Users/justinfrevert/Desktop/AceAdz-App/app-copy/platforms/ios/build/emulator,SHARED_PRECOMPS_DIR=/Users/justinfrevert/Desktop/AceAdz-App/app-copy/platforms/ios/build/sharedpch`.
I then try to run ionic cordova build ios --prod, but elect to update ionic cli plugin cordova 1.5.0 => 1.6.2β¦ and then am met with the original βTypeError: env.runcmd is not a functionβ error.
output of running ionic info
`global packages:
@ionic/cli-utils : 1.2.0
Cordova CLI : 6.5.0
Ionic CLI : 3.2.0
local packages:
@ionic/app-scripts : 1.3.7
Cordova Platforms : ios 4.3.1
Ionic Framework : ionic-angular 3.3.0
System:
Node : v7.7.1
OS : macOS Sierra
Xcode : Xcode 9.0.1 Build version 9A1004
ios-deploy : 1.9.2
ios-sim : 5.0.13`