-
Notifications
You must be signed in to change notification settings - Fork 105
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
Undefined symbols for architecture x86_64 #202
Comments
This smells like a Swift bug. If optimizations are enabled for any of the targets involved, what happens if you turn them off? |
They were not enabled for Debug and I disabled them for Release; still not working. Are you able to reproduce the bug? Am I using the library correctly? It is the first time I try to use it. |
I created this sample project where the issue is isolated so that you can take a look at it - hope it helps |
Ah, wait, this is a command line tool? You can't import and use that kind of module without a test host like an enclosing application. The test is going to run outside of the context of the running application and so it makes sense it wouldn't have access to its symbols. Try testing a framework target instead. |
Notice, for example, that command line tools like Carthage keep testable logic in |
Ok, adding the files to the Test target as well solved the issue. Thanks for the hint! |
Version
0.7.1
git commit hash a687df108322bcd0c54b807dac4771be087e9774
Environment
MacOS X, console application
Description
Creating an extension to support
Arbitrary
on an enum results on build errors.Steps To Reproduce
Create in the code target an enum like this:
In the test target, create an extension to support Arbitrary:
Expected Result
It should compile and build correctly.
Actual Result
Additional Information
I am wondering why the syntax for
Gen<Player>.fromElementsOf([Player.one, Player.two])
is not Swift 3.0, since from what I can see on the repo, it has actually been updated and it should beGen<Player>.fromElements(of: [Player.one, Player.two])
. Apparently my project is configured to use Swift 3.0 though.The text was updated successfully, but these errors were encountered: