Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9219145
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T03:02:17+00:00 2026-06-18T03:02:17+00:00

I have code that I build into a framework. It is sometimes useful, when

  • 0

I have code that I build into a framework. It is sometimes useful, when debugging other project code relying on the framework, to instead build the source into the other project directly. The only issue is the way headers are referenced:

// Framework
#import <my_framework/my_widget.h>

// Source
#import "my_widget.h"

I could make a bunch of edits and go on my way, but I feel like there must be a clever solution to this, perhaps related to setting something for the Framework search path.

I’m curious about doing this in Xcode, though the raw command would also be useful.

Update

Despite some sensible advice, I’m having trouble getting this to work, so more explicit help would be great (and hopefully helpful to others).

// My framework source directory
/work/my_framework_project/source/widgets/my_widget.h
/work/my_framework_project/source/widgets/my_widget.m

// The framework that creates
/work/my_framework.framework/my_framework
/work/my_framework.framework/Headers/my_widget.h

// The project I'm debugging
/work/some_project/source/my_source.m

If I drop the framework into some_project, I refer to my header like this:

#import <my_framework/my_widget.h>

If I drop the reference to framework and add the source to the project, I need to do this, but don’t want to:

#import "my_widget.h"

Note that I do not import "my_framework/my_widget.h" — if that matters.

If I follow the first suggested answer, then I add this as a flag to the source files when I’m compiling them (currently by adding it in the “Compile Sources” area.

-I/work/my_framework.framework/Headers

This is not solving the issue of wanting to refer to the imports using the framework notation.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T03:02:18+00:00Added an answer on June 18, 2026 at 3:02 am

    though the raw command would also be useful

    Here it is:

    <COMPILER> -Imy_framework_dir <other options...>
    

    So you use the -I (uppercase ‘i’) flag for this (GCC or Clang style).

    Xcode supports this feature using the ‘user search header paths’ section on the ‘Build phases -> Compilation’ tab of your project.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a closed source project that is built on my open source framework.
I've seen it mentioned sometimes that Repository Pattern is built into Entity Framework Code
I'm developing a system, and I have build a code generator that emits a
i've implemented this OpenCV build into my iphone project: http://aptogo.co.uk/2011/09/opencv-framework-for-ios/ It builds successfully and
I want to have a seperate project that runs my server communication code in
I currently have a project that uses Entity Framework 4.1 for logging to a
We have an underlying .h file in our platform code that needs built differently
I have a Full and Lite applications that were built from the same code.
I have code that generates a List<string[]> variable but can't quite figure out how
I have code that looks more or less like the code below but it

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.