Coder Social home page Coder Social logo

Comments (9)

amosavian avatar amosavian commented on June 11, 2024 2

Hi,

This library is using Swift 5. In case you need to maintain your main project in Swift4, please use package managers like Cocoapods

from amsmb2.

amosavian avatar amosavian commented on June 11, 2024 1

Please use version 3.0.0

from amsmb2.

brandonrains77 avatar brandonrains77 commented on June 11, 2024

I Have just added your project via SPM and when I imported it into my project it says 'no such module AMSMB2'
Any Idea what it could be ?

screenshotsmudged

from amsmb2.

brandonrains77 avatar brandonrains77 commented on June 11, 2024

Here is some more info on what will cause this problem:

STEPS TO REPRODUCE
1)Make a new project, Single view app
2) FIle > Swift packages > Add Package Dependancy > Paste this in search bar "https://github.com/amosavian/AMSMB2.git" Next > select Branch : master > Finish
3) Press build

Throws the swift compiler error:
No such module "SMB2"
AMSMB2.swift

from amsmb2.

amosavian avatar amosavian commented on June 11, 2024

This library embeds pre-compiled binaries hence does not support SPM. That Package.swift is there to support Accio package manager.

I must remove that file in order to prevent such mistakes.

from amsmb2.

brandonrains77 avatar brandonrains77 commented on June 11, 2024

Thanks for the quick reply! I am new to all this, but if I can't use SPM to add your work to my project, what are the steps to add it? I am using xcode 11 and using swift 5

from amsmb2.

brandonrains77 avatar brandonrains77 commented on June 11, 2024

I am not using the SPM, But now a workspace added with AMSMB2 but when I build it says "No such module 'AMSMB2'

Any ideas how to get this to build?

from amsmb2.

goolai avatar goolai commented on June 11, 2024

Hi,

This library is using Swift 5. In case you need to maintain your main project in Swift4, please use package managers like Cocoapods

thanks for the support.

from amsmb2.

Jeehut avatar Jeehut commented on June 11, 2024

I believe this can be fixed now thanks to SE-0272, but I have no experience with C libraries so I would need to invest a lot of time to get this working (which I don't have right now). But I found this thread on the Swift forums which might help in case anybody wants to try. 😃

@amosavian
With SE-0272, do you still think AMSMB2 can't support SwiftPM? I have no idea TBH but it sounds like it should work now ...

from amsmb2.

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.