如何调试旧版Mac OS X的应用程序? [英] How do you debug an app for an older version of Mac OS X?

查看:182
本文介绍了如何调试旧版Mac OS X的应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一款在OS X 10.8机器上使用Xcode 4.6的应用程序。应用程序部署目标设置为10.6,这是我们需要支持的。但是,当我将应用程序归档(编译,链接和嵌入资源+框架)并将其部署(也就是复制)到10.6测试机器时,它会崩溃并出现通用的分段错误。

I am developing an app using Xcode 4.6 on an OS X 10.8 machine. The app deployment target is set to 10.6, which is what we need to support. But when I archive the app (compile, link and embed resources+frameworks) and deploy (aka copy) it to the 10.6 test machine, it crashes with a generic Segmentation fault. It works fine on 10.7.

我无法在旧版Mac上的Xcode中编译项目,因为该应用程序是使用较新的编译器构建的(它使用ARC,隐式属性综合,新的Objective-C文字语法等)。它也不会键入检查,因为基本SDK是10.8,它引用了10.6机器上的编译器不知道的10.8个标记。

I can't compile the project in Xcode on the older Mac because the app is built using the newer compiler (it uses ARC, implicit property synthesis, the new objective-c literal syntax, etc.). It also wouldn't type check because the base SDK is 10.8 and it references some 10.8 tokens which the compiler on the 10.6 machine doesn't know about.

如何去调试应用程序?

推荐答案

我不以任何方式与这家公司/软件有关联,但 Deploymate 是一款付费应用程序,它可以扫描您的应用程序的SDK使用情况,并告诉您何时调用不可用的选择器和API在较旧的OS版本上。这可以帮助您追踪与API使用有关的异常和崩溃。

I'm not affiliated with this company/software in any way, but Deploymate is a paid app which can scan your app for SDK usage and tell you when you are calling selectors and APIs that are unavailable on older OS versions. This can help you track down exceptions and crashes relating to API usage.

这篇关于如何调试旧版Mac OS X的应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆