• 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
Does compile order matter for Swift files?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Does compile order matter for Swift files?


  • Subject: Does compile order matter for Swift files?
  • From: Steve Christensen <email@hidden>
  • Date: Fri, 23 Jun 2017 06:02:22 -0700

Xcode 8.3.1

So I decided to start working on an app project written in Swift so I can get
my feet wet after pretty well wrapping up a long-term Obj-C project. I had been
working on this new project for a week or so when I noticed something odd today.

At the current state of work there are about 40 compiler errors, scattered
across a few files as I'm getting stuff written and compilable. I ended up
needing to change something in the target settings, and while I was there my
slightly OCD side decided to reorder the Swift files alphabetically on the
Build Phases tab.

I go back to work, edit a couple of things in one of the Swift files, and
recompile. Now, magically, the errors tab shows 6 errors across two files,
neither of which had errors before and the errors don't refer to anything in
those files. All of the other errors are no longer reported nor are they
highlighted in the source files. Since there aren't that many files I was able
to put them back into the unsorted order and then I got all my errors back.

Has anybody seen this before?

Thanks,
Steve

 _______________________________________________
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: Does compile order matter for Swift files?
      • From: Quincey Morris <email@hidden>
  • Prev by Date: Re: Positioning a UILabel over a UIScrollView
  • Next by Date: Where do I find Xcode 4.6 Mountain_Lion offline DocSets ?
  • Previous by thread: Re: Positioning a UILabel over a UIScrollView
  • Next by thread: Re: Does compile order matter for Swift files?
  • Index(es):
    • Date
    • Thread