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

'... all-product-headers.yaml' not found #2

Closed
steven851007 opened this issue Dec 20, 2022 · 1 comment
Closed

'... all-product-headers.yaml' not found #2

steven851007 opened this issue Dec 20, 2022 · 1 comment

Comments

@steven851007
Copy link

Issue

When adding AppeliumFeedback SDK to the project lldb can't compile the project anymore which resulting an error when executing the PO command during debugging:
Screenshot 2022-12-20 at 13 05 03

Expected Results

po self -> should output debug information for the shared object.

Actual Results

po self -> Gives an error about missing all-product-headers.yaml for AppeliumFeedbackKit (see screenshot)

Reason

This is happening due to https://bugs.swift.org/browse/SR-12783.

LLDB could clearly do a better job of surfacing the error — I had to dig it out of the types log:
SwiftASTContext("Instabug")::GetASTContext() – failed to initialize ClangImporter: error: virtual filesystem overlay file '/Users/khaledElMorabea/Library/Developer/Xcode/DerivedData/Instabug-ccnahiryvffhsohhjpovgyeazflu/Build/Intermediates.noindex/ArchiveIntermediates/Instabug/IntermediateBuildFilesPath/Instabug.build/Release-iphonesimulator/Instabug.build/all-product-headers.yaml' not found
The problem here is with the binary Instabug framework that you are using. The .dSYM files that are generated from Swift code are not (yet) as portable as the ones generated from Clang code. The binary Swift module encode a hardcoded path to a yaml file that only exists on the original developer's machine. You should let them know that they need to compile their binary framework with -no-serialize-debugging-options if they are planning to distribute them to another machine.

See similar issue reported for Facebook and Instabug

Solution: Compile the binary framework with -no-serialize-debugging-options.

@miroslavkovac
Copy link
Contributor

Thanks for the report and the proposal on addressing the issue. The fix was released in 3.2.2.

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

No branches or pull requests

2 participants