Re: Proper way to set up constants when building an iOS framework
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