2014-05-18 220 views
0

我更新了我的應用程序,Dart Clicker到版本1.1的一些錯誤修復,當我點擊開始按鈕它崩潰。我看着使用iPhone配置實用程序的崩潰日誌,它顯示:我的應用程序崩潰,但在模擬器上工作

May 18 13:04:48 Maanits-5S DartClicker[414] <Error>: *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[NSURL initFileURLWithPath:]: nil string parameter' 
     *** First throw call stack: 
     (0x18bdfaf50 0x1983041fc 0x18bdfae90 0x18c8ef180 0x18c8ef0ec 0x1000077d4 0x18ec786b4 0x10000a4c4 0x18edc4670 0x18edc43f4 0x18ee43194 0x18ee430cc 0x18eebb614 0x18eeb9a9c 0x18edf90c8 0x18edf905c 0x18ede2538 0x18edf8a5c 0x18edf86f0 0x18edf3388 0x18edc4b68 0x18edc2c58 0x18bdbb644 0x18bdba9a0 0x18bdb8c38 0x18bcf9c20 0x1919e1c0c 0x18ee2afdc 0x10000a834 0x1988f7aa0) 
    May 18 13:04:48 Maanits-5S ReportCrash[416] <Notice>: ReportCrash acting against PID 414 
    May 18 13:04:48 Maanits-5S backboardd[31] <Error>: HID: The 'Passive' connection 'AdSheet' access to protected services is denied. 
    May 18 13:04:48 Maanits-5S limitadtrackingd[164] <Warning>: Not scheduling a new BTA job; keeping previously scheduled job should run after 82700s from now when the network is available. 
    May 18 13:04:48 Maanits-5S ReportCrash[416] <Notice>: Formulating crash report for process DartClicker[414] 
    May 18 13:04:48 Maanits-5S com.apple.launchd[1] (UIKitApplication:DartClicker.DartClicker[0x6233][414]) <Warning>: (UIKitApplication:DartClicker.DartClicker[0x6233]) Job appears to have crashed: Abort trap: 6 
    May 18 13:04:48 Maanits-5S backboardd[31] <Warning>: Application 'UIKitApplication:DartClicker.DartClicker[0x6233]' exited abnormally with signal 6: Abort trap: 6 
    May 18 13:04:48 Maanits-5S ReportCrash[416] <Notice>: Saved crashreport to /var/mobile/Library/Logs/CrashReporter/DartClicker_2014-05-18-130448_Maanits-5S.ips using uid: 0 gid: 0, synthetic_euid: 501 egid: 0 

有沒有辦法解決這個問題?
謝謝

回答

0

看起來像你通過零至initFileURLWithPath:。我需要看一些代碼來找出原因。

+0

我看着它,它的工作。謝謝 – codegirl

+0

我剛剛有一個問題:當我的應用程序在應用程序商店但它在模擬器上正常工作時出現此錯誤,所以有沒有方法來測試它而不提交它,因爲它已經在模擬器上工作? – codegirl

+0

@ MadMan30模擬器與實際設備之間存在一定差異。有些比其他更明顯,比如相機和加速度計。有些並不明顯,這就是蘋果鼓勵開發者在真實設備上試用他們的應用的原因。不幸的是,如果你沒有iOS設備,那麼你很幸運,直到你獲得一臺設備。也許你有一個朋友可以借用?我希望這能回答你的問題。 – vegather

相關問題