Error emulate on ios


#1
Signing Identity:     "-"

    /usr/bin/codesign --force --sign - --timestamp=none /Users/a1/Desktop/jairendezvousapp/platforms/ios/build/emulator/JaiRDV.app



** BUILD SUCCEEDED **


Error: Cannot read property 'replace' of undefined

Ionic Info

Your system information:

Cordova CLI: 7.0.1 
Ionic Framework Version: 3.1.1
Ionic CLI Version: 2.2.3
Ionic App Lib Version: 2.2.1
Ionic App Scripts Version: 1.3.6
ios-deploy version: 1.9.1 
ios-sim version: 6.0.0 
OS: macOS Sierra
Node Version: v6.11.0
Xcode version: Xcode 8.3.3 Build version 8E3004b


#2

These are both old. Old CLI doesn’t give enough output in ionic info, old app-scripts causes build problems. Update both.


#3
global packages:

    @ionic/cli-plugin-proxy : 1.3.2
    @ionic/cli-utils        : 1.5.0
    Cordova CLI             : 7.0.1 
    Ionic CLI               : 3.5.0

local packages:

    @ionic/app-scripts              : 2.0.2
    @ionic/cli-plugin-cordova       : 1.4.1
    @ionic/cli-plugin-ionic-angular : 1.3.2
    Cordova Platforms               : android 6.2.3 ios 4.4.0
    Ionic Framework                 : ionic-angular 3.1.1

System:

    Node       : v6.11.0
    OS         : macOS Sierra
    Xcode      : Xcode 8.3.3 Build version 8E3004b 
    ios-deploy : 1.9.1 
    ios-sim    : 6.0.0 
    npm        : 3.10.10 

@Sujan12
I maded update but same problem.
Still not working


#4

Can you run the same command to build again with --verbose --debug added at the end?
Can you run the same command then without cordova in front?
(Please post command AND output then)

Do you have the same problem with a newly created app via ionic start blank blank?


#5

@Sujan12 I started new project but the same error

ionic cordova emulate ios
and the error

Signing Identity:     "-"

    /usr/bin/codesign --force --sign - --timestamp=none /Users/a1/Desktop/blank/platforms/ios/build/emulator/MyApp.app

** BUILD SUCCEEDED **

Error: Cannot read property 'replace' of undefined


[ERROR] Cordova encountered an error.
        You may get more insight by running the Cordova command above directly.

[ERROR] An error occurred while running cordova emulate ios (exit code 1).

ionic info

global packages:

    @ionic/cli-plugin-proxy : 1.3.2
    @ionic/cli-utils        : 1.5.0
    Cordova CLI             : 7.0.1
    Ionic CLI               : 3.5.0

local packages:

    @ionic/app-scripts              : 2.0.2
    @ionic/cli-plugin-cordova       : 1.4.1
    @ionic/cli-plugin-ionic-angular : 1.3.2
    Cordova Platforms               : ios 4.4.0
    Ionic Framework                 : ionic-angular 3.5.3

System:

    Node       : v6.11.0
    OS         : macOS Sierra
    Xcode      : Xcode 8.3.3 Build version 8E3004b
    ios-deploy : 1.9.1
    ios-sim    : 6.0.0
    npm        : 3.10.10

#6

Same here.

My environment:

cli packages: 

    @ionic/cli-plugin-cordova       : 1.6.2
    @ionic/cli-plugin-ionic-angular : 1.4.1
    @ionic/cli-utils                : 1.7.0
    ionic (Ionic CLI)               : 3.7.0

global packages:

    Cordova CLI : 7.0.1 

local packages:

    @ionic/app-scripts : 2.1.3
    Cordova Platforms  : ios 4.4.0
    Ionic Framework    : ionic-angular 3.6.0

System:

    Node       : v8.1.3
    OS         : macOS Sierra
    Xcode      : Xcode 8.3.3 Build version 8E3004b 
    ios-deploy : 1.9.1 
    npm        : 5.3.0 


BTW, it works fine if I run it in an emulator from XCode.