Jump to content

6 posts in this topic

Recommended Posts

Posted

Hi Guys

 

So i am getting into development for jail broken devices, I have theos setup but I am getting the following error when running a simple application 

 

/var/mobile/hello/theos/makefiles/targets/Darwin-arm64/iphone.mk:43: Targeting iOS4.0 and higher is not supported with iphone-gcc. Forcing Clang

 

/var/mobile/hello/theos/makefiles/targets/Darwin-arm64/iphone.mk:53: Deploying to iOS3.0 while building for 6.0 will generate armv7-only binaries

 

making all for application hello...

ld: library not found for -lobjc

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

make[2]: *** [obj/hello.app/hello.64873355.unsigned] Error 2

make[1]: *** [internal-application-all] Error 2

make: *** [hello.all.application.variables] Error 2

 

So the above is the error i am getting

 

Anyone have any idea why this is happening

 

I have seen a video of someone use the exact code I am using and run the same commands and its working

 

so i know i havnt got the code  wrong

 

I am not sure how to fix this

 

I am developing on iOS 10.1.1 - Running Yalu

Posted

What is in your Makefile?

ARCHS = armv7 armv7s arm64

 

include theos/makefiles/common.mk

 

APPLICATION_NAME = hello

hello_FILES = main.m helloApplication.mm RootViewController.mm

hello_FRAMEWORKS = UIKit CoreGraphics

 

include $(THEOS_MAKE_PATH)/application.mk

 

 

The above is in my make file

Posted

ARCHS = armv7 armv7s arm64

 

include theos/makefiles/common.mk

 

APPLICATION_NAME = hello

hello_FILES = main.m helloApplication.mm RootViewController.mm

hello_FRAMEWORKS = UIKit CoreGraphics

 

include $(THEOS_MAKE_PATH)/application.mk

 

 

The above is in my make file

What's the output if you "make package messages=yes"

Posted

What's the output if you "make package messages=yes"

moses-iPhone:~ mobile$ su

 

Password:

 

moses-iPhone:/var/mobile root# cs hello

 

sh: cs: command not found

 

moses-iPhone:/var/mobile root# cd hello

 

moses-iPhone:/var/mobile/hello root# make package messages=yes

 

/var/mobile/hello/theos/makefiles/targets/Darwin-arm64/iphone.mk:43: Targeting iOS 4.0 and higher is not supported with iphone-gcc. Forcing clang.

 

/var/mobile/hello/theos/makefiles/targets/Darwin-arm64/iphone.mk:53: Deploying to iOS 3.0 while building for 6.0 will generate armv7-only binaries.

 

Making all for application hello...

 

mkdir -p "obj/hello.app/"

 

mkdir -p "obj/hello.app/"

 

mkdir -p "obj/hello.app/"

 

for d in Resources; do \

 

                if [ -d "$d" ]; then \

 

                        rsync -a "$d/" "./obj/hello.app/" --exclude "_MTN" --exclude ".git" --exclude ".svn" --exclude ".DS_Store" --exclude "._*"; \

 

                else \

 

                        echo "Warning: ignoring missing bundle resource directory $d."; \

 

                fi; \

 

        done

 

make -f Makefile --no-print-directory --no-keep-going \

 

                internal-application-compile \

 

                _THEOS_CURRENT_TYPE=application THEOS_CURRENT_INSTANCE=hello _THEOS_CURRENT_OPERATION=compile \

 

                THEOS_BUILD_DIR="." _THEOS_MAKE_PARALLEL=yes

 

clang++ -L/var/mobile/hello/theos/lib -lobjc -framework Foundation -framework CoreFoundation -ObjC++ -fobjc-exceptions -fobjc-call-cxx-cdtors -framework UIKit -framework CoreGraphics -isysroot "/var/mobile/hello/theos/sdks/iPhoneOS8.1.sdk" -arch armv7 -arch armv7s -arch arm64 -D__IPHONE_OS_VERSION_MIN_REQUIRED=__IPHONE_3_0 -miphoneos-version-min=3.0 -multiply_defined suppress -L/usr/lib -o "obj/hello.app/hello.64873355.unsigned" obj/main.m.73f572d0.o obj/helloApplication.mm.73f572d0.o obj/RootViewController.mm.73f572d0.o

 

ld: library not found for -lobjc

 

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

 

make[2]: *** [obj/hello.app/hello.64873355.unsigned] Error 1

 

make[1]: *** [internal-application-all_] Error 2

 

make: *** [hello.all.application.variables] Error 2

 

moses-iPhone:/var/mobile/hello root#

 

 

I get the above

Posted

@Valathene @DiDA

i have the same error 

 

ld: library not found for -lobjc

 

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

 

make[2]: *** [obj/hello.app/hello.64873355.unsigned] Error 1

And running the same iOS 10.1.1 Yalu 

I thinks it's the case of locating that file and then linking it but I've looked and any library folder I came across I tried to copy and paste and then trying with a link still the same error 

library not found and not signing it  :((((

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...

Important Information

We would like to place cookies on your device to help make this website better. The website cannot give you the best user experience without cookies. You can accept or decline our cookies. You may also adjust your cookie settings. Privacy Policy - Guidelines