Getting png crush error while creating ipa from unity editor in Xcode 7

前端 未结 2 1007
暗喜
暗喜 2021-01-23 09:28

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

相关标签:
2条回答
  • 2021-01-23 09:52

    On your second image, it says:

    iOSBuild/Libraries/Plugins/Android/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.

    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.

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

    0 讨论(0)
  • 2021-01-23 09:54

    If you are using Google Play Services plugin just for Android platform (and not for IOS):

    In the GooglePlayGames subdirectory in your project, just find all the occurrences of

    #if (UNITY_ANDROID || UNITY_IPHONE)
    

    or

    #if UNITY_IPHONE
    

    and remove UNITY_IPHONE (i.e. #if (UNITY_ANDROID || UNITY_IPHONE -> #if UNITY_ANDROID).

    It will prevent Unity Post Processor to include Android Plugins in IOS build.

    0 讨论(0)
提交回复
热议问题