Error building ios with cordova

后端 未结 17 1796
-上瘾入骨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:25

    Update - 03-08-2017

    > ionic cordova resources
    

    Old CLI command:

    I had the same error, and after re-running ionic resources it went away.

    The problem was that I had Windows-style slashes (backslashes) in the path of the icon, i.e. the error I had was this:

    Error: Source path does not exist: resources\ios\icon\icon-40.png

    So, converting backslashes into slashes resolved it for me.

    Update: And regarding your second error, it helped me to reset the state:

    ionic state reset

    Make sure you have ios listed under cordovaPlatforms in your package.json before running this command. Then ionic automatically re-downloads your plugins afresh and is ready to build.

    Hope that helps. Take care!

提交回复
热议问题