The application works on the device through direct installation, but not through ipa

I surf the net and did not find the answer to this situation that I have (although I find it amazing because I can’t believe that I am the first to come to this). Perhaps I do not know the right keywords to search for it ...

My problem is that I create an iOS application with Xcode 4.2 and test it directly on iPhone 3G with iOS 4.2.1, and everything works as intended. However, if I create .ipa and install it on the same device (where I previously uninstalled the previous installation of the application), it installs fine, and almost the entire application works fine ... but for one place that does not work properly.

I don’t go in detail about what happens because it happened earlier in other applications with other devices (for example, ipad 1, iphone 4 ...) (as soon as I found out that compiling and executing directly to the device was allowed to add an uninitialized rectangle , and in .ipa it crashed (I think it is SIG_ABRT, but I don’t know for sure).

Is this situation documented anywhere? Which cases are compiled in one way and others not?

Thanks in advance!

+4
source share
2 answers

Try selecting "No" for the optimization level in the "Apple LLVM 4.1 Compiler - Code Generation" section in the build settings.

+6
source

Philip J. Fry replies: “Try selecting“ No ”for the optimization level in the“ Apple LLVM 4.1 Compiler - Code Generation ”section of the build settings.

It is still the correct answer to date with "Apple LLVM Compiler 8.1 - Code Generation"

Be careful changing it both the goal and the project ...

+1
source

Source: https://habr.com/ru/post/1391524/


All Articles