Error building ios with cordova

后端 未结 17 1881
-上瘾入骨i
-上瘾入骨i 2021-02-03 22:32

I have a problem when I build the ios platform with cordova. I have all the certificates for the app and device, but when I try to run in my ios device, doing ionic run ios, the

17条回答
  •  孤街浪徒
    2021-02-03 23:12

    I've found this issue in several occasions and some of the provided answers worked quite well till today, when no one worked.

    My environment: MacOS high Sierra 10.13, ionic cli 3.18.0 and cordova 7.1.0.

    My problem was that if I run ionic cordova prepare it fails saying that I need to add a platform and if a I add a platform with ionic cordova platform add ios it fails with the error specified in the answer:

    Error: Source path does not exist: resources/ios/icon/icon-40@3x.png
    

    What solved my issue was manually creating the platforms folder: mkdir platforms. After creating this folder, adding a platform worked as usual.

    I hope it could help someone out there.

提交回复
热议问题