【问题标题】:Why does testing an app on an iPhone in Xcode 5/iOS 7 crash with calls to NSLog?为什么在 Xcode 5/iOS 7 中测试 iPhone 上的应用程序会因调用 NSLog 而崩溃?
【发布时间】:2013-09-25 22:19:20
【问题描述】:

我已经在 Xcode 5 中完成了为 iOS 7 调整我的应用程序,并且它在模拟器中测试良好(适用于 iOS 7 和 6.1)。在部署进行测试之前,我已经从 Xcode 5 在我的 iPhone 上运行了几次,但应用程序经常崩溃并显示错误消息:

error: failed to launch 'app name/path' -- failed to get the task for process ####

我将其范围缩小到 NSLog 调用。这在使用 iOS 6 SDK 之前从未发生过。有谁知道为什么会这样?在应用程序中包含一些 NSLog 是否不是一种好习惯(即使用于向用户控制台报告错误/警告)?

【问题讨论】:

  • 我们到处使用 NSLog(通过 DLog),它在 Xcode 5 中运行良好。

标签: iphone debugging testing ios7 xcode5


【解决方案1】:

调用 NSLog 应该没有问题。

清理派生数据和更改我的配置文件对我很有帮助。

试试看这个帖子:Xcode 5: failed to get the task for process

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2017-06-06
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-11-13
    • 1970-01-01
    相关资源
    最近更新 更多