Kiwi 测试在 xcode 7 中不起作用
Kiwi tests are not working in xcode 7
我的 xcode7 项目中有这段代码:
SPEC_BEGIN(TTests)
describe(@"Math", ^{
it(@"is pretty cool", ^{
[[theValue(1) should] equal:theValue(1)];
});
});
SPEC_END
我在 运行 这个测试时遇到这个错误:
-[TTests Math_IsPrettyCool] 失败:'Math, is pretty cool' [FAILED],无效参数不满足: !stayUp || CLClientIsBackgroundable(内部->fClient)
有谁知道如何解决这个问题?
原来我的项目中有这段代码:
CLLocationManager *manager = [CLLocationManager alloc] init];
[locationManager setAllowsBackgroundLocationUpdates:YES];
当我删除此代码时,kiwi 测试表明可以正常工作。
我的 xcode7 项目中有这段代码:
SPEC_BEGIN(TTests)
describe(@"Math", ^{
it(@"is pretty cool", ^{
[[theValue(1) should] equal:theValue(1)];
});
});
SPEC_END
我在 运行 这个测试时遇到这个错误: -[TTests Math_IsPrettyCool] 失败:'Math, is pretty cool' [FAILED],无效参数不满足: !stayUp || CLClientIsBackgroundable(内部->fClient)
有谁知道如何解决这个问题?
原来我的项目中有这段代码:
CLLocationManager *manager = [CLLocationManager alloc] init];
[locationManager setAllowsBackgroundLocationUpdates:YES];
当我删除此代码时,kiwi 测试表明可以正常工作。