Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

no such module "libuplink" #9

Open
ai-worm opened this issue Feb 23, 2022 · 4 comments
Open

no such module "libuplink" #9

ai-worm opened this issue Feb 23, 2022 · 4 comments

Comments

@ai-worm
Copy link

ai-worm commented Feb 23, 2022

Screen Shot 2022-02-23 at 2 26 56 AM

Whenever I try running my app, it keeps failing because the package keeps getting this issue. I have already run the make command and I believe it worked because the source file seem to be there.

Screen Shot 2022-02-23 at 2 31 20 AM

Maybe I'm doing something wrong???

I'm running Xcode 13.2.1 and Mac-OS Monterey 12.2.1 if that helps. I would appreciate the support as I'm still new at importing packages like this.

@Erikvv
Copy link
Contributor

Erikvv commented Feb 23, 2022

What helped me is deleting ~/Library/Developer/Xcode/DerivedData/ModuleCache and building again.

Let me know if it does for you.

@svanichkin
Copy link

svanichkin commented May 6, 2023

Hello, after deleting derived data, do "make" with new directory, then error: no such module "libuplink"
P.S. Ok, I managed to solve the problem. The assembly goes without problems if you leave only "uplink-swift" library.
Screenshot 2023-05-06 at 22 31 11

@fitouch
Copy link

fitouch commented Oct 25, 2023

I have this issue. This is the log after I run "make":

if test ! -d Sources; then echo ' \033[31m \n Build Failed : Directory Sources does not exists \033[0m\n' && exit 1; fi
if test ! -d Sources/libuplink; then echo '\033[31m \nBuild Failed : Directory Sources/libuplink does not exits\n\033[0m' && exit 1; fi
if test ! -f Sources/libuplink/libuplink.c; then echo '\033[31m \n Build Failed : File Sources/libuplink/libuplink.c does not exits\n\033[0m\n' && exit 1; fi
if test ! -d Sources/libuplink/include; then mkdir Sources/libuplink/include; fi
if test ! -d uplink-c; then git clone --depth 1 --branch v1.8.0 https://github.com/storj/uplink-c; fi
cd uplink-c;go build -o libuplinkc.dylib -buildmode=c-shared;mv libuplinkc.dylib *.h ../Sources/libuplink/include;
# storj.io/uplink-c
./access.go:6:11: fatal error: 'uplink_definitions.h' file not found
 #include "uplink_definitions.h"
          ^~~~~~~~~~~~~~~~~~~~~~
1 error generated.
mv: rename libuplinkc.dylib to ../Sources/libuplink/include/libuplinkc.dylib: No such file or directory
mv: rename *.h to ../Sources/libuplink/include/*.h: No such file or directory
make: *** [build] Error 1

Also should you bump 1.5.1 to 1.8.0?

I'm using Macbook Pro - Apple M1 Pro

@fitouch
Copy link

fitouch commented Oct 25, 2023

I've created a new pull request #11

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants