Re: Couldn't compile a Swift enum test
Re: Couldn't compile a Swift enum test
- Subject: Re: Couldn't compile a Swift enum test
- From: Quincey Morris <email@hidden>
- Date: Mon, 27 Feb 2017 14:01:23 -0800
- Feedback-id: 167118m:167118agYYG0F:167118sAQZwEZqxP:SMTPCORP
On Feb 27, 2017, at 03:50 , Daryle Walker <email@hidden> wrote:
- Have a Mac app with a framework - Writing unit tests for framework, going through the app - Have a Swift enum with 4 regular case and one with 2 associated values - Tried making unit tests, but get complaints from JIT compiling system about not finding equality - Looked up and found out that I have to define equality myself, since at least one enum case has associated values - Did equality in extension in same file as the enum - Sometimes it works, sometimes I still get the same errors - I thought I finally fixed it by defining the extension in the test file.... - But it sometimes complains about duplicate protocol definitions - Sometimes I get both sets of complaints, although they're contradictory - When my code compiles and tests anyway, does that mean the problem test file was skipped? Or is my file actually fine and it's Xcode's JIT compiling system (Source Kit?) that's fried? (Since Xcode 8, Source Kit goes wrong and/or takes exponential time.)
You’re kinda going to have to pick one question at a time. :)
What does “JIT compiling system” mean? What are the error messages? Do the error messages occur for different targets? You might have to look at the build transcripts to find out what build steps produced the errors, rather than relying on the placement of the errors in the source code file margins.
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden