Code Monkey home page Code Monkey logo

Comments (6)

mattt avatar mattt commented on June 4, 2024 3

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.

liamnichols avatar liamnichols commented on June 4, 2024 2

Its not a proper fix, but I did manage to have some luck in Xcode 12.2 by doing the following:

  1. Edit the scheme, add the DYLD_PRINT_RPATHS environment var and set it's value to 1
  2. Look at the console output to see the directory where the dylib is trying to be loaded from
  3. Find the dylib in Xcode (i.e find /Applications/Xcode-12.2.app -name lib_InternalSwiftSyntaxParser.dylib)
  4. 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.

mattt avatar mattt commented on June 4, 2024

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.

mattt avatar mattt commented on June 4, 2024

@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.

mattt avatar mattt commented on June 4, 2024

@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.

mattt avatar mattt commented on June 4, 2024

Update: It looks like this still isn't working in Xcode 11.4.

from swiftsemantics.

Related Issues (5)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.