Perfect-MySQL majorVersion:3 Undefined symbols for architecture x86_64: - perfect

I get an
ld: symbol(s) not found for architecture x86_64
error while building from terminal (swift build) (swift 4).
It points to a simple init in my code like:
let mysql = MySQL()
Two hints:
Clue#1: I am not having any problem building in Xcode. (Xcode 9)
Clue#2: I have no problem building from terminal when using majorVersion:2
What may be the cause of this error?

I found the problem, putting this here if anyone else encounters the same problem:
I followed the example at : http://perfect.org/docs/MySQL.html and there it shows :
import MySQL
However, if change this to the following:
import PerfectMySQL
the build problem I mentioned above disappears.
I hope this helps somebody

Related

Xcode test build fails

Every time I run cmd + u I get this error:
If I run cmd + b the build is successful.
I tried to install for testing same pods as debug build but it seems that is not the problem. Also clean derived data also does not work.
Please, if you have any clue share it. Also feel free for asking about more information.
Edited:
ld: warning: Could not find or use auto-linked framework 'Lottie'
ld: warning: Could not find or use auto-linked framework 'Airship'
Undefined symbols for architecture arm64
Thanks
In podfile, after stopping using inherit from test target, and set this one to use Lottie and Airship directly, it works properly. In this way I can use this frameworks with my tests.

ProgressHUD: Undefined symbols for architecture x86_64:

I always get the same error using ProgressHUD.
Implementation is no problem but when I call PRogressHUD.show...
I get the error:
Undefined symbols for architecture x86_64:
xCode version: 10.1
Swift version: 4.2
Thanks for your help!
According to the ProgressHUD documentation, the recommended way install the library is through CocoaPods
CocoaPods is the recommended way to add ProgressHUD to your project.
Now I don't know how exactly did you add the library to the project, but trying to install it with CocoaPods will most probably solve your issue.
The rest of your implementation should remain intact.

Leveldb framework not found swift

I recently upgraded my Xcode to the latest version and a big project I was working on had to be updated and fixed. Once the code updated I tried to run the app on simulator and iOS device but I always get the same error and I don't know where it comes from. I know it means the leveldb framework is missing but I don't find it anywhere on the internet. I am using Firebase.
Here's the error I get
ld: framework not found leveldb
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I would really appreciate if one of you knew how to fix this! Thanks

Accessing Graph API getting errors

I am facing one problem : i am using Graph API in my application. app working fine every time but there are displayed 3 errors , though there are errors app is running...
1) error "_OBJC_CLASS_$_FbGraph", referenced from:
2) error "_OBJC_CLASS_$_FbGraphFile", referenced from:
3) Linker command failed with exit code 1 (use -v to see invocation)
for more information : I am using XCODE 4.3.2
what should i do to remove these errors ? need help...
i think define linkers flag with -all_load if required the -lstdc++, -ObjC, -lxml2....
and yes also check that Architecture define with these two armv6 and armv7.....
and then if its give error then define compiler with LLVM-GCC or LLVM and then restart app...
hope this help you..
:)

trying to compile/ link tweak on iphone with theos and gcc

ive been trying to compile a mobile substrate tweak forever, but with no luck. so far, it compiles to the point where i get a .o file, but never to a .dylib. I keep getting the error:
ld: framework not found Foundation
collect2: ld returned 1 exit status
right after it says linking
i know the foundation/foundation.h is in the include folder
ive googled forever but have found no answer
please help!
btw im on ios 4.1 ipod touch 2gmc and theos and perl were installed fine
Thanks!
projname_FRAMEWORKS = UIKit Foundation
add this below the projname_FILES