• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Couldn't compile a Swift enum test
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Couldn't compile a Swift enum test
      • From: Quincey Morris <email@hidden>
  • Prev by Date: Did something happen with developer.apple.com?
  • Next by Date: Re: Couldn't compile a Swift enum test
  • Previous by thread: Re: Did something happen with developer.apple.com?
  • Next by thread: Re: Couldn't compile a Swift enum test
  • Index(es):
    • Date
    • Thread