xcode iphone:你能用模拟器测试访问音乐库吗?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/12320734/
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
iphone: can you test accessing music library using simulator?
提问by James
Possible Duplicate:
Can i access iPod Library on simulator?
可能重复:
我可以在模拟器上访问 iPod 库吗?
I noticed that there is no iPod app in the iPhone Simulator. If I am using the MediaPlayer framework and I want to test accessing the music library of the device (the simulator), can I do this using the simulator or do I need to buy an account so I can use my actual device?
我注意到 iPhone 模拟器中没有 iPod 应用程序。如果我正在使用 MediaPlayer 框架并且我想测试访问设备(模拟器)的音乐库,我可以使用模拟器来执行此操作还是需要购买一个帐户才能使用我的实际设备?
回答by occulus
No, there is no access to the MPMediaPlayer framework on the simulator. You'll need to become a paid-up member of the Developer program and run your app on your device.
不,模拟器上无法访问 MPMediaPlayer 框架。您需要成为开发者计划的付费会员并在您的设备上运行您的应用程序。