• 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: Proper way to set up constants when building an iOS framework
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Proper way to set up constants when building an iOS framework


  • Subject: Re: Proper way to set up constants when building an iOS framework
  • From: Alex Zavatone <email@hidden>
  • Date: Tue, 19 Apr 2016 13:13:46 -0400

On Apr 18, 2016, at 6:13 PM, Jens Alfke wrote:

>
>> On Apr 18, 2016, at 2:03 PM, Alex Zavatone <email@hidden> wrote:
>>
>>> Is Constants.h in the framework’s Headers directory, next to the main framework header file?
>>
>> Where in the project?  In target framework's Build Phases Headers section?
>
> Is this in a different project that uses your framework? If so, it sounds like Constants.h didn’t get built into the framework’s Headers directory. So yeah, check that the header is marked as Public for the target that builds the framework.
>

No.  I'm simply trying to find out how to make my constants.h (which has the constants.m as well) visible to all of the classes in my framework, just as the .pch would be visible to all of the classes within an iOS app.

I just tried adding the constants.h file to the public headers of in the build settings of the framework.  That doesn't work.  Build errors for undeclared identifiers for the constants.
I just tried importing the constants.h into my framework.h.  That doesn't work. Build errors for undeclared identifiers for the constants.





_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


  • Follow-Ups:
    • Re: Proper way to set up constants when building an iOS framework
      • From: Jens Alfke <email@hidden>
References: 
 >Proper way to set up constants when building an iOS framework (From: Alex Zavatone <email@hidden>)
 >Re: Proper way to set up constants when building an iOS framework (From: Charles Jenkins <email@hidden>)
 >Re: Proper way to set up constants when building an iOS framework (From: Alex Zavatone <email@hidden>)
 >Re: Proper way to set up constants when building an iOS framework (From: Jens Alfke <email@hidden>)
 >Re: Proper way to set up constants when building an iOS framework (From: Charles Jenkins <email@hidden>)
 >Re: Proper way to set up constants when building an iOS framework (From: Alex Zavatone <email@hidden>)
 >Re: Proper way to set up constants when building an iOS framework (From: Jens Alfke <email@hidden>)
 >Re: Proper way to set up constants when building an iOS framework (From: Alex Zavatone <email@hidden>)
 >Re: Proper way to set up constants when building an iOS framework (From: Jens Alfke <email@hidden>)

  • Prev by Date: Re: Using protocol extension to dismiss keyboard on outside tap
  • Next by Date: Re: Proper way to set up constants when building an iOS framework
  • Previous by thread: Re: Proper way to set up constants when building an iOS framework
  • Next by thread: Re: Proper way to set up constants when building an iOS framework
  • Index(es):
    • Date
    • Thread