The maximum executable file size for delivery through the application store, but the hardware does not impose any unusual restrictions.
Your problem is most likely in one of your libraries. Which, based on your description of the complexity of your application, is not a useful observation on my part.
Given a template with compiler options, I'm going to take a wild, wild hunch that you have a library that has a problem, and a harder compiler leads to code exception.
Under the title of a long shot, you can also take a look at resources such as images. I have seen a couple of cases over the past couple of years in which seemingly harmless resources cause fatal download errors.
source share