Ionic build throws : Usage of '--family' is deprecated in 3.x. Use --devicetypeid instead.' error


#1

I was wondering if anybody else has had this problem before. When I build and emulate for ios platform, it throws me this error message

Usage of ‘–family’ is deprecated in 3.x. Use --devicetypeid instead.
Usage of ‘–retina’ is deprecated in 3.x. Use --devicetypeid instead.

It hasn’t caused too much problems yet, everything works well, but the error is bugging me.

Any suggestions?


#2

well it s not an error… it s warning because cordova makes use of an older version of ios-sim. in new ios-sim version (3.x) to select a simulator you need to use --decivetypeid


#3

I have the same issue.and the emulate show a black screen.
But if I use “ionic serve” can show the app in browser.
any suggestion ?

Usage of ‘–family’ is deprecated in 3.x. Use --devicetypeid instead.
Usage of ‘–retina’ is deprecated in 3.x. Use --devicetypeid instead.
Session could not be started: Error Domain=DTiPhoneSimulatorErrorDomain Code=2 “Simulator session timed out.” UserInfo=0x7f8efa435c10 {NSLocalizedDescription=Simulator session timed out.}
Error: /Users/jerrychiu/myApp/platforms/ios/cordova/run: Command failed with exit code 1
at ChildProcess.whenDone (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/cordova/superspawn.js:135:23)
at ChildProcess.emit (events.js:98:17)
at maybeClose (child_process.js:756:16)
at Process.ChildProcess._handle.onexit (child_process.js:823:5)


#4

Did you try uninstalling and then reinstalling the ios-sim package? i.e.

npm uninstall -g ios-sim
npm install -g ios-sim

I was unable to launch the simulator until after I did this.

Blank screen could also mean some JS failed to init/load. Look at your console logs.