【发布时间】:2012-06-01 05:17:01
【问题描述】:
有没有办法知道程序是否在开发环境中运行?我正在使用 Flurry Analytics 并希望向其传递不同的应用程序 ID,这样数据就不会在开发过程中被我的测试弄脏。
我想要的是这样的:
Boolean isDevEnv = .... (is this a test in the simulator or device,
OR is it a real user that downloaded the
app through the app store?)
if (isDevEnv)
[FlurryAnalytics startSession:@"firstAppId"];
else
[FlurryAnalytics startSession:@"secondAppId"];
需要明确的是,this 不是我想要的,因为我使用真实设备和模拟器进行测试。
【问题讨论】:
标签: objective-c ios