作者iwayne (Wayne)
看板MacDev
标题[问题] MusicPlayer不能在模拟器上模拟吗?
时间Thu May 26 21:59:38 2011
请教各位先进
小弟最近参考网路上的写法,写了一个读iPod library的小程式。
主要是想拨放iPod library里面的声音档。
但是执行後出现以下错误...
显示Unable to launch iPod music player server...是不是代表模拟器不能
模拟抓取iPod Library的资料?
因为我想想也对,模拟器里面根本没有同步载入iPod Library怎麽可能读得到...
本来猜想模拟器会自动有辨法连到桌机上的iPod Library取资料给iPhone AP来读~~
所以,结论是不是模拟器做不到?而要实机?...谢谢
[Session started at 2011-05-26 21:40:38 +0800.]
2011-05-26 21:40:40.799 MusicPlayer[635:207] MPMusicPlayer: Unable to launch iPod music player server: application not found
2011-05-26 21:40:41.302 MusicPlayer[635:207] MPMusicPlayer: Unable to launch iPod music player server: application not found
2011-05-26 21:40:41.803 MusicPlayer[635:207] MPMusicPlayer: Unable to launch iPod music player server: application not found
2011-05-26 21:40:42.304 MusicPlayer[635:207] MPMusicPlayer: Unable to launch iPod music player server: application not found
2011-05-26 21:40:42.805 MusicPlayer[635:207] MPMusicPlayer: Unable to launch iPod music player server: application not found
2011-05-26 21:40:43.307 MusicPlayer[635:207] MPMusicPlayer: Unable to launch iPod music player server: application not found
2011-05-26 21:40:43.808 MusicPlayer[635:207] MPMusicPlayer: Unable to launch iPod music player server: application not found
2011-05-26 21:40:44.310 MusicPlayer[635:207] MPMusicPlayer: Unable to launch iPod music player server: application not found
2011-05-26 21:40:44.811 MusicPlayer[635:207] MPMusicPlayer: Unable to launch iPod music player server: application not found
2011-05-26 21:40:45.312 MusicPlayer[635:207] MPMusicPlayer: Unable to launch iPod music player server: application not found
2011-05-26 21:40:45.814 MusicPlayer[635:207] MPMusicPlayer: Unable to launch iPod music player server: application not found
2011-05-26 21:40:45.814 MusicPlayer[635:207] MediaPlayer: Message playbackState timed out.
2011-05-26 21:41:03.080 MusicPlayer[635:207] MPMediaPickerController: Unable to access iPod library.
2011-05-26 21:41:03.083 MusicPlayer[635:207] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Application tried to present a nil modal view controller on target <MusicPlayerViewController: 0x5652bb0>.'
*** Call stack at first throw:
(
0 CoreFoundation 0x00f5bbe9 __exceptionPreprocess + 185
1 libobjc.A.dylib 0x010b05c2 objc_exception_throw + 47
2 UIKit 0x0036b021 -[UIViewController presentModalViewController:withTransition:] + 750
3 MusicPlayer 0x000029ec -[MusicPlayerViewController openMediaPicker:] + 175
4 UIKit 0x002b9a6e -[UIApplication sendAction:to:from:forEvent:] + 119
5 UIKit 0x003481b5 -[UIControl sendAction:to:forEvent:] + 67
6 UIKit 0x0034a647 -[UIControl(Internal) _sendActionsForEvents:withEvent:] + 527
7 UIKit 0x003491f4 -[UIControl touchesEnded:withEvent:] + 458
8 UIKit 0x002de0d1 -[UIWindow _sendTouchesForEvent:] + 567
9 UIKit 0x002bf37a -[UIApplication sendEvent:] + 447
10 UIKit 0x002c4732 _UIApplicationHandleEvent + 7576
11 GraphicsServices 0x01891a36 PurpleEventCallback + 1550
12 CoreFoundation 0x00f3d064 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 52
13 CoreFoundation 0x00e9d6f7 __CFRunLoopDoSource1 + 215
14 CoreFoundation 0x00e9a983 __CFRunLoopRun + 979
15 CoreFoundation 0x00e9a240 CFRunLoopRunSpecific + 208
16 CoreFoundation 0x00e9a161 CFRunLoopRunInMode + 97
17 GraphicsServices 0x01890268 GSEventRunModal + 217
18 GraphicsServices 0x0189032d GSEventRun + 115
19 UIKit 0x002c842e UIApplicationMain + 1160
20 MusicPlayer 0x00001b90 main + 102
21 MusicPlayer 0x00001b21 start + 53
22 ??? 0x00000001 0x0 + 1
)
terminate called after throwing an instance of 'NSException'
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 218.170.49.46
1F:→ timTan:没错,实机才行。 05/27 14:00
2F:→ iwayne:谢啦... 看来要花99美金了~ 05/27 19:36