在Xcode 7中从Unity编辑器创建ipa时出现png crush错误 [英] Getting png crush error while creating ipa from unity editor in Xcode 7

查看:129
本文介绍了在Xcode 7中从Unity编辑器创建ipa时出现png crush错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我从Unity编辑器创建ipa时遇到png crush错误。我做了一个示例游戏,想在iPhone上运行它。所以我从统一编辑器打开了构建设置并选择了iOS平台,如下图所示。

I am getting png crush error while creating ipa from unity editor. I did a sample game and want to run it on iPhone. So i opened build settings from unity editor and chooses iOS platform like below mentioned image.

选择iOS平台后,它在Xcode 7中打开,我连接了iPhone设备。在构建此游戏时出现此错误。

After selected iOS platform, It opens in Xcode 7 and i connected iPhone device. While Building this game am getting this error.

I知道为什么会出现这个png crush错误(在Xcode中我们有多个同名图像)。我正在使用一个用于android os的插件库。在该库上只有我有如下所述的错误图像。

I know why this png crush error (In Xcode we have more than one image with same name) occurred. Am using one plugin library for android os. On that library only i have that error image like below mentioned.

我的问题是如何避免来自Xcode的Android插件库。如果我们不能这意味着提出一些想法来纠正这个问题。

My question is how to avoid android plugin libraries from Xcode. If we can't it means give some ideas to rectify this issue.

注意:我是团结游戏开发的新手。

Note : I am new for unity game development.

推荐答案

在第二张图片上,它说:

On your second image, it says:


iOSBuild / Libraries / Plugins / Android / google-play .....

iOSBuild/Libraries/Plugins/Android/google-play.....

这是一个很大的信号,您的Android插件将包含在您最终的Xcode生成项目中。在您的情况下,此问题可能来自Google Play服务插件。

This is a big sign that your Android plugin is being included in your final Xcode generated project. In your case, this problem is likely from the Google Play services plugin.

转到插件/ Android / google-play-services ... 并选择每个插件文件。在插件检查器标签上,确保将其标记为 Android ,并取消选中任意平台复选框。要选择的这些文件通常是 .aar .jar .so 文件。确保进入Android插件文件夹下的每个文件夹并执行此操作。

Go to Plugins/Android/google-play-services... and select each plugin file. On the Plugin Inspector tab, make sure that they are marked as Android and that Any Platform check box is unchecked. These files to select are usually .aar , .jar and .so files. Make sure to go inside every folder under the Android plugin folder and do this.

我将使用Google VR插件我已经演示了您需要做的事情:

I will use the Google VR plugin I have demonstrate what you need to do:

这篇关于在Xcode 7中从Unity编辑器创建ipa时出现png crush错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆