Error building ios with cordova

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

    I got similar issue with cordova-ios@~4.5.1

    ionic cordova build ios

    > cordova build ios
    Error: Source path does not exist: resources\android\icon\drawable-xhdpi-icon.png
    
    [ERROR] An error occurred while running cordova build ios (exit code 1).
    

    ionic cordova platform add ios

    > cordova platform add ios --save
    Using cordova-fetch for cordova-ios@~4.5.1
    
    Adding ios project...
    
    Creating Cordova project for the iOS platform:
    
    Path: platforms/ios
    Package: -
    Name: -
    iOS project created with cordova-ios@4.5.4
    
    Error: Source path does not exist: resources\android\icon\drawable-xhdpi-icon.png
    

    I remove ios platform

    ionic cordova platform remove ios
    

    And add ios platform with old one

    ionic cordova platform add ios@4.0.0
    

    This worked for me, waiting for an Cordova update :)

提交回复
热议问题