Cordova Error: Your ios platform does not have Api.js

前端 未结 8 1418
鱼传尺愫
鱼传尺愫 2020-12-03 13:16

I\'m trying to build a cordova ios app but not having much luck and getting strange errors.

Using this version of Cordova with older version of cordova-i

相关标签:
8条回答
  • 2020-12-03 13:38

    I always fix this error removing the platform and adding it again (android in my case)

    phonegap platform rm android
    

    wait until it finishes...

    phonegap platform add android
    

    And that´s it. Let me know if it is fixed for you.

    0 讨论(0)
  • 2020-12-03 13:38

    This problem can also occur when you have both the Android and iOS installed. At least this was the case for me.

    When I ran the command:

    cordova platform rm android

    It started to work

    0 讨论(0)
  • 2020-12-03 13:40

    I was having exactly this problem but managed to solve it by simply removing and then adding the IOS platform within my project:

    cordova platform rm ios
    cordova platform add ios
    

    This seemed to fix whatever had somehow got broken when updating Cordova...

    0 讨论(0)
  • 2020-12-03 13:46

    Has same issue with latest version of cordova (7.0.1)

    Faced error while adding iOS platform and managed to resolve it by upgrading nodeJS to latest version (6.11.1)

    0 讨论(0)
  • 2020-12-03 13:47

    For those of you that have tried updating your NodeJs and that didn't work.

    Go check in your platforms/android or platforms/ios folder. Mine was empty. Delete the folder, and run ionic cordova add android/ios again.

    0 讨论(0)
  • 2020-12-03 14:02

    Downgraded to cordova 8 and it's working.

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