user1154696
user1154696

Reputation: 43

App works on device via direct install but doesn't via ipa

I've been surfing the net and have found no answer to this situation I have (though I find it surprising because I can't believe I'm the first one to come over this). Maybe I don't know the correct keywords for finding it...

My problem is I build an iOS app with XCode 4.2 and test it running directly in an iPhone 3G with iOS 4.2.1 and everything runs as it is supposed to. However, if I build an .ipa and install it in that same device (where I have previously uninstalled the former installation of the app), it install perfectly and almost all the app works fine... but for one place that is not working properly.

I don't enter in details of what is exactly happening because it is something that has happened before in other apps with other devices (i.e. ipad 1, iphone 4...) (once I found out that compilation and execution directly to a Device was letting an uninitialized rect being added to something, while in .ipa it crashed (I think it was a SIG_ABRT but don't know exactly).

Is this situation documented anywhere? What cases compile in one way and others don't?

Thanks in advance!

Upvotes: 4

Views: 1326

Answers (2)

iOS Flow
iOS Flow

Reputation: 69

Philip J. Fry's answer: "Try to select "None" for Optimization Level in the section "Apple LLVM compiler 4.1 - Code generation" of Build Settings."

It still is the proper answer today with "Apple LLVM compiler 8.1 - Code generation"

be careful changing it both target and project...

Upvotes: 1

Philip J. Fry
Philip J. Fry

Reputation: 1165

Try to select "None" for Optimization Level in the section "Apple LLVM compiler 4.1 - Code generation" of Build Settings.

Upvotes: 6

Related Questions