【问题标题】:Parse issue expected expression解析问题预期表达式
【发布时间】:2015-04-23 23:26:47
【问题描述】:

我被这个错误难住了。 XCTAssertNotNil 自动完成,代码似乎微不足道。 “解析问题”似乎很奇怪,其中有3个。

我尝试显示隐形以找到任何奇怪的空间和东西,但什么也找不到。

我在其他测试中使用 Specta/Xpecta/OCMock。使用 Cocoapods

#import <XCTest/XCTest.h>

@interface SPRecipientDataViewModelTests : XCTestCase
@end

@implementation SPRecipientDataViewModelTests

- (void)testHelloNotNil {
    XCTAssertNotNil(@"hello", @"hello is nil");
}

【问题讨论】:

    标签: objective-c xctest expected-exception


    【解决方案1】:

    看起来这里的问题是 Specta。看起来我正在使用它的旧版本。更新到最新的 Specta 解决了这个问题。看起来和 XCTest 有冲突

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2020-07-11
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多