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

  • SEARCH
  • Home
  • 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 3851280
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T17:08:17+00:00 2026-05-19T17:08:17+00:00

TL;DR Version : This question has arisen due to the fact that I have

  • 0

TL;DR Version:

This question has arisen due to the fact that I have multiple frameworks (which I have built) and a client project that uses said frameworks. Now, when I open up the client project and try to debug into the framework, it doesn’t work.

However, if I have the project associated with the framework open, then debugging appears to work (though there are some weird issues with breakpoints I don’t see being triggered).

I have looked at Apple’s docs, and perhaps the answer is buried there somewhere, but I couldn’t find it on a skim of the Xcode Debugging Guide.

Long Version:

The reason this question is important to me is that a coworker and I had a disagreement about how headers are imported in the frameworks we build.

I have a tendency to use framework headers (with client apps) in the fashion:

#import "FrameworkA/HeaderA.h"
#import "FrameworkB/HeaderB.h"

He, on the other hand, favors importing the framework headers (with client apps) like this:

#import "HeaderA.h"
#import "HeaderB.h"

and specifying the header search paths in the build target of the client application.

Complicating matters further is the fact that some of these frameworks have interdependencies. For example, FrameworkB has headers from FrameworkA referenced in his format:

#import "HeaderA.h"

His argument for doing this is that debugging only works if we import headers this way. It seems dubious to me that there would be a relation between header importing style and debugging, but I am not really certain how XCode chooses the file to link to during debugging, hence the question.

Thanks in advance for any assistance with this query.

  • 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-05-19T17:08:17+00:00Added an answer on May 19, 2026 at 5:08 pm

    you add project references to the target, and make sure Xcode knows where to find the debug symbols.

    #import <FrameworkA/HeaderA.h>
    

    that’s the way to go (for internal and external declarations). the reason? the other approach is more likely to cause issues as libraries evolve. the additional qualification disambiguates any case (unless of course there are two FrameworkA/s in your search path), it’s best to qualify the file explicitly now, rather than when your clients tell you they cannot use your library with other libraries, or that they can only use them in some conditions. then you have to go fix the issues and reship (this stuff has a way of happening at inconvenient times =p). it’s one simple measure to ensure you’ve developed a robust interface.

    perhaps the most important part that people overlook is the location of the products: use a customized central build location for your targets — many people use the default location, which is by the xcodeproject. otherwise, Xcode may not be able to locate debug information.

    finally, debugging complex projects in Xcode can be quite… let’s call it ‘problematic’. So don’t expect the debugging experience to be perfect, even if you’ve configured everything correctly. all the more reason to integrate assertions and unit tests into your development cycle early on with Xcode. truth is, the debugger may be useless no matter how hard you try – this is not a new issue. hopefully LLDB will improve our debugging experiences.

    good luck

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

Sidebar

Related Questions

This is the same question for older version of Scala, but they say that
I know that this question has been asked many times before in different guises
I know this question has been asked many times, but I have not been
I know that this question has been asked previously, but before you give me
The title of this question is a very rough version of the query that
I realize that this question has been asked many times, but I've yet to
I asked another version of this question on the gamedev.SE site earlier today but
This is basically a rails 3 version of this question . Short of parsing
This question Add a version number to the title of a LaTeX document spurred
Version Dependent Some of the answers to this question deal with older versions of

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.