Create an account

Very important

  • To access the important data of the forums, you must be active in each forum and especially in the leaks and database leaks section, send data and after sending the data and activity, data and important content will be opened and visible for you.
  • You will only see chat messages from people who are at or below your level.
  • More than 500,000 database leaks and millions of account leaks are waiting for you, so access and view with more activity.
  • Many important data are inactive and inaccessible for you, so open them with activity. (This will be done automatically)


Thread Rating:
  • 643 Vote(s) - 3.5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Including headers from custom framework in XCode

#1
**Am I supposed to adjust `FRAMEWORK_SEARCH_PATHS` or `HEADER_SEARCH_PATHS` when I add custom frameworks to the project?**

I have `MainProject.xcodeproject` that links `SomeFramework.framework` that's simply dragged from "Products" in `SomeFramework.xcodeproject` to "Link with Binary Libraries" build phase in main project.

Framework contains all required headers in its `Headers` directory. However, in my project I can't simply use:

#import <SomeFramework.h> // I'm pretty sure this file exists

to include this header. Build fails "No such file or directory". Compiler flags include `-F…/SomeFramework/build/Release` and that directory contains framework with `Headers` directory symlink in it.

(BTW: this is for Mac OS X. I don't care about iPhone.)
Reply

#2
Just adding the path to the directory containing the framework to FRAMEWORK_SEARCH_PATHS will work. Unless it's a typo, your problem seems to be

#import <SomeFramework.h>

which should be

#import <SomeFramework/SomeFramework.h>
Reply



Forum Jump:


Users browsing this thread:
1 Guest(s)

©0Day  2016 - 2023 | All Rights Reserved.  Made with    for the community. Connected through