-
Notifications
You must be signed in to change notification settings - Fork 140
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Custom matchers fails to compile using Xcode 7.3 #381
Comments
Hmm... even more interesting. I moved all of the code from the |
Hey @PeqNP, I think I have an idea why you're experiencing this. With recent Cedar versions, Xcode tries to also build a Swift-compatible "module" version of Cedar, which can only include non-C++ components. This change means that all matchers (built-in and custom) need to be wrapped in an |
That solved the issue! Using the example in the Wiki, I ended up changing the code to look like this:
Thank you for the response! |
Note that this was an unintentional breaking change. 0b92d9e should fix this such that custom matchers won't need the guard to be manually inserted anymore. |
I'm having issues importing custom matchers. The custom matcher fails to compile after I installed Xcode 7.3.
My custom matcher file looks, and is named, almost exactly like the example one this project provides at https://github.com/pivotal/cedar/wiki/Configuration#adding-your-own-custom-matchers.
I believe the issue is due to Xcode attempting to compile the
CustomMatchers.h
header as a C file rather than a C++ file. I've tried setting theIdentity and Type
toC++ Header
(as well as other options), but no dice.Specifically, the error is:
Unknown type name 'namespace'
. This is indicative of the file attempting to be compiled as a C file, rather than C++.Any advice would be greatly appreciated. Thank you!
The text was updated successfully, but these errors were encountered: