Skip to content
This repository has been archived by the owner on Mar 30, 2022. It is now read-only.

Mac OS Release 0.12 rc-2 causes popup dialog "LLDB provided no error string" #569

Open
porterchild opened this issue Nov 18, 2020 · 3 comments
Assignees

Comments

@porterchild
Copy link
Contributor

Same issue as 532.
The cause and solution are included here

(I pulled the link from @BradLarson 's pull request, I couldn't wait :) )

@porterchild
Copy link
Contributor Author

porterchild commented Nov 20, 2020

Per the solution here, running

sudo install_name_tool -add_rpath /Applications/Xcode.app/Contents/Developer/Library/Frameworks/ <toolchain path>/System/Library/PrivateFrameworks/LLDB.framework/Versions/A/LLDB

lets you run with the Xcode 12.2 beta 3 specified on Installation.md, as well as a normal Xcode 12 installation (not beta). Seems worth inserting one rpath so that people don't have to go find and install a new Xcode beta to try the toolchain.

@vojtamolda
Copy link

vojtamolda commented Nov 20, 2020

Thanks for the workaround. I can confirm it works with 0.12 release (not RC) on macOS Big Sur 11.0.1, Xcode 12.2 (non-beta) and also Xcode 12.2 Beta 3.

I have noticed a tricky thing which could explain why some people couldn't reproduce the issue in #532. Xcode exhibits a different behavior for a SPM project (i.e. opening the Package.swift manifest) and Xcode project (obtained by running swift package generate-xcodeproj from the manifest).

Without the rpath fix above, an executable built from the SPM project works fine but the generated Xcode project fails to launch LLDB exactly as in #522.

@paulolellis
Copy link

paulolellis commented Dec 3, 2020

It was happening to me with a Metal App, but I just had to change the Toolchain to the Xcode 12.2 default and it worked. I was using the " Swift for TensorFlow 0.12 release".

after all, sharing is caring... :)

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

No branches or pull requests

4 participants