I'm new to in-app purchases, and following the tutorials, I've got the product request going, an observer, and everything. However, at the point that the modal purchase dialog comes up (while the observer thinks the transaction is in "Purchasing" state, the app freezes up.
In the logs, I'm getting a crazy EXC_BAD_ACCESS error right here:
0x35b822b4: blx 0x35f9bb18 ; symbol stub for: -[_UIHostedTextServiceSession dismissTextServiceAnimated:] 0x35b822b8: movs r0, #0 <--EXC_BAD_ACCESS (Code=1, address=0x69466469)
The interesting thing is that even though the app freezes, the purchase process continues, although with the app frozen, it will never finalize.
Based on some of the other posts I've seen, I've tried it on the simulator, multiple devices, as well as using ad hoc (TestFlight) distribution in case it was an issue with the development cert, and nothing works.
One possibility I haven't seen an answer for is that the product in question hasn't yet been approved. I assume that, since I'm connecting in sandbox mode, and since the product request process is clearly getting data back from the app store, that wasn't an issue. Is it possible that an un-approved store item is causing the problem?
If it is the case that the unapproved SKU is breaking things, I'm really confused because iTunes Connect indicates that I can't submit a SKU except with a new version of the app for review, and, well, if I can't test the store feature, I don't want to submit that new version. Anyone here have any experience with this who can tell me why everything is going kablooey?
EDIT: One other thing that might be important is that the purchase button is in a modal push (specifically a page-curl) view. I know that Twitter requests can't be called from modal views. Is there a reason a store transaction couldn't be done in this view?