Reputation: 1022
I downloaded Xcode 10 to test some new features on a project, Now when I reopen the same project on Xcode 9. It seems that Xcode can't find any assets ( images)
This would work fine on Xcode 10 :
let image = UIImage(named: "AsunnyDay")
// this would find the correct image
However, on Xcode 9
let image = UIImage(named: "AsunnyDay")
//image would be nil
I guess it's something related to XCode 10 categorizing the assets as either for dark appearance or light. but I don't understand why would Xcode 9 not find them.
Upvotes: 6
Views: 3133
Reputation: 2952
Change your command line tool and clear your derived data first. Clear your project.
After that force quit Xcode and reopen it. It solved my assets warning problem.
Hope it will help you.
Upvotes: 0
Reputation: 273
For me i just reran the project using Xcode 10 and then reverted back to Xcode 9 and it worked for me.
Upvotes: 0
Reputation: 1022
Guys this is how I fixed it.
Any, Light,Dark
Upvotes: 6