Debugging StoreKit functionality without a device
        Posted  
        
            by Rolf Staflin
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Rolf Staflin
        
        
        
        Published on 2010-03-26T07:46:59Z
        Indexed on 
            2010/03/26
            7:53 UTC
        
        
        Read the original article
        Hit count: 749
        
Hi!
I'm porting an app with in-app purchase functionality from the iPhone to the iPad, but the simulator doesn't handle any StoreKit calls (they fail immediately with a warning). Since there are no iPads available yet, I can't use a device for debugging.
I have thought of a few alternatives:
- Use the iPhone code as is. This is the safe bet since everything already works on the iPhone, but it will not feel right on the iPad (there are several ViewControllers in a NavigationController involved on the iPhone, but everything could fit on one screen on the pad).
 - Write a test framework for StoreKit. I actually started doing this, but I won't be able to finish it in time.
 - Submit untested code and pray. Nah, just kidding -- that's not an option :)
 
So, any thoughts? Has anyone else written a test framework for this kind of thing? I googled a bit but couldn't find anything. I'm grateful for any thoughts on this!
© Stack Overflow or respective owner