"unable To Connect To Itunes" Error Appears In Alert View When Testing On Xcode Simulator

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?

I’m having the exact same behaviour just now. But the test transaction seems to be successful.

Same error here! 

Just hitting my head in the keyboard trying to solve this!

I’m having the exact same behaviour just now. But the test transaction seems to be successful.

Same error here! 

Just hitting my head in the keyboard trying to solve this!

I am also having that issue… and can’t get IAPs to work.

I am also having that issue… and can’t get IAPs to work.

Same error here - can’t restore any purchase. 

Can anybody comment on it? This is the only thing that no one can explain. 

Same error here - can’t restore any purchase. 

Can anybody comment on it? This is the only thing that no one can explain.