Comments (9)
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.
Please use version 3.0.0
from amsmb2.
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 ?
from amsmb2.
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.
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.
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.
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.
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.
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)
- Library not loaded on iPhone device HOT 5
- Objective-c HOT 1
- Dependency "AMSMB2" has no shared framework schemes for any of the platforms: iOS
- Using to stream AV files.... HOT 1
- Type of expression is ambiguous without more context HOT 1
- Requires support for anonymous login HOT 4
- Problems with moving files
- Cannot extract data, move, download, copy; etc. from Linux or Windows shares with latin characters in file name HOT 8
- Which thread does amsmb2 run on HOT 1
- Connect to a Distributed File System-Namespaces HOT 1
- Uploading a folder HOT 1
- import AMSMB2 to xCode HOT 1
- macOS arm64 architecture missing HOT 2
- No such module 'SMB2' HOT 1
- Long delay when processing delete requests of recently uploaded items. HOT 1
- Struct smb2_context has removed member is_connected for the latest libsmb2? HOT 1
- Need support for M1 iphone simulator "arm64-apple-ios-simulator" HOT 1
- Build error: unsafe build flags HOT 7
- Intel x86_64 support does not work ? HOT 3
- init SMB2Manager throws error HOT 7
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 amsmb2.