简体   繁体   English

OSX-如何调试分布式版本?

[英]OSX - How to debug distributed builds?

I sent my first desktop OSX app out to a small circle of testers today. 今天,我将我的第一个桌面OSX应用程序发送给了一小部分测试人员。 One user cannot get past the splash screen. 一个用户不能越过启动屏幕。

I am wondering how one might debug something like this? 我想知道如何调试这样的东西? Would I somehow write NSLogs to a file? 我会以某种方式将NSLogs写入文件吗? Or does OS X have some sort of utility? 还是OS X有某种实用程序? I assume I need some sort of logging capability, right? 我假设我需要某种日志记录功能,对吗?

You can write your logs to file quite easily (not via NSLog , but just plain writing NSString to disk via writeToFile if you want to). 您可以很容易地将日志写入文件(不是通过NSLog ,而是如果需要的话,只需通过writeToFileNSString简单地写入磁盘)。 You can also have your logs automatically uploaded to your server if you have one using NSURLConnection with a POST . 如果您将NSURLConnectionPOST一起使用,则还可以将日志自动上传到服务器。

I prefer the latter because it requires little intervention from the testers, and happens automatically. 我更喜欢后者,因为它几乎不需要测试人员的干预,并且会自动发生。

Distribution builds are not ment to be debugged or else it would have been development build. 分发版本不可调试,否则将是开发版本。 You can how ever sync your device with itunes and then get the crash report(if you want to know the source of crash).from appdata. 您可以通过appdata将设备与iTunes同步,然后获取崩溃报告(如果您想知道崩溃的来源)。

reffer to this link . 引用此链接 if you want to debug make a debug build with development provisoning. 如果要调试,请通过开发证明进行调试。 in your case ask the tester to send you the crash report and you keep the ipa or app file safe you will need it to read the crash report. 在您的情况下,请测试人员将崩溃报告发送给您,并且您将ipa或应用文件保存为安全文件,则需要它来读取崩溃报告。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM