22

为什么我的所有崩溃日志都显示匿名用户,当他们都有一个 testflight 帐户并且我在测试飞行初始化中设置 uuid 时?

在我的单身人士中:

#define kTestFlightTest 1

在应用程序初始化中:

[TestFlight takeOff:kTestFlightToken];
#ifdef kTestFlightTest
    [TestFlight setDeviceIdentifier:[[UIDevice currentDevice] uniqueIdentifier]];
#endif
4

3 回答 3

57

刚刚通过电子邮件向 TestFlight 发送了有关它的信息,并得到了一个具有魅力的解决方案的回复。UDID 代码:

[TestFlight setDeviceIdentifier:[[UIDevice currentDevice] uniqueIdentifier]];

需要先去:

[TestFlight takeOff:kTestFlightToken];

交换这些,一切正常。:-D

我已经通过电子邮件回复说谢谢,但这应该是他们在文档中真正提到的内容(如此简单,但并不那么明显)。

编辑:此答案仅适用于iOS 7之前的 iOS 版本。正如评论中所述,iOS 7[[UIDevice currentDevice] uniqueIdentifier]完全删除。有一些方法可以NSUUID从 iOS 6 制作 UUID,但我不相信这些方法可以与 TestFlight 一起使用,因为它们是由每个应用程序的用户设备创建的,并且无法知道它在外部是什么。我敢肯定,TestFlight 的男女老少都在寻找一种方法来跟踪用户是谁,但在那之前,要习惯于看到“匿名用户”。

于 2012-06-14T18:22:49.663 回答
3

我还在我的代码中添加了相同的内容,例如

[TestFlight setDeviceIdentifier:[[UIDevice currentDevice] uniqueIdentifier]];

在起飞之前,但在 ios 5 中不推荐使用此方法,因此我添加了以下方法

[TestFlight setDeviceIdentifier:[NSString stringWithFormat:@"%@",[[UIDevice currentDevice] identifierForVendor]]];

But still i am getting anonymous issues. i have written it to Testflight support but no luck yet. for two devices it shows user device name properly but not working on other tester's device.

于 2012-10-22T08:06:45.103 回答
0

I've just performed some tests. Clearly there is no proper way to get the UDID anymore as @Danny Parker mentioned in a comment above. To test this I hardcoded my UDID in the app and submitted it to TestFlight. Any checkpoints or feedback resulted as messages from me. No more anonymous checkpoints and feedback. Obviously this is useless as I need each tester's UDID to see what checkpoints they hit. I guess TestFlight will have to find a different way to associate devices to logs.

于 2013-02-20T15:52:30.667 回答