Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Could not get trait set for device iPad14,3 with version 16.1

Tags:

ios16

xcode

ios

Ever since I started using Xcode 14.1, I've been seeing this warning with my asset files

Could not get trait set for device iPad14,3 with version 16.1

I've checked the build log file and It doesn't have any more details than that message. It happens when trying to compile the asset file.

Please let me know if you know to which trait set is it referring.

like image 630
the Reverend Avatar asked Sep 01 '25 17:09

the Reverend


1 Answers

The bug is still present in the latest Xcode (14.3) with projects that were created on older Xcode versions.

To fix it, simply create a new asset catalog. Interestingly, an empty one will do, but I just moved my app icons to it and deleted the old one made with the previous Xcode version.

Of course (because it would have been too simple), there is an additional bug with Xcode 14.3 - if you try to create a full icon set and set your target to iOS 11, upon submission to the app store you will get a warning about having a single-side app icon in the bundle with an iOS version less than 12.

Edit: Updating to 14.3.1 will not fix the bug either. It might actually bring back the warning, so you'd have to again create a new asset catalog.

like image 194
Ecuador Avatar answered Sep 04 '25 11:09

Ecuador