Ionic: Error received when running Ionic cordova build ios


#1

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`

#2

All old and should be updated.


#3

I could update all of those except cordova ios platform. I tried to add and remove the ios platform, and it tells me
Error: Cannot find plugin.xml for plugin "platforms". Please try adding it again.
Should I create a new issue for this?


#4

Posting your package.json and config.xml (and making sure they are readable - your first post was not!) should be enough.


#5

Package.json:
`

{
  "name": "ionic-hello-world",
  "author": "Ionic Framework",
  "homepage": "http://ionicframework.com/",
  "private": true,
  "scripts": {
    "clean": "ionic-app-scripts clean",
    "build": "ionic-app-scripts build",
    "ionic:build": "ionic-app-scripts build",
    "ionic:serve": "ionic-app-scripts serve"
  },
  "dependencies": {
    "@angular/common": "4.1.2",
    "@angular/compiler": "4.1.2",
    "@angular/compiler-cli": "4.1.2",
    "@angular/core": "4.1.2",
    "@angular/forms": "4.1.2",
    "@angular/http": "4.1.2",
    "@angular/platform-browser": "4.1.2",
    "@angular/platform-browser-dynamic": "4.1.2",
    "@angular/router": "^4.1.3",
    "@angular/tsc-wrapped": "^4.1.3",
    "@ionic-native/core": "3.10.2",
    "@ionic-native/keyboard": "^3.12.1",
    "@ionic-native/splash-screen": "^3.10.2",
    "@ionic-native/status-bar": "3.10.2",
    "@ionic/storage": "2.0.1",
    "cordova-browser": "^4.1.0",
    "cordova-ios": "^4.4.0",
    "cordova-plugin-console": "^1.0.5",
    "cordova-plugin-device": "^1.1.4",
    "cordova-plugin-splashscreen": "^4.0.3",
    "cordova-plugin-statusbar": "^2.2.2",
    "cordova-plugin-whitelist": "^1.3.1",
    "ionic-angular": "3.3.0",
    "ionic-plugin-keyboard": "^2.2.1",
    "ionicons": "3.0.0",
    "rxjs": "5.1.1",
    "sw-toolbox": "3.6.0",
    "@ionic/app-scripts": "1.3.7",
    "@ionic/cli-plugin-cordova": "1.3.0",
    "@ionic/cli-plugin-ionic-angular": "1.3.0",
    "zone.js": "0.8.11"
  },
  "devDependencies": {
    "typescript": "2.3.3"
  },
  "cordovaPlugins": [
    "cordova-plugin-whitelist",
    "cordova-plugin-console",
    "cordova-plugin-statusbar",
    "cordova-plugin-device",
    "cordova-plugin-splashscreen",
    "ionic-plugin-keyboard"
  ],
  "cordovaPlatforms": [
    "ios",
    {
      "platform": "ios",
      "version": "",
      "locator": "ios"
    }
  ],
  "description": "AceAdz"
}

#6

package.json:

<?xml version='1.0' encoding='utf-8'?>
<widget id="com.ionicframework.AceAdz" version="0.0.1" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
    <name>FirebaseAuth</name>
    <description>The AceAdz Outdoor advertising platform.</description>
    <author email="justinfrevert@gmail.com" href="http://ionicframework.com/">Ionic Framework Team</author>
    <content src="index.html" />
    <access origin="*" />
    <allow-navigation href="http://ionic.local/*" />
    <allow-navigation href="http://10.0.0.253:8100" />
    <allow-navigation href="http://10.104.225.111:8100" />
    <allow-navigation href="http://10.233.203.186:8100" />
    <allow-navigation href="http://172.17.244.15:8100" />
    <allow-navigation href="*" />
    <allow-navigation href="http://192.168.43.118:8100" />
    <allow-navigation href="http://172.17.244.12:8100" />
    <allow-navigation href="http://10.238.125.4:8100" />
    <allow-navigation href="http://10.230.184.108:8100" />
    <allow-navigation href="http://172.17.245.9:8100" />
    <allow-navigation href="http://10.239.5.22:8100" />
    <allow-navigation href="http://192.168.1.105:8100" />
    <allow-navigation href="http://192.168.243.74:8100" />
    <allow-navigation href="http://10.232.7.69:8100" />
    <allow-navigation href="http://10.0.0.243:8100" />
    <allow-intent href="http://*/*" />
    <allow-intent href="https://*/*" />
    <allow-intent href="tel:*" />
    <allow-intent href="sms:*" />
    <allow-intent href="mailto:*" />
    <allow-intent href="geo:*" />
    <platform name="android">
        <allow-intent href="market:*" />
    </platform>
    <platform name="ios">
        <allow-intent href="itms:*" />
        <allow-intent href="itms-apps:*" />
    </platform>
    <preference name="webviewbounce" value="false" />
    <preference name="loadUrlTimeoutValue" value="700000" />
    <preference name="UIWebViewBounce" value="false" />
    <preference name="DisallowOverscroll" value="true" />
    <preference name="android-minSdkVersion" value="16" />
    <preference name="BackupWebStorage" value="none" />
    <preference name="SplashMaintainAspectRatio" value="true" />
    <preference name="FadeSplashScreenDuration" value="300" />
    <preference name="SplashShowOnlyFirstTime" value="false" />
    <feature name="StatusBar">
        <param name="ios-package" onload="true" value="CDVStatusBar" />
    </feature>
    <plugin name="ionic-plugin-keyboard" spec="~2.2.1" />
    <plugin name="cordova-plugin-whitelist" spec="1.3.1" />
    <plugin name="cordova-plugin-console" spec="1.0.5" />
    <plugin name="cordova-plugin-statusbar" spec="2.2.1" />
    <plugin name="cordova-plugin-device" spec="1.1.4" />
    <plugin name="cordova-plugin-screen-orientation" spec="~2.0.1" />
    <plugin name="com.megster.cordova.FileChooser" spec="https://github.com/don/cordova-filechooser.git" />
    <plugin name="cordova-plugin-geolocation" spec="~2.4.3" />
    <plugin name="cordova-plugin-inappbrowser" spec="~1.7.0" />
    <plugin name="cordova-plugin-facebook4" spec="~1.7.4">
        <variable name="APP_ID" value="1122212724550757" />
        <variable name="APP_NAME" value="AceAdz" />
    </plugin>
    <plugin name="cordova-plugin-photo-library" spec="~2.0.4">
        <variable name="PHOTO_LIBRARY_USAGE_DESCRIPTION" value="To choose photos" />
    </plugin>
    <plugin name="cordova-plugin-file" spec="~4.3.2" />
    <plugin name="cordova-plugin-http" spec="~1.2.0" />
    <plugin name="cordova-plugin-splashscreen" spec="~4.0.2" />
</widget>

#7

Unrelated: You can get rid of all of those.

What does your plugins folder look like?


#8

Inside of my plugins folder I have the following:

com.megster.cordova.FileChooser
com.synconset.imagepicker
cordova-plugin-add-swift-support
cordova-plugin-camera
cordova-plugin-compat
cordova-plugin-console
cordova-plugin-device
cordova-plugin-facebook4
cordova-plugin-file
cordova-plugin-file-transfer
cordova-plugin-filepath
cordova-plugin-geolocation
cordova-plugin-http
cordova-plugin-image-picker
cordova-plugin-inappbrowser
cordova-plugin-mauron85-background-geolocation
cordova-plugin-nativegeocoder
cordova-plugin-photo-library
cordova-plugin-screen-orientation
cordova-plugin-splashscreen
cordova-plugin-statusbar
cordova-plugin-whitelist
es6-promise-plugin
fetch.json
ionic-plugin-keyboard
ios.json
platforms
windows.json```

#9

This shouldn’t be there. Is this empty?


#10

platforms/ios/build
platforms/ios/cordova
platforms/ios/cordovalib

platforms/android

etc…


#11

This does not belong in plugins. I think you can delete it. (Maybe first copy it somewhere else before really removing it - renaming the folder won’t be enough though. Have to move it somewhere else)


#12

I tried to remove that and now I get

{ Error: Cannot find module 'inquirer'
    at Function.Module._resolveFilename (module.js:470:15)
    at Function.Module._load (module.js:418:25)
    at Module.require (module.js:498:17)
    at require (internal/module.js:20:19)
    at /Users/justinfrevert/Desktop/AceAdz-App/app-copy/node_modules/ionic/node_modules/@ionic/cli-utils/index.js:131:80 code: 'MODULE_NOT_FOUND' }

When I run ionic cordova build ios or any ionic command.
I am thinking that I will try the instructions in Ionic cli 3.10.3 - Error: Cannot find module 'inquirer’


#13

I resolved this by running
rm -rf node_modules
and then npm install


#14

Now everything works as intended?


#15

Yes, this resolved this specific issue.


#16

to leave the headache the only way i found it, that is to create a new project then transfer all your files into the new one that fine and everything will be worked perfectly… cheers.


#17

I’m still getting both of the errors after running your resolution.

(2 failures)
(node:2351) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error code 65 for command: xcodebuild with args: -xcconfig,/Users/laroca/Development/Mundo/platforms/ios/cordova/build-debug.xcconfig,-project,Mundo.xcodeproj,-target,Mundo,-configuration,Debug,-sdk,iphonesimulator,-destination,platform=iOS Simulator,build,CONFIGURATION_BUILD_DIR=/Users/laroca/Development/Mundo/platforms/ios/build/emulator,SHARED_PRECOMPS_DIR=/Users/laroca/Development/Mundo/platforms/ios/build/sharedpch
(node:2351) [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.

Any help would be greatly appreciated.