Comments (6)
I'm very happy to report that this is working in Xcode 12.5 with the latest OSS Toolchain. I updated the README with fb4aa13.
from swiftsemantics.
Its not a proper fix, but I did manage to have some luck in Xcode 12.2 by doing the following:
- Edit the scheme, add the
DYLD_PRINT_RPATHS
environment var and set it's value to1
- Look at the console output to see the directory where the dylib is trying to be loaded from
- Find the dylib in Xcode (i.e
find /Applications/Xcode-12.2.app -name lib_InternalSwiftSyntaxParser.dylib
) - Add a symbolic between where the actual dlyb is in Xcode and where the library is trying to be loaded from
Not ideal, but was enough to get things working at least so I could poke around rather than generating the xcodeproj
from swiftsemantics.
Thanks for writing in about this, @chriseidhof. I was hitting the same issue when trying to run unit tests. I think upgrading SwiftSyntax to a newer release should fix the issue, but I'd held off on that until I shipped this initial release. This is a great reminder to take another look.
from swiftsemantics.
@chriseidhof I tried fixing this by targeting a different release of SwiftSyntax, but wasn't able to get any of the other tags to work. Until a better solution is provided upstream, my suggestion would be to run swift package generate-xcodeproj
to generate an Xcode project and then xed <#Package#>.xcodeproj
to open the generated project directly.
from swiftsemantics.
@chriseidhof I'm happy to report that this is fixed in the latest Swift 5.2 development builds. I'll wait to close this until the most recent Xcode GM can build and run tests on SwiftSemantics master
without a problem.
from swiftsemantics.
Update: It looks like this still isn't working in Xcode 11.4.
from swiftsemantics.
Related Issues (5)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from swiftsemantics.