Tag: 猕猴桃

在猕猴桃(iOS)嘲笑代表的期望

问题的简短版本: 以下Kiwi / iOS模拟期望有什么问题? [[mockDelegate should] receive:@selector(connectionDidSucceedWithText:andStatus:) withArguments:[testString1 stringByAppendingString:testString2],theValue(value),nil]; 长版问题: 我正在尝试在猕猴桃,iOS的一个简单的类处理NSConnection的testing。 为了testing这个类是如何处理NSConnection的callback函数的,我发送NSConnection的委托方法。 我有一个class级的代表,把数据发回给我的class级。 为了testing我的类,我必须注入一个模拟委托,然后检查我所需的方法被调用。 就那么简单 :) 我的代码为猕猴桃testing是: //Some ivars declared elsewhere: testString1 = @"asd323/4 d14"; testString2 = @"as98 /2y9h3fdd14"; testData1 = [testString1 dataUsingEncoding:NSUTF8StringEncoding]; testData2 = [testString2 dataUsingEncoding:NSUTF8StringEncoding]; mockURLRespons = [NSHTTPURLResponse mock]; int value = 11111; id mockDelegate = [KWMock mockForProtocol:@protocol(SharepointConnectionDelegate)]; communicator = [[SharepointCommunicator alloc] init]; […]

目标`fubarTests`(iOS 4.3)的平台与`Kiwi(2.2.1)`不兼容,它具有iOS 5.0的最低要求

我似乎无法通过这个错误,不知道为什么。 我正在运行xcode 4.6.3项目的ios部署目标说iOS 6.1的基础sdk是6.1 我的Podfile是: # Podfile platform :ios target :fubarTests, :exclusive => true do pod 'Kiwi' end 当我尝试从命令行运行pod安装时,我得到有关目标是iOS 4.3的错误。 为什么它认为我的目标是4.3,我该如何改变它?

无法在Xcode 6 Beta 5上运行testing

我有一个使用Kiwitesting框架(我从cocoapods安装的最新版本2.3.0)的iOS项目。 起初,当我运行testing时,我收到一个错误,它找不到XCTest.h。 所以我遵循这个答案的build议: https : //stackoverflow.com/a/24651704/1082326和问题消失了。 然而,不同的问题出现了,现在当我尝试运行testing时,模拟器select“iPhone 5(8.0)”,然后我得到以下错误: IDEBundleInjection.c: Error 3587 loading bundle '/Users/ifeins/Library/Developer/Xcode/DerivedData/teacup- aaenoytmfpqpgmaebqotyfrutlxy/Build/Products/Debug-iphonesimulator/teacup-tests.octest': The bundle “teacup-tests.octest” couldn't be loaded because it is damaged or missing necessary resources. DevToolsBundleInjection environment: XCInjectDiagnostics: (null) XCInjectBundleInto: /Users/ifeins/Library/Developer/Xcode/DerivedData/teacup- aaenoytmfpqpgmaebqotyfrutlxy/Build/Products/Debug-iphonesimulator/valet.app/valet XCInjectBundle: /Users/ifeins/Library/Developer/Xcode/DerivedData/teacup- aaenoytmfpqpgmaebqotyfrutlxy/Build/Products/Debug-iphonesimulator/teacup-tests.octest TestBundleLocation: /Users/ifeins/Library/Developer/Xcode/DerivedData/teacup- aaenoytmfpqpgmaebqotyfrutlxy/Build/Products/Debug-iphonesimulator/teacup-tests.octest TMPDIR: /Users/ifeins/Library/Developer/CoreSimulator/Devices/BC59F7AC-9D3E-4FFC-9726- 97911AA597A6/data/Containers/Data/Application/E1D4A3F0-C06B-485D-BF87-9F5EA70D974A/tmp DYLD_LIBRARY_PATH: /Users/ifeins/Library/Developer/Xcode/DerivedData/teacup- aaenoytmfpqpgmaebqotyfrutlxy/Build/Products/Debug-iphonesimulator DYLD_INSERT_LIBRARIES: /Applications/Xcode6-Beta5.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/PrivateFra meworks/IDEBundleInjection.framework/IDEBundleInjection DYLD_FRAMEWORK_PATH: /Users/ifeins/Library/Developer/Xcode/DerivedData/teacup- aaenoytmfpqpgmaebqotyfrutlxy/Build/Products/Debug-iphonesimulator DYLD_FALLBACK_LIBRARY_PATH: […]