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

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

Related

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

can somebody tell me how to resolve this issue " library not found for -lwoa_two"

ld: warning: directory not found for option '-L"/Users/qingyun/Sqy/iosHistory/iOS/iOS/newSDK/newFramework/GameLive/GamePlusAPI/woa"'
ld: library not found for -lwoa_two
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Xcode 5.0-DP test by iPhone 5 iOS 7 beta 6
OS X 10.8.4
When i add Third-Party Libraries in my project. then had this issue. i don't know why.
if somebody knows how to resolve this issue, please let me know.
thanks for reading ..
Go to your project directory and remove the folders Pods/ and yourProject.xcworkspace.
Run pod install again and reopen yourProject.xcworkspace on XCode. Things should go back to normal.

libsqlite3.0.dylib not found when build in a iPhone

I trie to put my application in a physic iPhone but xCode tell me that the library libsqlite3.0.dylib is not found.
Error code :
ld: library not found for -lsqlite3.0
clang : error: linker command failed with exit code 1 (use -v to see invocation)
I can't use libsqlite3.dylib because I deleted it by misteak and I don't find a download link.
The application work perfectly on the IOS Simulator.
Thanks for your help !!
EDIT !
I reinstalled xCode and use the sqlite3.dylib framework and work perfectly !
I reinstalled xCode and use the sqlite3.dylib framework and work perfectly !

deezer-ios adding static library

I'm trying to use the iOS SDK provided by Deezer to develop an iPhone application. I downloaded the framework here.
I started a new projet on Xcode (xcode 3.2.6), then I imported all the headers files (and the pics in Resources). Then I made right click on Frameworks and chose "add > add existing framework" and selected the "libDeezer.a" provided by deezer.
I wrote some code in my application delegate class, and when I try to build and run the project I got one warning and one error :
ld: warning: in /Users/.../deezer-ios-sdk-0.5 3/deezer-ios-0.5/libDeezer.a, missing required architecture i386 in file
Undefined symbols:
"_OBJC_CLASS_$_DeezerConnect", referenced from:
objc-class-ref-to-DeezerConnect in deezer5AppDelegate.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
How can I link the library to my project? Any ideas?
Double click on project target, and in the search path group, there is a attribute called Library Search path. please specify the path correctly.
if you have still doubt let me know , i will specify more
Are you building for simulator or device ?
The Deezer's iOS SDK is not working on simulator, but devices only.

SQLite iPhone error,

I am following through this tutorial and after completing it I am getting an error on build.
The error isn't associated with any line of source code though.
This is the error I get:
Line Location Tool:0: collect2: ld returned 1 exit status
Line Location Tool:0: symbol(s) not found
Line Location Tool:0: -[todo initWithPrimaryKey:database:] in todo.o
Line Location Tool:0: "_sqlite3_bind_init", referenced from:
I'm not sure what the error is.
The tutorial is building for the iPhone 2.0 framework but I am building for 3.0.
Their libsqlite3.0.dylib is from the iPhone 2.0 SDK whereas mine is from the 2.2.1 SDK (that's the newest version that is over 1mb)
I've tried the 2.0, 2.2.1 and 3.0 framework libsqlite3.0.dylib files, they all provide this same error.
Could anyone give me some advice on what to do here? I've tried googling the error and I get nothing at all.
I was getting more errors similar to this one until I realized that I was using the libsqlite3.0.dylib from the OS X SDK not the iPhone SDK. Once I switched that I only had this error left.
Was a typo.
sqlite3_bind_init was supposed to say:
sqlite3_bind_int
init vs int.
Oops!
Bye!