我正在使用 Mac。我正在尝试使用命令生成图标和启动画面
ionic cordova resources ios --icon
但我总是收到这个错误:
[WARN] Error occurred during command execution from a CLI plugin (@ionic/cli-plugin-cordova). Your plugins may be out of date.
✖ Generating platform resources - failed!
Error: connect ETIMEDOUT 104.20.7.16:443
图标:icon.png,尺寸 1024x1024。
飞溅:splash.png,尺寸 2048x2048。
它生成目录 resources/ios/icon 包含 .png 文件,但是当我尝试打开它时,我收到此警报The file “icon-40.png” could not be opened because it is empty.
,当我尝试构建 ios 时,我收到此错误Error: Source path does not exist: resources/ios/icon/icon-40.png
离子信息:
global packages:
@ionic/cli-utils : 1.3.0
Cordova CLI : 7.0.1
Ionic CLI : 3.3.0
本地包:
@ionic/app-scripts : 1.1.4
@ionic/cli-plugin-cordova : 1.3.0
@ionic/cli-plugin-ionic-angular : 1.3.0
Cordova Platforms : android 6.1.2 ios 4.4.0
Ionic Framework : ionic-angular 2.3.0
系统:
Node : v6.11.0
OS : macOS Sierra
Xcode : Xcode 7.3.1 Build version 7D1014
ios-deploy : 1.9.1
ios-sim : not installed