Search Issue Tracker

Fixed

Votes

5

Found in

Issue ID

964574

Regression

Yes

[IOS][Ads] Invalid texture format when building for IOS with Unity Ads

Ads

-

Build application in Unity 2017.20f3:

ETC1 compressed textures are not supported when publishing to iPhone
Packages/com.unity.ads@1.0.7/Editor/Resources/Editor/landscape.jpg
Included from scene:
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
ETC1 compressed textures are not supported when publishing to iPhone
Packages/com.unity.ads@1.0.7/Editor/Resources/Editor/portrait.jpg
Included from scene:
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
Building - Failed to write file: resources.assets
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
Build completed with a result of 'Failed'
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
UnityEditor.BuildPlayerWindow+BuildMethodException: 5 errors
at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (BuildPlayerOptions options) [0x00207] in /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPlayerWindowBuildMethods.cs:172
at UnityEditor.BuildPlayerWindow.CallBuildMethods (Boolean askForBuildLocation, BuildOptions defaultBuildOptions) [0x00050] in /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPlayerWindowBuildMethods.cs:83
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)

Solution:

1. Go to:

on MAC
Users/%userprofile%/Library/Unity/cache/packages/packages.unity.com/com.unity.ads@1.0.7/Editor/Resources/Editor/

on Windows
%userprofile%\AppData\LocalLow\Unity\cache\packages\packages.unity.com\com.unity.ads@1.0.7\Editor\Resources\Editor

2. Open portrait.jpg.meta and landscape.jpg.meta
3. Find field textureFormat: -1
4. Change this value to this one textureFormat: 4

Comments (11)

  1. AidanHolden

    Jan 29, 2020 09:46

    Oh my god, I also had the same problem, how much time I spent on solving it. By the way, this guy https://speakerdeck.com/bobharvey helped me write my student essay about Unity applications, and also helped solve this problem. Sometimes solving a problem takes a lot of time.

  2. Babonj

    Oct 13, 2019 15:50

    its work for me on windows 10 . unity 2018 version try to build again apk . i face the same problem what i should do ?

  3. justtime

    Jan 17, 2019 13:25

    How to fix this ? Same on 2017.2.2p4

  4. justtime

    Jan 17, 2019 13:25

    How to fix this ? Same on 2017.2.2p4

  5. mihakinova

    Mar 13, 2018 11:22

    This also happens on 2018.1.0b10 with PackageManager ui textures (that are supposed to be editor-only). The "hack" described in the issue works for these as well.

  6. kkotajarvi

    Feb 28, 2018 06:54

    This has broken our every nightly build for weeks now. Can you please fix it.

  7. sinjimonkey

    Jan 31, 2018 06:42

    On Mac - when the error pops up you should be able to double click the error and it will take you to the images that are having the problem. You can then right-click on them and select "Reveal in Finder" to be taken to them.

    I had do do a lot of hijinx to get the files changed because the folders are locked for editing, but if you save the files in another directory before chaning them and then move them back it works.

    This was REALLY annoying. (Still present in 2016.3.0f3)

  8. ina

    Jan 04, 2018 23:29

    still present 2017.3.0f3

  9. sunderplugs11

    Nov 30, 2017 03:17

    I cant find that folder on Mac, i did on windows. cant find anything remotely close on mac. guess just back to chartboost

  10. Lisovenko

    Nov 22, 2017 14:03

    Same problem when building UWP on 2017.2.0p2

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.