在运行应用程序测试时(即在设备上),我的OCUnit测试套件出现了一些问题.偶尔,我会收到一个似乎从OCUnit类抛出的棘手错误.我一直在试图查看添加到测试套件中的文件,但无法理解它.
我在设置测试目标时遵循了Apple文档并查看了其他教程,从而产生了以下目标(以及缩进的依赖项):
LogicTests
MyApp LogicTests
ApplicationTests MyApp
MyAppTesting ApplicationTests
最后一个(MyAppTesting)是我在设备上运行以启动测试套件的那个.
如上所述,测试无法启动有时会在控制台中抛出以下输出:
2010-11-17 12:02:48.537 VCCTesting[12018:307] *** Assertion failure in -[SenTestClassEnumerator init], /SourceCache/OCUnit/OCUnit-1685/SourceCode/SenTestingKit/SenTestClassEnumerator.m:137
2010-11-17 12:02:48.556 VCCTesting[12018:307] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'objc_getClassList returned more classes than it should have.'
*** Call stack at first throw:
(
0 CoreFoundation 0x30897ed3 __exceptionPreprocess + 114
1 libobjc.A.dylib 0x3002f811 objc_exception_throw + 24
2 CoreFoundation 0x30897d15 +[NSException raise:format:arguments:] + 68
3 Foundation 0x349f932f -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 62
4 SenTestingKit 0x20107c29 -[SenTestClassEnumerator init] + …Run Code Online (Sandbox Code Playgroud) 我正在尝试让我们的CI机器(运行Teamcity)在完成所有测试后上传和推广Chef cookbook,使其成为我们部署管道的适当部分.
但是,客户端无权上传cookbook,但我无法弄清楚如何调整ACL设置以使其工作.
$ sudo bundle exec knife spork upload teamcity --environment production
ERROR: You authenticated successfully to https://api.opscode.com/organizations/<my-org> as ci but you are not authorized for this action
Response: missing create permission
Run Code Online (Sandbox Code Playgroud)
我试过了(但失败了同样的错误):
ci在Opscode公司管理客户机的读取权限.sudo bundle exec knife upload cookbooks/teamcity),但失败了403我也试过只列出客户端(sudo bundle exec knife client list),但是失败了Response: missing create permission.
客户端和验证器密钥位于/etc/chef,但我有一个Knife配置<repo-path>/.chef/knife.rb(我正在尝试从上传<repo-path>).
我猜我需要设置一些权限,但是在新旧Opscode管理界面中进行了调整之后,我已经没有线索了.
是什么赋予了?
注意:我们使用的是Opscode Enterprise Chef版本.
使用Facebook iOS SDK 3.1.
当选择不允许"连接"到Facebook应用程序时,我被困在Facebook投掷"com.facebook.sdk error2".即使在重新安装我的应用程序后,我也会遇到错误.
重现步骤:
UIAlertView弹出的选项中选择"Not Now"=>我无法选择再次连接.
用户再次连接的唯一方法是从"设置"中删除她的Facebook帐户并再次添加.
这是Facebook SDK中的错误还是我错过了什么?
我显然已经按照授权教程进行了操作,并且在选择连接时一切正常(auth,发布内容).