Why does the build size explode when adding WatchOS project?

FunderFunder Member ✭✭
edited May 15 in Xamarin.iOS

An empty iOS project goes from 4.95mb to 42.08mb after adding WatchOS extension.

Easy to reproduce:
1: Create new iOS project
2: "Archive for publishing" - Est. size: 4.95mb
3: Add WatchOS project to solution
4: "Archive for publishing" - Est. size: 42.08mb

I would expect the build size to maybe double in size.

I made this test after noticing the size difference in another full blown project. There it grows from about 60mb to 180mb.

Is this really intended behaviour? Can someone explain why this is happening? Or is this a bug in the build system?

Using:
Visual Studio Community 2019 for Mac Version 8.0.5 (build 9)
Xamarin.iOS Version: 12.8.0.2

Answers

  • LucasZhangLucasZhang Member, Xamarin Team Xamurai
    edited May 15

    If you open the extension project .There are two folders called bin and obj. It contains some crash and reference file which take up a lot of memory. So you can delete them ,then clean and rebuild your project.

  • FunderFunder Member ✭✭

    @LucasZhang said:
    If you open the extension project .There are two folders called bin and obj. It contains some crash and reference file which take up a lot of memory. So you can delete them ,then clean and rebuild your project.

    I always clean the project before building to archive.
    Not sure what the screen shot is supposed to show?

    /Dan

  • LucasZhangLucasZhang Member, Xamarin Team Xamurai

    Did you try to do the same thing on VS for Window? It seems works fine :)

  • FunderFunder Member ✭✭

    @LucasZhang said:
    Did you try to do the same thing on VS for Window? It seems works fine :)

    No, I do not have access to a Windows PC here.
    But either way, in that case it would still be a bug.

  • FunderFunder Member ✭✭

    I've attached the empty test project.
    Only thing changed from the example shown above is that I've updated to Xamarin.iOS preview 12.10.0.172 and included ARM64 architecture. This has resulted in even bigger filesize (80.85mb est.)

    There must be other people than us that find this absurd.

    /Dan

  • FunderFunder Member ✭✭

    So - no-one has any clues whats going on?

  • m2a2xm2a2x Member ✭✭

    @Funder said:
    So - no-one has any clues whats going on?

    Got the same problem.
    Even if create totally empty solution and create ipa.
    Without watchos project ipa size around 6mb. But after adding watchos ipa 48mb!!!

    Were anyone able to solve it??

Sign In or Register to comment.