2
votes

I am trying put my iOS app (that has an Apple Watch extension) on TestFlight, but I receive this error:

TestFlight ERROR ITMS-90389: "Size Limit Exceeded. The size of watch application 'myAppName' (78MB) has exceeded the 50MB size limit."

The watch extension is very minimal and I'm not referencing anything large. I am using Xamarin. Does know a solution for this?

2
Do you have the Release build / Linker enabled? - SushiHangover
I'm pretty sure that's it. I'll try it and let you know. To be more specific for anyone else, right-click the watch projects (the extension too) -> Options -> watchOS Build -> Linker behavior -> Don't Link - Drake
That didn't work. It actually made it worse for some reason, it jumped to 226MB now... - Drake
Some ?s: Which version of Xamarin.iOS are you using, which third-party packages are you using, are you including large/numerous BundleResources?.... - SushiHangover
Open the created .app (Show Package Contents if using Finder), what is the size of the .appex file within the Plugin folder(?) vs. the size of the media elements/assets. i.e. Make sure that the images are not expanding from their original size... - SushiHangover

2 Answers

11
votes

For those who face 'Size Limit Exceeded' problem and not using Xamarin. Go to the extension's project settings, and set Always Embed Swift Standard Libraries to No.

0
votes

I solved this issue by removing the Newtonsoft.Json library from the watch extension project (I'm using XmlSerializer now instead). The watch app diminished to 46MB and can now publish my app on TestFlight.