Search code examples
iosiphonewatchkitapple-watch

Approaching Size Limit - The size of watch application (50MB limit is headache.)


Our app reaches approx 49MB and we are not halfway. So definitely it will exceed the limit of 50MB. I have few questions as follow.

1) Is On-Demand Resources possible in watchOS?

2) My resources(images, custom fonts) make 2 copy each one is watch app and other is watch extension. How to solve that?

3) Swift core and other swift frameworks are consuming about ~28MB of space. is there any way to disable that? (PS. we have bit code disabled)

Edit for watchOS4:

Previously our app size was 44.3 MB but when we generate IPA from xcode9 size increased to 54.5.


Solution

  • You can definitely save space by only including resources in either the watch app or the watch extension, not both. For resources used in your storyboard or referenced by name in WatchKit methods, like WKInterfaceImage’s setImageNamed(_:) method, you should store them in the watch app itself. For any resources loaded in code by path or with UIImage methods like init?(named:), you’ll want to put them in your WatchKit Extension.