vasern / vasern

Vasern is a fast, lightweight and open source data storage for React Native

Home Page:https://vasern.github.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ld: library not found for -lVasern

kailashvele opened this issue · comments

commented

ld: library not found for -lVasern
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Getting this error on Archiving project in XCode.

Since I am using cocoapods for Firebase I have to open .xcworkspace file in XCode.

However, I have linked the library in the Projects by both the Auto and Manual methods and followed the standard process of adding libVasern.a in linkers.

The library seems to be linked since running application on an emulator doesn't throw the error while Archiving it does.

Any suggestions?

Hi Kai, seem like the library isn't linked for production build. Similar to this issue #27 (comment)

Let me know if the issue still persist

commented

So it turns out, changing the build target from 9 or below to 11 doesn't give this error.

Following steps I followed after connecting with @hieunc229 on Twitter:

  1. Change the build target in the Build Settings to 11.
    image

  2. Ran build clean.
    image

  3. And then did the Archive.

Also, note if you have the correct path in header search path ie. $(SRCROOT)/../node_modules/vasern/ios

Thank you for the update!