• 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
Re: Using Configurations to build a single target for multiple platforms?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Using Configurations to build a single target for multiple platforms?


  • Subject: Re: Using Configurations to build a single target for multiple platforms?
  • From: Quincey Morris <email@hidden>
  • Date: Sun, 31 Jan 2016 14:57:37 -0800
  • Feedback-id: 167118m:167118agrif8a:167118sTiLlsHGj2:SMTPCORP

On Jan 31, 2016, at 14:38 , Jens Alfke <email@hidden> wrote:

It is. I was told to use this approach by an Xcode engineer.

I look forward to using it.

The reason it’s a big deal is because of the way access controls work in Swift: ‘private’ is per-source-file, and ‘internal’ is per-module, with nothing in between. That makes it hard to have “private” behavior between sub-groupings of classes within a target. (In Objective-C you control this by having multiple .h files, and enforce rules about who’s allowed to #import what.)

For Swift, the equivalent would be multiple modules, but you can only get that with multiple frameworks. Creating embedded private frameworks is trivial in the current Xcode, *except* when you have multiple platforms using shared source files, which means shared ‘import’ module names, and *that* is an ugly manual process.

Multi-platform targets make this difficulty go away. I hope Xcode provides a streamlined way of doing this (i.e. one that doesn’t involve a trip to Build Settings, but provides a simple choice in — say — Info).

 _______________________________________________
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

References: 
 >Using Configurations to build a single target for multiple platforms? (From: Jens Alfke <email@hidden>)
 >Re: Using Configurations to build a single target for multiple platforms? (From: Jens Alfke <email@hidden>)
 >Re: Using Configurations to build a single target for multiple platforms? (From: Quincey Morris <email@hidden>)
 >Re: Using Configurations to build a single target for multiple platforms? (From: Jens Alfke <email@hidden>)

  • Prev by Date: Re: Using Configurations to build a single target for multiple platforms?
  • Previous by thread: Re: Using Configurations to build a single target for multiple platforms?
  • Next by thread: Swift portability
  • Index(es):
    • Date
    • Thread