Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
402 views
in Technique[技术] by (71.8m points)

ios5 - Logout from AppStore on iOS Simulator

Since 5.0, iOS simulator has StoreKit support so you can debug your In-App purchases without device. But, it has one issue. Once logged in (make In-App purchase) I can't change AppStore login. Settings has not "AppStore" item, so I can't "logout" from account.

I tried to delete application from simulator, restart simulator, delete test user from iTunesConnect — no success.

Screen of the problem

Any idea?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

There is another way to log out from that sandbox account without "Reset Content & Settings" . Just remove the files from the following path in your home directory :

~/Library/Application Support/iPhone Simulator/5.0/Library/com.apple.itunesstored 

You may also need to restart the Simulator for the change to take effect.

This just removes the stored information about iTunes from Simulator. So it doesn't delete any apps in the Simulator. It works cool :)


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...