Emulate problem


#1

Hi I have problem with the emulate with ios I get this message

ionic cordova emulate ios
Running app-scripts build: --platform ios --target cordova
[14:48:44]  build dev started ... 
[14:48:44]  clean started ... 
[14:48:44]  clean finished in 4 ms 
[14:48:44]  copy started ... 
[14:48:44]  deeplinks started ... 
[14:48:44]  deeplinks finished in 55 ms 
[14:48:44]  transpile started ... 
[14:48:48]  transpile finished in 4.02 s 
[14:48:48]  preprocess started ... 
[14:48:48]  preprocess finished in less than 1 ms 
[14:48:48]  webpack started ... 
[14:48:48]  copy finished in 4.25 s 
[14:48:56]  webpack finished in 7.90 s 
[14:48:56]  sass started ... 
Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.
[14:48:57]  sass finished in 1.25 s 
[14:48:57]  postprocess started ... 
[14:48:57]  postprocess finished in 13 ms 
[14:48:57]  lint started ... 
[14:48:57]  build dev finished in 13.40 s 
> cordova emulate ios
(node:22258) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance

(node:22258) [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.

[OK] Your app has been deployed.
     Did you know you can live-reload changes from your app with --livereload?

[14:49:01]  tslint: src/pages/localisation/localisation.ts, line: 3 
            All imports are unused. 

       L2:  import { IonicPage, NavController, NavParams, Platform } from 'ionic-angular';
       L3:  import { GoogleMaps, GoogleMap, GoogleMapsEvent, Marker, GoogleMapOptions, CameraPosition, MarkerOptions } f

[14:49:01]  tslint: src/app/providers/team-data.ts, line: 2 
            'HttpModule' is declared but its value is never read. 

       L1:  import { Injectable } from '@angular/core';
       L2:  import { Http, HttpModule } from '@angular/http';
       L3:  import 'rxjs/add/operator/map';

[14:49:01]  lint finished in 3.80 s 

ionic info :

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

    @ionic/cli-utils  : 1.19.2
    ionic (Ionic CLI) : 3.20.0

global packages:

    cordova (Cordova CLI) : 8.0.0 

local packages:

    @ionic/app-scripts : 3.1.8
    Cordova Platforms  : android 7.0.0 ios 4.5.4
    Ionic Framework    : ionic-angular 3.9.2

System:

    ios-deploy : 1.9.2 
    Node       : v8.9.1
    npm        : 5.5.1 
    OS         : macOS High Sierra

Environment Variables:

    ANDROID_HOME : not set

Misc:

    backend : legacy

cordova requirements

Requirements check results for android:
Java JDK: installed 1.8.0
Android SDK: installed true
Android target: installed android-26,android-25,android-23
Gradle: installed /usr/local/Cellar/gradle/4.6/bin/gradle

Requirements check results for ios:
Apple macOS: installed darwin
Xcode: not installed 
xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance

ios-deploy: installed [object Object]
CocoaPods: not installed 
/bin/sh: /usr/local/bin/pod: /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby: bad interpreter: No such file or directory

(node:22350) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): CordovaError: Some of requirements check failed
(node:22350) [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.

I noted that Xcode is not installed, how can I fix it ?

Thanks

Gilles


#2

Have you installed Xcode?
Have you started Xcode manually?
You should also install Cocoapods.


#3

You need to install xcode.


#4

Xcode is installed since a long time !
I installed Cocoapods.
I started Xcode manually and nothing changed.


#5

Xcode is still installed.

Thanks


#6

No it is not, or at least not properly. Something is misconfigured there so Cordova can’t build your app. You will have to fix that somehow.


#7

Generally we say that for every problem there is a solution, for Ionic it seems to be for every solution there is a problem … :triumph: