Error run on IOS emulator after update to IOS 11 - Ionic 3

后端 未结 1 800
忘了有多久
忘了有多久 2020-12-30 03:35

After update to IOS 11, command

ionic cordova run ios -lc --target=\"iPhone-6\"

I have error

** BUILD SU

相关标签:
1条回答
  • 2020-12-30 04:04

    Here is problem that you are using (or better say ionic) still old version of ios-sim npm package. As apple changed simulators in iOS 11 (and platform).

    Solution is to use latest ios-sim (this is valid for 22.09.2017, next week should be release a official version). So this would be mean just update ios-sim package.

    Today, you need to use "latest" version.

    Like:

    cd platforms/ios/cordova && npm install ios-sim@latest
    

    Here is also open issue: https://github.com/phonegap/ios-sim/issues/218

    Other option is to upgrade the whole ios platform to a proper version (for iOS 11 you need at least 4.5.0):

    cordova platform add ios@4.5.0
    

    (Be careful to remove platform first!)

    0 讨论(0)
提交回复
热议问题