[問題] MusicPlayer不能在模擬器上模擬嗎?
請教各位先進
小弟最近參考網路上的寫法,寫了一個讀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
→
05/27 14:00, , 1F
05/27 14:00, 1F
→
05/27 19:36, , 2F
05/27 19:36, 2F
MacDev 近期熱門文章
PTT數位生活區 即時熱門文章