gpt4 book ai didi

ios - Kiwi 怎么处理?无法运行首次测试(通过 Cocoapods 安装)

转载 作者:可可西里 更新时间:2023-11-01 06:19:41 24 4
gpt4 key购买 nike

我正在尝试运行我的第一个 Kiwi 测试。我使用适用于 iOS 的 Xcode 5 和 Kiwi 2.0(通过 Cocoapods 安装)。我写了一些测试,但是当我在控制台中按“cmd+u”时,输出如下所示:

日志

2013-09-25 19:17:04.347 KiwiPro[36355:a0b] Cannot find executable for CFBundle 0xc1665d0 </Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.0.sdk/System/Library/AccessibilityBundles/CertUIFramework.axbundle> (not loaded)
Test Suite 'All tests' started at 2013-09-25 17:17:04 +0000
Test Suite 'All tests' finished at 2013-09-25 17:17:04 +0000.
Executed 0 tests, with 0 failures (0 unexpected) in 0.000 (0.001) seconds

测试:

#import "Kiwi.h"
#import "Person.h"

SPEC_BEGIN(MySpec)

describe(@"When Person born", ^{
Person *person = [Person new];
it(@"Should be age of 0", ^{
[[theValue([person age]) should] equal:theValue(0)];
});
});

SPEC_END

这是Podfile

platform :ios, '6.0'

target :KiwiProTests, :exclusive => true do
pod 'Kiwi', '~> 2.0'
end

我认为测试没有编译。在下面的链接中,我的 Kiwi 项目和测试可用。

Dropbox 上的项目

https://dl.dropboxusercontent.com/u/11493275/Tmp/KiwiPro.zip

提前谢谢你。

最佳答案

今天我也遇到了这种情况。使用 Xcode 5 时,您必须将单元测试目标设置为 OCUnit,或者您可以轻松地在 Kiwi/XCTest 中更改 pod。 p>

关于ios - Kiwi 怎么处理?无法运行首次测试(通过 Cocoapods 安装),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19011366/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com