问题
我使用 open func setupCirclestack(parentFrame:CGRect)->[UIView]
{
let arrayColor = [UIColor.yellow,UIColor.blue,UIColor.red]
let baseCircle = Circle.init(frame: parentFrame)
baseCircle.backgroundColor=UIColor.purple
var circleArray = [Circle]()
for i in 0...2
{
let circle = self.getInnerCircle(currentFrame: parentFrame)
circle.backgroundColor = arrayColor[i]
circleArray.append(circle)
}
return circleArray
}
成功生成了我的Android资源,但ionic cordova resources android
提供了“图片太大而无法转换”错误。
这是我尝试过的成功
可能是什么解决方案?
(调试)信息
ionic cordova resources ios
的输出:
sudo ionic cordova resources ios --verbose --force
注意:它一直在抱怨丢失的ios平台,而实际上已经安装了它。
这是我的离子信息:
[DEBUG] CLI flags: { interactive: true, confirm: false }
[DEBUG] { cwd: '/Users/the/root/of/my/project', local: false, binPath:
'/usr/local/lib/node_modules/ionic/bin/ionic', libPath: '/usr/local/lib/node_modules/ionic/dist/index.js' }
[DEBUG] Daemon found (pid: 1757)
[DEBUG] resourceJsonStructure=3
[DEBUG] platformEngines=android
✔ Collecting resource configuration and source images - done!
? Platform ios not detected. Would you like to install it? Yes
> cordova platform add ios --save
✖ Running command - failed!
[WARN] Platform already added. Saving platforms to config.xml.
> cordova platform save
✔ Running command - done!
[DEBUG] platformEngines=[object Object]
[DEBUG] buildPlatforms=android
[DEBUG] getProjectPlatforms completed - length=1
[DEBUG] imgResources=0
[DEBUG] createImgDestinationDirectories completed - length=0
[DEBUG] getSourceImages completed - 2
✔ Filtering out image resources that do not need regeneration - done!
[DEBUG] uploadSourceImages completed - responses=[
{},
{}
]
✔ Uploading source images to prepare for transformations - done!
[OK] No need to regenerate images--images too large for transformation.
答案 0 :(得分:0)
问题是由平台错误引起的。干净安装我的项目解决了这些问题。
答案 1 :(得分:0)
对我来说,我忘记将我的Illustrator文件重命名为“icon.ai”。它显示“图像太大”,但实际上根本没有找到图像。
答案 2 :(得分:-1)
我遇到了同样的问题,我重新启动了Mac,然后运行以下命令ionic Cordova resources ios --force也重新启动了iPhone。