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 8705063
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T03:15:41+00:00 2026-06-13T03:15:41+00:00

My application is not seeing source code for a library: If I Jump to

  • 0

My application is not seeing source code for a library:

  • If I “Jump to definition” on a library method, XCode takes me to the .h file but says there is no .cpp counterpart
  • When debugging, I see no source code and most of the call-stack is missing for the library:
    enter image description here
  • I have made sure “Show disassembly when debugging” is UNchecked

I built the library as DEBUG and then packaged up the headers+.a file into a SDK dir. So I guess I need to either copy the debug files into that SDK dir as well, or tell my application where to look. I’m not sure how to do either.

To clarify, my application project doesn’t maintain a reference to the library project, only to the .a files and the header dirs. This is because the library project is created by CMake and I don’t want to modify it.

  • 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-13T03:15:43+00:00Added an answer on June 13, 2026 at 3:15 am

    First of all, you should check the .debug_str section of your static library to verify it contains the appropriate debug information.

    Try running this command on the terminal:

    xcrun dwarfdump /path/to/library.a | grep "\.m"
    

    You should see a bunch of your source (.m) file paths printed out. Theoretically, this is where Xcode is going to look when you stop in the debugger, so make sure the paths here are correct. If you don’t see any paths, you will need to pass an appropriate debug flag (e.g. -g to the compiler when building your library.

    If the paths are somehow incorrect, or you want to point them to some other location, you may be able to modify them as part of the build process in CMake, for example to make them relative to your project directory. Try looking at “Make gcc put relative filenames in debug information“, which uses CMake to adjust these debug paths.

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

Sidebar

Related Questions

From observing source code for various Android applications (not written by me), I noticed
There's an open source application that does queries like so: $db->query('SELECT item FROM table
I am updating an application (not developed by me) that uses three20. I was
Is it possible to create a business application (not public, like other public application
We have a legacy web application (not Spring based) and are looking for best
I am trying to find out if an instance of an application (not vb.net)
So I am about to start a project for an application (Not a game
I just needed to include windows office 2010 Ribbon bar into my C# application(Not
Looking around, I can't name a single web application (not web service) that uses
My application is not resuming to previous state when it is reopen Although its

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.