Skip to content

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

@HeEAaD

Description

@HeEAaD

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions