Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Large ipa size #9

Open
AntAttakk opened this issue Aug 16, 2021 · 2 comments
Open

Large ipa size #9

AntAttakk opened this issue Aug 16, 2021 · 2 comments

Comments

@AntAttakk
Copy link

The size of the ipa file when we build our Xamarin Forms app for iOS is quite large. Our app almost doubled in size.

Before including laerdal.dfu the ipa size was 34.3MB
After including it the size has grown to 66.8MB

The numbers above are with link behaviour set to framework SDKs only. If I use link everything instead, the size is 62.7MB, which is a little smaller but still much larger than originally.

These numbers are with the latest version of the library (v0.3.0)
For reference: On Android, the app only grows with approx 200kB.

It would be great if it was possible to reduce the size of the library on iOS.

@tompi
Copy link

tompi commented Jan 5, 2022

Not sure, but Im guessing this is because the iOS library from Nordic is based on Swift, so if your minimum iOS version is lower than 12.something(cant remember exact version) almos all the swift libraries will need to be bundled with the IPA. I dont think newer iOS versions will actually need to downmload them though.

If you set minimum sdk to 12.4 I and use Xamarin.Swift to bundle ipa, I think you should see small IPAs...

@AntAttakk
Copy link
Author

We currently have MinimumOSVersion set to 12.0 so that sounds like it could help. I tried changing it to 12.4 and 13.0 but unfortunately, the IPA is still the same size. Thanks for the tip though!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants