Couldn't compile a Swift enum test
Couldn't compile a Swift enum test
- Subject: Couldn't compile a Swift enum test
- From: Daryle Walker <email@hidden>
- Date: Mon, 27 Feb 2017 06:50:43 -0500
Within the past 24 hours:
- 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.)
Sent from my iPhone
_______________________________________________
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