• 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: How to use the ALTERNATE_PERMISSIONS_FILES build setting? -- SOLVED
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to use the ALTERNATE_PERMISSIONS_FILES build setting? -- SOLVED


  • Subject: Re: How to use the ALTERNATE_PERMISSIONS_FILES build setting? -- SOLVED
  • From: Bill Cheeseman <email@hidden>
  • Date: Sat, 27 Aug 2016 15:41:58 -0400

> On Aug 25, 2016, at 3:30 PM, Bill Cheeseman <email@hidden> wrote:
>
> Apple's Cocoa framework header files have permissions 644, or u+w,go-w,a+r. All of the third-party framework header files I have ever examined have permissions 755, or u+w,go-w,a+rX, instead -- meaning that the headers are marked as executable. A number of online commentaries say that all framework header files should have permissions 644, as Apple's do, because headers are not executable, and that makes sense to me.
>
> But I can't figure out how to configure the Xcode build settings for my own framework to accomplish this.

I stumbled upon the solution, mostly by trial and error. Set the ALTERNATE_MODE (Alternate Install Permissions) Deployment build setting to a-x, and set the ALTERNATE_PERMISIONS_FILES (Alternate Permisions Files) Deployment build setting to a list of your header files in this form: "${BUILT_PRODUCTS_DIR}/PFAssistive.framework/Headers/PFUIElement.h".

Given the example of Apple's Cocoa framework header files, I suggest that all developers of frameworks for macOS should do this.
 _______________________________________________
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: 
 >How to use the ALTERNATE_PERMISSIONS_FILES build setting? (From: Bill Cheeseman <email@hidden>)

  • Prev by Date: Re: command line tool & frameworks
  • Next by Date: Command 2, the Symbol Navigator. Do any of you use it?
  • Previous by thread: How to use the ALTERNATE_PERMISSIONS_FILES build setting?
  • Next by thread: command line tool & frameworks
  • Index(es):
    • Date
    • Thread