Skip to content

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

Closed

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

Activity

  1. RamithaW commented on Aug 8, 2023

    @RamithaW

    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.

  2. nickolas-dimitrakas commented on Sep 17, 2026

    @nickolas-dimitrakas
    Contributor

    Closing as stale — filed in 2023 against Xcode 14.2 / SDK 8.14.1, with no activity since. The XCFramework build pipeline and toolchain (now Xcode 16.4) have changed substantially since then. Reopen with a fresh repro on the current release if po is still broken for you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

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