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
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)
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Crash on GUIManager::DoGUIEvent when focusing on the Game view window on a specific project
- Asset creation in the Project Browser is not always undone/inconsistent when the undo shortcut is pressed right after creating an asset
- JobTempAlloc memory leak warning is thrown when the Player is shut down
- Graphics State Collection warm-up does not work when using with Addressables Shaders
- "Baked Shadow Radius" field is visible but inactive when when the Shadow Type is set to "Hard Shadows" under the Light Component
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 ?
justtime
Jan 17, 2019 13:25
How to fix this ? Same on 2017.2.2p4
justtime
Jan 17, 2019 13:25
How to fix this ? Same on 2017.2.2p4
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.
kkotajarvi
Feb 28, 2018 06:54
This has broken our every nightly build for weeks now. Can you please fix it.
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)
ina
Jan 04, 2018 23:29
still present 2017.3.0f3
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
Lisovenko
Nov 22, 2017 14:03
Same problem when building UWP on 2017.2.0p2
Anflo
Nov 22, 2017 00:38
is there a patch that fixes this problem already?