Hardcoded path in latest release 3.0
Closed this issue ยท 9 comments
I noticed an error while debugging our app with the latest Phrase SDK 3.0
.
There's an hardcoded path in the latest framework @winkelsdorf
error: virtual filesystem overlay file
'/Users/winkelsdorf/Library/Developer/Xcode/DerivedData/PhraseSDKdbgypdflrqbfdrdzewelqaanicsg/
Build/Intermediates.noindex/ArchiveIntermediates/PhraseSDK/IntermediateBuildFilesPath/
PhraseSDK.build/Release-iphoneos/PhraseSDK.build/all-product-headers.yaml' not found
@ChristianSteffens Thank you for the report! Going to investigate this immediately. I can already say that we don't use any hardcoded paths or .yaml
files. Looks like it might be related to a lldb issue.
How are you integrating the framework? Are you using Carthage?
@Schlabbi Thanks for your additional feedback!
I'll keep you updated here.
How are you integrating the framework? Are you using Carthage?
We're using cocoapods.
@ChristianSteffens @Schlabbi I'm able to reproduce this error. From what I'd found it is an error related to the generated dSYMS on Xcode 12 (see https://bugs.swift.org/browse/SR-12933). Trying to workaround that now.
@ChristianSteffens @Schlabbi Thank you very much for reporting and giving more details! ๐
I was able to identify the underlying issue. It is a regression in the Swift frontend compiler which leads to issues with the generated dSYMs despite using -no-serialize-debugging-options
(see https://bugs.swift.org/browse/SR-12933 and https://steipete.com/posts/couldnt-irgen-expression/ for more details if you are curious).
The hardcoded path has always been included inside the dSYMs, but -no-serialize-debugging-options
was used to ignore them when debugging. This is now broken with Xcode 12 (12.4?).
The shortly available hotfix release v3.0.1 will omit including the dSYMs. We're going to report this to Apple.
Let me know if this release resolves the issue for you.
@ChristianSteffens @Schlabbi v3.0.1 with a Hotfix is available now
3.0.1
works like a charm. No errors, can debug now.
Good job!
@gutaker Glad to hear that it's working for you now. Thank you very much for the feedback, I really appreciate that! Closing this issue now :)