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

[Swift] Add -debug-prefix-map to map source file #37

Merged
merged 1 commit into from
Sep 30, 2021

Conversation

qyang-nj
Copy link
Collaborator

@qyang-nj qyang-nj commented Sep 30, 2021

We use remote cache to speed up local builds. Because of this, we need to map server path to local path to enable local debugging.

settings set target.source-map "/server/path/repo" "/local/path/repo"

However, this stops working in Xcode 13. To make debugger work again, we need to

# during building
swiftc ... -debug-prefix-map /server/path/repo=.

# before debugging 
settings set target.source-map "." "/local/path/repo"

Please review

@xianwen @shepting

Copy link
Collaborator

@xianwen xianwen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! Great work Qing!

@qyang-nj qyang-nj merged commit 2256a69 into airbnb-ios Sep 30, 2021
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

Successfully merging this pull request may close these issues.

2 participants