ios - THEOS linking error for default tweak - ios

I am starting to develop tweaks from my macbook pro and I and getting the following compiler / linker error when I do make package:
> Making all for tweak CorrectVolume…
==> Compiling Tweak.x (arm64)…
==> Linking tweak CorrectVolume (arm64)…
ld: warning: ignoring file /usr/local/opt/llvm/lib/libc++.dylib, building for iOS-arm64 but attempting to link with file built for macOS-x86_64
ld: in '/usr/local/opt/llvm/lib/libunwind.dylib', building for iOS-arm64 but attempting to link with file built for macOS-x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[3]: *** [/Users/joseperezcano/Desktop/Objective_C/correctvolume/.theos/obj/debug/arm64/CorrectVolume.dylib] Error 1
make[2]: *** [/Users/joseperezcano/Desktop/Objective_C/correctvolume/.theos/obj/debug/arm64/CorrectVolume.dylib] Error 2
make[1]: *** [internal-library-all_] Error 2
make: *** [CorrectVolume.all.tweak.variables] Error 2
The program is the one generated by nic.pl without anything else, the tweak isn't supposed to do anything and even so it doesn't compiles. However, when I try to compile from my iPhone it compiles perfectly. I've tried reinstalling the llvm but it didn't change the result.
In case this information is relevant, I have all the sdk patched from the theos github plus one more for iOS 13.4.

I managed to solve the issue by updating my OS to Monterey. Then I run brew doctor to make sure everything was running smoothly and reinstalled theos. After that everything is compiling correctly.

Related

RealmJS: clang: error: linker command failed with exit code 1 (use -v to see invocation)

I have no idea how to get around to fixing this.
I have a feeling it might be related to RealmJS but i have tried everything from their issues page on github.
I have tried, downgrading Realm, cleaning the project, restart xcode, restart the whole computer, I even removed the pods and lockfile end reinstalled the pods.
and yes i am using the .xworkspace file
177 more errors
...
duplicate symbol _OBJC_IVAR_$_GCDWebServerURLEncodedFormRequest._arguments in:
/Users/henk/Library/Developer/Xcode/DerivedData/WhosThat_app-axxkmftwrprdsnaxtynfzrtgsvca/Build/Products/Debug-iphonesimulator/libGCDWebServers.a(GCDWebServerURLEncodedFormRequest.o)
/Users/henk/Library/Developer/Xcode/DerivedData/WhosThat_app-axxkmftwrprdsnaxtynfzrtgsvca/Build/Products/Debug-iphonesimulator/libRealmReact.a(GCDWebServerURLEncodedFormRequest.o)
ld: 177 duplicate symbols for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
React-native: 0.59.8
Realm: 3.2.0, 3.1.0 , 2.8.0
Xcode: 10.1
This is a linking error with RealmJS. You might find it easier to use RealmJS 3.4.0 or higher as these versions now include CocoaPods which handle all the linking for you. I had the same issue and unfortunately I could not fix it on lower versions of RealmJS but upgrading to RealmJS 3.4.2 and using CocoaPods to link the library fixed it for me.

caffe installation error linker error lib/libcaffe.dylib Error and src/caffe/CMakeFiles/caffe.dir/all Error

I have been trying to install caffe on my mac OSX 10.9.5.
I have been following the official caffe installation from http://caffe.berkeleyvision.org/installation.html#compilation.
When I am following the cmake installation's "make all" in build folder, I keep on getting the following linking error. I have been trying many possible suggestions that I have found on the web but to no avail.
Any suggestion is appreciated. Thank you in advance.
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [lib/libcaffe.dylib] Error 1
make[1]: *** [src/caffe/CMakeFiles/caffe.dir/all] Error 2
make: *** [all] Error 2
The full error log is at https://github.com/jackywang529/myOpenCV/blob/master/OpenCV/OpenCVTutorial2/errorLog
Thank you
After upgrading from CUDA6.5 to CUDA7.0, the "make all" step completed successfully. I also made sure that I removed the edits that I had made to the formulas, which were necessary when I was using CUDA6.5. Such edits is described in (http://caffe.berkeleyvision.org/install_osx.html under section libstdc++ installation).
Good luck with all caffe users!

Flipswitch packaging error... Theos

I'm trying to make a Flipswitch package for my Cydia tweak. I have all headers in their appropriate directories, as well as, the Makefile edited.
My problem is that I keep getting a:
ld: library not found for -lflipswitch
clang: error: linker command failed with exit code 1
error!?!?
I have researched the devwiki, Ryan Petrich examples and a3tweaks examples. Regardless of what example (even the basic template), I keep getting the error. Any ideas?
TIA
Here's the full process during 'make package.' My test Flipswitch is called 'stop test.'
/Users/appleimac/Documents/stoptest/theos/makefiles/targets/Darwin/iphone.mk:49: Deploying to iOS 3.0 while building for 6.0 will generate armv7-only binaries.
Making all for bundle stoptest...
Copying resource directories into the bundle wrapper...
Linking bundle stoptest (armv7)...
ld: library not found for -lflipswitch
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[3]: *** [.theos/obj/armv7/stoptest.bundle/stoptest] Error 1
make[2]: *** [.theos/obj/armv7/stoptest.bundle/stoptest] Error 2
make[1]: *** [internal-bundle-all_] Error 2
make: *** [stoptest.all.bundle.variables] Error 2
You are missing the library. See this section of the devwiki to fix this.

Put Xcode files into new folder. Since then, I encounter the following errors when building project in simulator

I encounter the following errors
ld: warning: directory not found for option '- L/Users/andrecowardjr/Desktop/Parley/Parley/Google Analytics
ld: library not found for -lGoogleAnalytics
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Cant find out what the error is. Help needed.
Go into your project settings, check out the field 'Library Search Paths', and edit it so that it reflects where you moved your code/libraries. The error you're running into here is the linker can't find the Google Analytics library that your app is set up to link against (because you moved it).

Apple Mach-0 Linker Error when building iOS app

I am making an iOS and I just installed CocoaPods with RESTKit. I also have JSON files. The Apple Mach-O Linker Error happens when I build and only started when I installed the CocoaPods with RESTKit.
Here is part of the error report.
ld: 586 duplicate symbols for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I have a similar symptom occur when I have added a static library that included another library that I already had in the project. It may be that you already have a library included in your project that is also included int the CocoaPods with RESTKit.

Resources