objective-c - 我的应用崩溃了,但是可以在模拟器上运行

标签 objective-c logging crash ios-simulator

我将我的应用程序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

有没有办法来解决这个问题?
谢谢

最佳答案

好像您要将nil传递给initFileURLWithPath:。我将需要查看一些代码来找出原因。

关于objective-c - 我的应用崩溃了,但是可以在模拟器上运行,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23724792/

相关文章:

java - 使用 jboss/wildfly 10 进行 SLF4J 日志记录

python - 获取当前(或基本)python 日志记录配置作为字典

Android 应用程序在启动时崩溃

macos - Android Studio 在 Mac 上意外退出

Objective-C 对字符串值的反编译保护

ios - 向 ActionSheet 添加按钮时出现 NSInvalidArgumentException

ios - 子类化 UITableViewCell & [tableView dequeueReusableCellWithIdentifier :CellIdentifier]

python - Django 日志记录项目和应用程序命名空间

iphone - 内存泄漏导致应用崩溃

iphone - 如何制作 "infinite"UIPickerView?