为什么Unity 5.4会将Plugins/Android的内容包含到iOS的项目中?

Why does Unity 5.4 include the contents of Plugins/Android to iOS Project?

我一直致力于为 iOS 和 Android 平台构建一个包含组合库的独立自定义 unitypackage。测试工程导入包后的文件夹结构,在Assets里面有两个文件夹,分别是IosLibrary和Plugins->Android。 IosLibrary 文件夹包含 iOS 构建所需的所有资源和库,Android 文件夹的内容包含用于 Android 构建的资源和库。

我已经测试了我们的包与 Unity 4.7 的集成,一切正常;当我为 iOS 平台构建项目时,iOS 的 Xcode 项目包含 iOS 构建所需的 resources/headers/libraries。当我尝试在 5.4 上创建一个具有相同包的测试项目时,Unity 创建的 Xcode 项目开始在 Plugins/Android 中包含资源,这导致了一堆构建错误,如下所示。

有没有人遇到过这个?如果有人能指出我是否遗漏或做错了什么,我将不胜感激。

CopyPNGFile /Users/mithleshkumarjha/Library/Developer/Xcode/DerivedData/Unity-iPhone-bftkjvxwavdurpcavvsvajdqxqcc/Build/Products/Debug-iphoneos/demo.app/hs___star_hollow.png 库/Plugins/Android/nester/res/drawable-xxhdpi-v4/hs___star_hollow.png CD /Users/mithleshkumarjha/Projects/Unity/Unity-Test8/UnityTest8 export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer![alt text][1]/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin" /Applications/Xcode.app/Contents/Developer/usr/bin/copypng -compress /Users/mithleshkumarjha/Projects/Unity/Unity-Test8/UnityTest8/Libraries/Plugins/Android/nester/res/drawable-xxhdpi-v4/hs___star_hollow.png /Users/mithleshkumarjha/Library/Developer/Xcode/DerivedData/Unity-iPhone-bftkjvxwavdurpcavvsvajdqxqcc/Build/Products/Debug-iphoneos/demo.app/hs___star_hollow.png

在读取 /Users/mithleshkumarjha/Projects/Unity/Unity-Test8/UnityTest8/Libraries/Plugins/Android/nester/res/drawable-xxhdpi-v4/hs___star_hollow.png 时 pngcrush 捕获了 libpng 错误: [00][00][00"277`17T637

命令 /Applications/Xcode.app/Contents/Developer/usr/bin/copypng 发出错误但没有 return 非零退出代码指示失败

您可以在此处查看: 并确保 Plugins/Android 中的所有文件都设置为 Android 此处