Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

XCFrameworks debug symbols contain absolute paths, po debugger command broken #209

Open
HeEAaD opened this issue Jul 20, 2023 · 1 comment

Comments

@HeEAaD
Copy link

HeEAaD commented Jul 20, 2023

One is not able to run the po command in LLDB when linked to recent versions of mParticle.

Screenshot 2023-07-20 at 15 33 25

Environment

  • Xcode 14.2.0
  • mParticle-Apple-SDK 8.14.1

Steps to reproduce

  1. Integrate mParticle 8.14.1 via SPM in your project (8.13.0 and above should be affected as well)
  2. Add a breakpoint somewhere
  3. Launch your project in an iOS simulator
  4. Make sure it reaches the breakpoint
  5. Use the po command in the debugger. For example po foo to print the description of foo

Actual Result:

The debugger command fails:

(lldb) po foo
error: expression failed to parse:
error: virtual filesystem overlay file '/Users/runner/Library/Developer/Xcode/DerivedData/mParticle-Apple-SDK-bqixaejagpemcucwbbovvcavmgpa/Build/Intermediates.noindex/ArchiveIntermediates/mParticle-Apple-SDK/IntermediateBuildFilesPath/mParticle-Apple-SDK.build/Release-iphonesimulator/mParticle-Apple-SDK.build/all-product-headers.yaml' not found
error: virtual filesystem overlay file '/Users/runner/Library/Developer/Xcode/DerivedData/mParticle-Apple-SDK-bqixaejagpemcucwbbovvcavmgpa/Build/Intermediates.noindex/ArchiveIntermediates/mParticle-Apple-SDK/IntermediateBuildFilesPath/mParticle-Apple-SDK.build/Release-iphonesimulator/mParticle-Apple-SDK.build/all-product-headers.yaml' not found

error: couldn't IRGen expression. Please check the above error messages for possible root causes.

Expected result

The debugger command should be executed without any error.

Sample project

mParticleAbsolutePathDemo.zip

  1. Add a breakpoint in mParticleAbsolutePathDemoTests.testExample()
  2. Run the test in an iOS simulator
  3. Run po foo in the debugger

Notes

@RamithaW
Copy link

RamithaW commented Aug 8, 2023

I'm experiencing the same on:
Xcode 14.2
mparticle-apple-sdk v8.14.1

image (5)

The steps to reproduce are the same as mentioned above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants