Xcode 6, XCTest, "Expected Expression"

I can no longer run my test suite from the moment I upgrade to Xcode 6. We use the Specta / Expecta / OCMock stack, but we have older tests that use Vanilla XCTest. I am in Cocoapods 0.34.0.rc2 , and XCTest.h seems to import very well.

Expected expression error

Expected expression error individual

+5
source share
1 answer

I have the same problem. This may not actually be related to CocoaPods 0.34.0.rc2 , as I also thought at the beginning and is a Specta problem.

Commenting on the code below, SpectaSupport.h fixes the build problem:

 #undef _XCTRegisterFailure #define _XCTRegisterFailure(condition, format...) \ ({ \ _XCTFailureHandler((id)self, YES, __FILE__, __LINE__, condition, @"" format); \ }) 

More here

0
source

Source: https://habr.com/ru/post/1202894/


All Articles