I have a cross-platform PCL in which I want to put some embedded resources that are approximately 20MB in size. I have them marked as EmbeddedResource under the Build action. I noticed that the resulting iOS archive built in Release grows by approximately 60MB however, triple the size of the resources themselves. In Android, including these resources adds about 20MB to the apk, as I expected. As a test, I also tried setting the build action to None and setting Copy to Output Directory, then I removed the resources from my project altogether. Here's what happened to the size of my archives:
None and Copy: 82.5MB
None and Copy: 33.2MB
My questions are:
1) What is happening in iOS when I add my files as EmbeddedResources and why do they take up 3x space than what I expected?
2) Is Copy to Output Directory not including the files in my Android apk? It doesn't seem to add any files compared to removing them from the project.
3) It seemed like a good idea to put shared resources in my PCL, but if this is not actually a good idea due to these effects, what is the best approach?