Reputation: 796
I create a framework target and add a media.xcassets into it. (to avoid app icon & launcher image.) This is the info of media.xcassets:
When I use Xcode 10 GM to build this framework, I get a assets.car more than 20MB! And if I use Xcode 9.4 to build this framework, the size of assets.car is 16MB.
Then I try to change the deploy target version of framework, and get these results:
I want to keep size of my app smaller. So should I avoid to use image assets? Is this a bug of Xcode 10?
Upvotes: 4
Views: 1059
Reputation: 77
Maybe this link https://forums.developer.apple.com/thread/108467 will help, it seems that Apple will optimize the assets.car file when your app is ready for sale in AppStore.
Upvotes: 1