-
Notifications
You must be signed in to change notification settings - Fork 168
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
"Illegal instruction" with master version #66
Comments
You get this error when running the |
Yes. Or when running the |
@matto1990 Could you try finding the crash in Console.app like it is described here: realm/SwiftLint#583 (comment) Thanks. |
@TadeasKriz Se below:
|
It seems to me it has something to do with type inference. I guess you have properties without type declaration in some of the input files, is that correct? That means something like |
Yes. I have that for Currently, in the single source file which I'm using as an input, I have a protocol which describes the public interface and a class which implements that protocol. What I really want is for Cuckoo to provide a mock implementation of the protocol so I can inject that into other instances for unit testing. It seems to be picking up the implementing class as well and trying to mock that. I'll try splitting out the protocol and implementation into separate swift files to see if that fixes the issue. Thanks and I'll let you know how it goes. |
Wait. There should be a switch for Cuckoo to mock only protocols. Let me find its name. |
Here it is: https://github.com/SwiftKit/Cuckoo#--no-class-mocking . You just add |
Perfect. Thanks! I'll have a look at that later today and close this issue if it fixes the issues. |
I've not yet tried to mock that problem swift file yet, however, trying it on another file works perfectly in Swift 3. Thanks for the brilliant library! |
Thanks for the info, we're glad you like it! :) |
I am attempting to use the project with a Swift 3 app, which requires I use the
master
branch rather than the released version. Unfortunately, when following the installation instructions I get this error:The generator builds correctly before this error.
I am running 10.11.6 on a Macbook Retina Pro 15" 2014.
Thanks!
The text was updated successfully, but these errors were encountered: