xcode 在没有 SIM 卡的 iPhone 设备上测试
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/10474812/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Testing on iPhone device without SIM card
提问by James Skidmore
I have an iPhone 3G that worked fine for development on iOS 3. I just updated to iOS 4.1.2, and Xcode Organizer tells me This device is not activated. Please activate it using iTunes
. I've restored twice now.
我有一部 iPhone 3G,可以很好地在 iOS 3 上进行开发。我刚刚更新到 iOS 4.1.2,Xcode Organizer 告诉我This device is not activated. Please activate it using iTunes
。我现在恢复了两次。
iTunes tells me to insert a SIM to activate it—however, I don't want to activate it. This iPhone is for development only. The phone itself says "No SIM Card Installed. Insert a valid SIM with no PIN lock to activate iPhone."
iTunes 告诉我插入 SIM 卡来激活它——但是,我不想激活它。此 iPhone 仅用于开发。手机本身显示“未安装 SIM 卡。插入没有 PIN 锁定的有效 SIM 卡以激活 iPhone。”
How can I get the "please activate" message to go away so that I can use it for development?
如何让“请激活”消息消失,以便我可以将其用于开发?
Edit- I do not have a standard SIM card that I could put in temporarily. All I have is a micro SIM for my iPhone 4.
编辑- 我没有可以暂时放入的标准 SIM 卡。我只有一个适用于 iPhone 4 的微型 SIM 卡。
回答by Greg
All you have to do is insert any SIM card, active or not, get the device set up, and then take the SIM card out. It should work fine from there (I use a no-SIM 3G for testing 4.2.1).
您所要做的就是插入任何 SIM 卡,无论是否有效,设置设备,然后取出 SIM 卡。从那里它应该可以正常工作(我使用无 SIM 卡 3G 来测试 4.2.1)。
回答by Andrew
Depending on if the phone is locked with a carrier, you may need a carrier specific SIM. You can buy SIM cards from carriers' stores for a $5-$10. The SIM doesn't have to be associated with an account or phone number. I've definitely had sales associates look at me funny when I try to buy a SIM with no account.
根据手机是否被运营商锁定,您可能需要运营商特定的 SIM 卡。您可以从运营商商店以 5 至 10 美元的价格购买 SIM 卡。SIM 不必与帐户或电话号码相关联。当我尝试购买没有帐户的 SIM 卡时,肯定有销售人员用有趣的眼光看待我。