I’m just starting IAP for the first time. I’ve set up a test user on iTunes, and a test app with test items (2 consumable, 2 non-consumable).
I’ve plugged those products into the IAP sample project, and built to the xcode simulator using the prov profile which matches the app in iTunes.
When I try and make a purchase, it seems to work since I get the following in the terminal:
InAppPurchase: transactionCallback: Received event storeTransaction
InAppPurchase: state: purchased
InAppPurchase: errorType: none --no errors
InAppPurchase: errorString: nil
InAppPurchase: Transaction successful! --suggests that it is successful
InAppPurchase: receipt: < a bazillion letters and numbers go here>
InAppPurchase: signature: nil
however it also prints out the following:
com.apple.iPhoneSimulator:com.apple.itunescloudd: mach_port_mod_refs() failed
itunescloudd: Could not prepare SELECT value FROM _MLDatabaseProperties WHERE key = ?: no such table: _MLDatabaseProperties
itunescloudd: Could not prepare SELECT value FROM _MLDatabaseProperties WHERE key = ?: no such table: _MLDatabaseProperties
itunescloudd: Could not prepare SELECT value FROM _MLDatabaseProperties WHERE key = ?: no such table: _MLDatabaseProperties
itunescloudd: Could not prepare SELECT value FROM _MLDatabaseProperties WHERE key = ?: no such table: _MLDatabaseProperties
itunescloudd: Could not prepare INSERT OR REPLACE INTO _MLDatabaseProperties (value, key) VALUES (?, ?);: no such table: _MLDatabaseProperties
itunescloudd: Could not prepare INSERT OR REPLACE INTO _MLDatabaseProperties (value, key) VALUES (?, ?);: no such table: _MLDatabaseProperties
itunescloudd: Could not prepare INSERT OR REPLACE INTO _MLDatabaseProperties (value, key) VALUES (?, ?);: no such table: _MLDatabaseProperties
itunescloudd: Could not prepare SELECT value FROM _MLDatabaseProperties WHERE key = ?: no such table: _MLDatabaseProperties
itunescloudd: Could not prepare SELECT value FROM _MLDatabaseProperties WHERE key = ?: no such table: _MLDatabaseProperties
itunescloudd: Could not prepare INSERT OR REPLACE INTO _MLDatabaseProperties (value, key) VALUES (?, ?);: no such table: _MLDatabaseProperties
itunescloudd: Could not prepare INSERT OR REPLACE INTO _MLDatabaseProperties (value, key) VALUES (?, ?);: no such table: _MLDatabaseProperties
itunescloudd: Could not prepare INSERT OR REPLACE INTO _MLDatabaseProperties (value, key) VALUES (?, ?);: no such table: _MLDatabaseProperties
itunescloudd: Could not prepare INSERT OR REPLACE INTO _MLDatabaseProperties (value, key) VALUES (?, ?);: no such table: _MLDatabaseProperties
itunescloudd: Could not prepare INSERT OR REPLACE INTO _MLDatabaseProperties (value, key) VALUES (?, ?);: no such table: _MLDatabaseProperties
itunescloudd: Could not prepare INSERT OR REPLACE INTO _MLDatabaseProperties (value, key) VALUES (?, ?);: no such table: _MLDatabaseProperties
itunescloudd: Could not prepare INSERT OR REPLACE INTO _MLDatabaseProperties (value, key) VALUES (?, ?);: no such table: _MLDatabaseProperties
itunescloudd: Could not prepare INSERT OR REPLACE INTO _MLDatabaseProperties (value, key) VALUES (?, ?);: no such table: _MLDatabaseProperties
itunescloudd: Could not prepare INSERT OR REPLACE INTO _MLDatabaseProperties (value, key) VALUES (?, ?);: no such table: _MLDatabaseProperties
I have no idea what these actually refer to, or why they appear, but the same error messages appear every few seconds or so. In addition, sometimes I get an alert view which says “Unable to connect to iTunes”, but that doesn’t appear every time. I’d be surprised if it was a genuine connection problem, but I don’t know what else the cause could be.
Has anyone experienced the same thing?