Cordova emuulate ios --target="iPhone-6" Not Working


#1

I developed an ionic 3 application on the windows operating system (Windows 8) build the app for android and everything work fine. Then I need to build for iOS , so I copied the project to MacBook to build for IOS.

I have run the latest npm, ionic serve runs but when I run

ionic Cordova emulate ios --target="iPhone-X"
it load the simulator but then displays the error below

An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=2): Failed to install the requested application An application bundle was not found at the provided path. Provide a valid path to the desired application bundle. logPath: /Users/lekan/desktop/testProject/platforms/ios/cordova/console.log

What are my doing wrong

Below is my ionic info ionic info

Result

cli packages: (/usr/local/lib/node_modules)

@ionic/cli-utils : 1.15.2
ionic (Ionic CLI) : 3.15.2

global packages:

cordova (Cordova CLI) : 7.1.0

local packages:

@ionic/app-scripts : 3.0.0
Cordova Platforms : android 6.2.3 browser 4.1.0 ios 4.5.2
Ionic Framework : ionic-angular 3.7.1

System:

Node : v6.11.4
npm : 3.10.10
OS : macOS Sierra
Xcode : Xcode 9.0.1 Build version 9A1004

Environment Variables:

ANDROID_HOME : not set

Misc:

backend : pro


#2

Hi,

Upgrade ionic-angular to 3.8.0 : https://github.com/ionic-team/ionic/blob/master/CHANGELOG.md#380-2017-10-26


#3

@david_bc. This is what I get when I run

Fixeds-MacBook:dataluk lekan$ npm install ionic-angular@latest --save
dataluk@0.0.1 /Users/lekan/Desktop/dataluk
├── UNMET PEER DEPENDENCY @angular/common@4.4.3
├── UNMET PEER DEPENDENCY @angular/compiler@4.4.3
├── UNMET PEER DEPENDENCY @angular/compiler-cli@4.4.3
├── UNMET PEER DEPENDENCY @angular/core@4.4.3
├── UNMET PEER DEPENDENCY @angular/forms@4.4.3
├── UNMET PEER DEPENDENCY @angular/http@4.4.3
├── UNMET PEER DEPENDENCY @angular/platform-browser@4.4.3
├── UNMET PEER DEPENDENCY @angular/platform-browser-dynamic@4.4.3
└── ionic-angular@3.8.0 

npm WARN ionic-angular@3.8.0 requires a peer of @angular/common@4.4.4 but none was installed.
npm WARN ionic-angular@3.8.0 requires a peer of @angular/compiler@4.4.4 but none was installed.
npm WARN ionic-angular@3.8.0 requires a peer of @angular/compiler-cli@4.4.4 but none was installed.
npm WARN ionic-angular@3.8.0 requires a peer of @angular/core@4.4.4 but none was installed.
npm WARN ionic-angular@3.8.0 requires a peer of @angular/forms@4.4.4 but none was installed.
npm WARN ionic-angular@3.8.0 requires a peer of @angular/http@4.4.4 but none was installed.
npm WARN ionic-angular@3.8.0 requires a peer of @angular/platform-browser@4.4.4 but none was installed.
npm WARN ionic-angular@3.8.0 requires a peer of @angular/platform-browser-dynamic@4.4.4 but none was installed.

Below is my package.json file

{
  "name": "ProjectName",
  "version": "0.0.1",
  "author": "Ionic Framework",
  "homepage": "http://ionicframework.com/",
  "private": true,
  "scripts": {
    "clean": "ionic-app-scripts clean",
    "build": "ionic-app-scripts build",
    "lint": "ionic-app-scripts lint",
    "ionic:build": "ionic-app-scripts build",
    "ionic:serve": "ionic-app-scripts serve"
  },
  "dependencies": {
    "@angular/common": "4.4.3",
    "@angular/compiler": "4.4.3",
    "@angular/compiler-cli": "4.4.3",
    "@angular/core": "4.4.3",
    "@angular/forms": "4.4.3",
    "@angular/http": "4.4.3",
    "@angular/platform-browser": "4.4.3",
    "@angular/platform-browser-dynamic": "4.4.3",
    "@ionic-native/core": "4.3.0",
    "@ionic-native/splash-screen": "^4.3.0",
    "@ionic-native/status-bar": "4.3.0",
    "@ionic/cli-utils": "^1.13.0",
    "@ionic/storage": "2.0.1",
    "chart.js": "^2.7.0",
    "cordova-android": "^6.2.3",
    "cordova-browser": "^4.1.0",
    "cordova-ios": "^4.5.1",
    "cordova-plugin-compat": "^1.2.0",
    "cordova-plugin-device": "^1.1.4",
    "cordova-plugin-ionic-webview": "^1.1.11",
    "cordova-plugin-splashscreen": "^4.0.3",
    "cordova-plugin-statusbar": "git+https://github.com/apache/cordova-plugin-statusbar.git",
    "cordova-plugin-whitelist": "^1.3.1",
    "ionic-angular": "^3.8.0",
    "ionic-plugin-keyboard": "^2.2.1",
    "ionicons": "3.0.0",
    "rxjs": "5.4.3",
    "sw-toolbox": "3.6.0",
    "zone.js": "0.8.18"
  },
  "devDependencies": {
    "@ionic/app-scripts": "3.0.0",
    "typescript": "2.3.4"
  },
  "description": "An Ionic project",
  "cordova": {
    "platforms": [
      "android",
      "browser",
      "ios"
    ],
    "plugins": {
      "cordova-plugin-device": {},
      "cordova-plugin-ionic-webview": {},
      "cordova-plugin-splashscreen": {},
      "cordova-plugin-statusbar": {},
      "cordova-plugin-whitelist": {},
      "ionic-plugin-keyboard": {},
      "cordova-plugin-compat": {}
    }
  }
}


#4

I have got that working but now has this error when i run emulate ios

An error was encountered processing the command (domain=com.apple.CoreSimulator.SimError, code=164):
Unable to lookup in current state: Shutdown
logPath: /Users/lekan/desktop/dataluk/platforms/ios/cordova/console.log

#5

Blockquote “@angular/common”: “4.4.3”,
"@angular/compiler": “4.4.3”,
"@angular/compiler-cli": “4.4.3”,
"@angular/core": “4.4.3”,
"@angular/forms": “4.4.3”,
"@angular/http": “4.4.3”,
"@angular/platform-browser": “4.4.3”,
"@angular/platform-browser-dynamic": “4.4.3”

change all 4.4.3 by 4.4.4 in your packages.json
then run npm install


#6

no more log ? seems to be like https://stackoverflow.com/questions/41745201/ionic-emulate-ios-domain-com-apple-coresimulator-simerror-code-163


#7

I have done that . The errors i have now is

An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=2):
Failed to install the requested application
An application bundle was not found at the provided path.
Provide a valid path to the desired application bundle.
An error was encountered processing the command (domain=FBSOpenApplicationServiceErrorDomain, code=1):
The request to open "io.ionic.starter" failed.
The request was denied by service delegate (SBMainWorkspace) for reason: NotFound ("Application "io.ionic.starter" is unknown to FrontBoard").
io.ionic.starter: -1

#8

https://stackoverflow.com/questions/37939749/xcode-8-messages-template-application-error-on-ios-simulator ??