Giter VIP home page Giter VIP logo

Comments (6)

kareman avatar kareman commented on May 29, 2024

Do you mean you are using the Misc/swiftshell-init script? I just tested it on my computer and it was working fine.
Can you run this command from the same directory to see what version of Swift you are using?

swift -version

from swiftshell.

kareman avatar kareman commented on May 29, 2024

@scifiman Iā€™m closing this for lack of information. Feel free to reopen it if you still have this problem.

from swiftshell.

scifiman avatar scifiman commented on May 29, 2024

@kareman I am reopening this, but it's probably just a tidbit of info I'm missing that will fix this.
I somehow got this working in 2019 and have been using it since, but I'm compiling a new version of my app and it is complaining that I need to recompile swiftshell to the current Swift version.
So, I grabbed the swiftshell-init file again and got the same cyclic dependency error.

Here's my command: ./swiftshell-init swiftshell
It seems to not give the error if I specify a different folder name, i.e. swiftshell2.
However, when I do that and import the framework into my app in Xcode, it can't find swiftshell when I use the import command.

What am I doing wrong?

from swiftshell.

scifiman avatar scifiman commented on May 29, 2024

Well, I think I figured out what I did last time and got it working this time.
I used the command and successfully built the framework as swiftshell2. So apparently, you have to name it something different than swiftshell.
Then, instead of clicking "+" and adding the framework to the project, I had to "Add files" to my project in Xcode so they were copied to a path inside the application and set to use Absolute Path instead of Relative Path.
Xcode recognized it as a framework and automatically added the configuration.
Then I was able to successfully build my application.

I hope this helps someone else.
Thanks for the great work on this project. It has been extremely useful.

from swiftshell.

kareman avatar kareman commented on May 29, 2024

I think I see the problem. If you're going to use SwiftShell in an already existing Xcode project, you do not need to use swiftshell-init (it is for creating new Xcode projects). Instead you can add it as a Swift package dependency in your already existing Xcode project.

from swiftshell.

scifiman avatar scifiman commented on May 29, 2024

Thank you! I didn't know about that functionality.

from swiftshell.

Related Issues (20)

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.