theos / theos Goto Github PK
View Code? Open in Web Editor NEWA cross-platform suite of tools for building and deploying software for iOS and other platforms.
Home Page: https://theos.dev
License: Other
A cross-platform suite of tools for building and deploying software for iOS and other platforms.
Home Page: https://theos.dev
License: Other
okay two questions,
After doing $THEOS/bin/nic.pl and choosing 5 tweak i run this command:
class-dump -H hackedBinaryLocation/BinaryName -o DumpLocation
And it didn't do the makefile/control file. Is there a way how to do the makefile and control file manually. Thanks.
I used theos on mac.
PS: Sry for making these Issues, but i jus can't get it to work :3
I am trying to create a tweak and I keep getting this error:
warning: ignoring file /Users/starking123mac/Desktop/testalert/theos/lib/libsubstrate.dylib, missing required architecture armv6 in file
Undefined symbols for architecture armv6:
"_MSHookMessageEx", referenced from:
global constructors keyed to alert.xm.mmin alert.xm.o
ld: symbol(s) not found for architecture armv6
I am using Logify so it is not something wrong with my code. Any help would be great thanks!
Hey I just installed Theos on my ubuntu 11.10 and I also copied over the iPhone ios5 sdk to /opt/...
I tried to change the path in the Darwin.mk but even after change it says iphone-3.0-sdk sysroot file missing, PLease help?
login as: root
[email protected]'s password:
iPhone-di-Emilio: root # cd /var/mobile/prova
iPhone-di-Emilio:/var/mobile/prova root# make package install
Your current SYSROOT, "var/sdk", appears to be missing.
make: *** [before-all] Error 1
iPhone-di-Emilio:/var/mobile/prova root#
What should I do?
P.S. I don't have installed any compilators, so if one is needed, explain me please how to install it.
I followed http://brandontreb.com/beginning-jailbroken-ios-development-your-first-tweak/ to write my first tweak, and then I want to use TPAdvanced.a in my tweak.
I put TPAdvanced.h in /opt/theos/include/TPAdvanced/ folder,
I put libTPAdvanced.a under both /opt/theos/lib, /opt/theos/include/TPAdvanced/ folder, and also my tweak project folder (the same folder where my Tweak.xm and Makefile are in)
I have tried modified the makefile with:
WelcomeWagon_PRIVATE_FRAMEWORKS = libTPAdvanced
or WelcomeWagon_PRIVATE_FRAMEWORKS = libTPAdvanced.a
or WelcomeWagon_PRIVATE_FRAMEWORKS = TPAdvanced
But, still no luck.
Where should I put my .h and .a file?
What should I write in my makefile?
I could not find any document of how to set these variables in the makefile. Do you have any?
Thanks!
-Elfe
You forgot some quotes:
diff --git a/makefiles/instance/framework.mk b/makefiles/instance/framework.mk
index 7ebb0c6..b874fb5 100644
--- a/makefiles/instance/framework.mk
+++ b/makefiles/instance/framework.mk
@@ -10,7 +10,7 @@ else
LOCAL_FRAMEWORK_NAME = $($(THEOS_CURRENT_INSTANCE)_FRAMEWORK_NAME)
endif
-AUXILIARY_LDFLAGS += -dynamiclib -install_name $($(THEOS_CURRENT_INSTANCE)_INSTALL_PATH)/$(LOCAL_FRAMEWORK_NAME).framework/$(THEOS_CURRENT_INSTANCE)
+AUXILIARY_LDFLAGS += -dynamiclib -install_name "$($(THEOS_CURRENT_INSTANCE)_INSTALL_PATH)/$(LOCAL_FRAMEWORK_NAME).framework/$(THEOS_CURRENT_INSTANCE)"
ifeq ($(_THEOS_MAKE_PARALLEL_BUILDING), no)
internal-framework-all_:: $(_OBJ_DIR_STAMPS) $(THEOS_OBJ_DIR)/$(THEOS_CURRENT_INSTANCE)
diff --git a/makefiles/targets/_common/darwin.mk b/makefiles/targets/_common/darwin.mk
index 4cf4fe3..b2a8496 100644
--- a/makefiles/targets/_common/darwin.mk
+++ b/makefiles/targets/_common/darwin.mk
@@ -2,7 +2,7 @@
TARGET_EXE_EXT =
TARGET_LIB_EXT = .dylib
-TARGET_LDFLAGS_DYNAMICLIB = -dynamiclib -install_name $(LOCAL_INSTALL_PATH)/$(1)
+TARGET_LDFLAGS_DYNAMICLIB = -dynamiclib -install_name "$(LOCAL_INSTALL_PATH)/$(1)"
TARGET_CFLAGS_DYNAMICLIB =
TARGET_ONLY_OBJCFLAGS = -std=c99
Hello,
I installed Theos on my iPad 2. I installed it before, and it was working OK then. I needed to restore my iPad, and when I installed Theos again, it doesn't work any longer. When I run 'perl nic.pl' inside of /var/theos/bin, I get this error. I rei,stalled Theos multiple times, but I can't seem to get it to work.
What should I do?
Robbe
many interesting objc syntax were supported after llvm4.0. why not change to a better compiler as default ?
I use
SDKVERSION=5.0
SYSROOT=/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.0.sdk
and with this error ?
I tried to compile my notification center widget. Everything worked fine,until this message popped up:
dependency problems prevent configuration of com.yourcompany.newstweak:
com.yourcompany.newstweak depends on com.chpwn.weeloader; however:
Package com.chpwn.weeloader is not installed.
Does somebody please help me to get rid of this error ? How can i install this package.
So after i install Theos using this guide:
http://iphonedevwiki.net/index.php/Theos/Getting_Started
and typing "$THEOS/bin/nic.pl"
my MobileTerminal executes:
Illegal Instruction: 4
My device: iPhone 5 running iOS 6.1.0 jailbroken of course ;)
Ok, so I understand that the Logos language is mostly just a perl interpreter to add functionality to objective c. Yet I enjoy this language and its simplicity and its ablality to shorten things and add to classes or overwrite them with the %orig function. So is it possable to use this on Mac apps, like instead of SIMBL just make a logos tweak that points to com.apple.safari method? I know it can be achieved though using the iphone simulator setting, but shouldnt it be coded as a objective c library and not a perl modual? Logos is a great language that is the best way to manipulate pre-existing code. Lets write some obj-c source?
Why if i try to use my own objective C class in a tweak ( these class work well in an App) theos give me milion of error for those class? there is a different method to include objective C class in tweak and use it inside a Hook?
logify.pl generate wrong NSLog calls when the method return type is CFStringRef, e.g. missing argument:
-(CFStringRef)dataServiceID { %log; CFStringRef r = %orig; NSLog(@" = --", ); return r; }
Also, when an argument name is "id" and return type id, this doesn't compile:
id r = orig;
expected ';' after id
use of undeclared identifier 'r'
as you see at the subject
i faced this problem
/bin/sh: -x command not found
make[2]: *** [obj/Tweak.xm.o] Error 127
make[1]: *** [internal-library-all_] Error 2
make: *** [ScreebShot.all.tweak.variables] Error 2
Can you help me with it
how to line with -arch armv7, I used
ADDITIONAL_LDFLAGS = -arch armv7
but doesn't override.
I compiled a command line tool using theos and works fine on iOS4.3.x
But when the same program runs on iOS5 (tethered jailbreak), it shows
No such file or directory
Any idea ?
I have the GNU coreutils installed with MacPorts on my Mac, therefore make package uses GNU du instead of the one in /usr/bin and fails because it uses "-I" instead of "--exclude".
This can be solved by simply using /usr/bin/du explicitly:
--- a/makefiles/package.mk
+++ b/makefiles/package.mk
@@ -53,7 +53,7 @@ ifeq ($(THEOS_KEEP_VER),1)
else
$(ECHO_NOTHING)$(THEOS_BIN_PATH)/package_version.sh -c "$(_THEOS_PACKAGE_CONTROL_PATH)" $(if $(PACKAGE_BUILDNAME),-e $(PACKAGE_BUILDNAME),) > "$@"$(ECHO_END)
endif
- $(ECHO_NOTHING)echo "Installed-Size: $(shell du $(_THEOS_PLATFORM_DU_EXCLUDE) DEBIAN -ks "$(THEOS_STAGING_DIR)" | cut -f 1)" >> "$@"$(ECHO_END)
+ $(ECHO_NOTHING)echo "Installed-Size: $(shell /usr/bin/du $(_THEOS_PLATFORM_DU_EXCLUDE) DEBIAN -ks "$(THEOS_STAGING_DIR)" | cut -f 1)" >> "$@"$(ECHO_END)
before-package:: $(THEOS_PACKAGE_DIR) $(_THEOS_ESCAPED_STAGING_DIR)/DEBIAN/control
I have a .xib file in my project, and after Make, Package and Install on iDevice, .xib file is not included in installed Bundle, and every time app crash for that. (The app could not find nib file).
How can I include .xib files(or other resources) to Make process, for including in .app bundle?
Thanks.
as the title, how to hook a funcion with function_address ?
I think that I am convenient when this variable exists for specified app tweak.
What do you think?
// makefile/master/tweak.mk
ifeq ($(THEOS_KILL_APP),)
THEOS_KILL_APP := SpringBoard
endif
internal-after-install::
install.exec "killall -9 $THEOS_KILL_APP"
I'm writing a project that uses the Twitter framework but needs to run on at least iOS 4. How would I go about weak-linking this framework in theos?
I'm making a tweak that has some extra settings for the messages app, one of them is to replace the background of your conversation to the camera view. This is my code:
%hook CKTranscriptController
- (void)viewDidAppear:(BOOL)view {
%orig;
AVCaptureDevice *captureDevice = [[AVCaptureDevice alloc] init];
NSArray *devices = [AVCaptureDevice devicesWithMediaType:AVMediaTypeVideo];
for (AVCaptureDevice *device in devices) {
if ([device position] == AVCaptureDevicePositionBack) {
captureDevice = device;
}
}
AVCaptureDeviceInput *input = [[AVCaptureDeviceInput alloc] initWithDevice:captureDevice error:nil];
[captureDevice release];
AVCaptureStillImageOutput *output = [[AVCaptureStillImageOutput alloc] init];
NSDictionary *outputSettings = [[NSDictionary alloc] initWithObjectsAndKeys:
AVVideoCodecJPEG, AVVideoCodecKey,
nil];
[output setOutputSettings:outputSettings];
[outputSettings release];
AVCaptureSession *session = [[AVCaptureSession alloc] init];
[session addInput:input];
[session addOutput:output];
[input release];
[output release];
AVCaptureVideoPreviewLayer *previewLayer = [[AVCaptureVideoPreviewLayer alloc] initWithSession:session];
[self.entryView.layer setMasksToBounds:YES];
previewLayer.frame = self.entryView.bounds;
[previewLayer setVideoGravity:AVLayerVideoGravityResizeAspectFill];
[self.entryView.layer insertSublayer:previewLayer below:[[self.entryView.layer sublayers] objectAtIndex:0]];
[previewLayer release];
[session startRunning];
[session release];
}
%end
When i try to compile it gives me the error:
Making all for tweak Messages...
Preprocessing Tweak.xm...
Compiling Tweak.xm...
‘
In function ‘void _logos_method$_ungrouped$CKTranscriptController$viewDidAppear$(CKTranscriptController*, objc_selector*, BOOL)’:
Segmentation fault: 11
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://developer.apple.com/bugreporter> for instructions.
make[2]: *** [obj/Tweak.xm.0a03b848.o] Error 1
make[1]: *** [internal-library-all_] Error 2
make: *** [Messages.all.tweak.variables] Error 2
i faced this error as you see in the pic
http://db.tt/afhWBwjd
http://db.tt/VRUwtbpg
http://db.tt/GNvLNqAR
Please answer me Dustin
When I try to make a project I see that error: /opt/theos/makefiles/targets/Darwin/iphone.mk:12: *** first argument to `word' function must be greater than 0. Stop.
Also I've Mac OS X 10.7 and the latest Xcode
tpm install logos
theos/pkg/logos/bin/logos.pl
theos/pkg/logos/lib/Logos/Util.pm
...
theos/bin/logos.pl => ../pkg/logos/bin/logos.pl
theos/bin/logify.pl => ../pkg/logos/bin/logify.pl
theos/pkg/android/mod/android/common.mk
...
theos/mod/android => ../pkg/android/mod/android
Hi
I know this isn't an error but its better than spamming this issue page with errors.
Is there any way I can uninstall Theos or start from fresh? I keep getting errors about QuartzCore2.h or Xcode sdk and its probably better if I start over.
Thanks for any help. I know this isn't a forum but it is better than spending ages fixing errors which have been made unnecessarily .
Just did a clean checkout of theos and tried to bootstrap libsubstrate.dylib, but its not working. Probably due to armv7 only dylib1.o in iOS 6.0 SDK:
git clone https://github.com/DHowett/theos.git /opt/theos-new
export THEOS=/opt/theos-new
/opt/theos-new/bin/nic.pl
NIC 2.0 - New Instance Creator
------------------------------
[1.] iphone/application
[2.] iphone/library
[3.] iphone/preference_bundle
[4.] iphone/tool
[5.] iphone/tweak
Choose a Template (required): 5
Project Name (required): testtheos
Package Name [com.yourcompany.test-theos]:
Author/Maintainer Name [*****]:
[iphone/tweak] MobileSubstrate Bundle filter [com.apple.springboard]:
Instantiating iphone/tweak in testtheos/...
Done.
cd testtheos/
make
Bootstrapping CydiaSubstrate...
Compiling iPhoneOS CydiaSubstrate stub... default target? failed, forcing 2.0? failed, forcing 3.0? failed, forcing 3.2? failed, forcing 4.0 for 3.0? failed, forcing 4.2 for 3.0? failed, forcing 4.0? failed, forcing 4.2? failed, what?
Inspecting libsubstrate.dylib shows only i386 and x86_64:
file /opt/theos-new/lib/libsubstrate.dylib
/opt/theos-new/lib/libsubstrate.dylib: Mach-O universal binary with 2 architectures
/opt/theos-new/lib/libsubstrate.dylib (for architecture i386): Mach-O dynamically linked shared library stub i386
/opt/theos-new/lib/libsubstrate.dylib (for architecture x86_64): Mach-O 64-bit dynamically linked shared library stub x86_64
Hi i'm trying to make a query and to get all the metadata from the iPod library. So following the reference:
MPMediaQuery *everything = [[MPMediaQuery alloc] init];
NSLog(@"Logging items from a generic query...");
NSArray *itemsFromGenericQuery = [everything items];
for (MPMediaItem *song in itemsFromGenericQuery) {
NSString *songTitle = [song valueForProperty: MPMediaItemPropertyTitle];
NSLog (@"%@", songTitle);
}
But only if i compile with theos this piece of code crash on '-(id)valueForProperty'. Why? Which file should i include? (Already added the MediaPlayer framework, and included with #import
).
Can i do it like Xcode(xib/nib) to draw some wight?
Please tolerate my ignorance. I'm a newbie, still learning objective-c and need your support to compile projects created by THEOS. I'm getting the following error while compiling,
*** You did not specify a target, and the "macosx" platform does not define a default target. Stop.
I did everything I can but still no luck. I went through tutorials and google but unable to find any solution.
BTW, I'm on MAC with Snow Leopard 10.6.6 and XCode 3.2.3.
Thanks in Advance.
this is my Tweak.xm
Code:
%hook SBApplicationIcon
-(void)launch
{
NSString *appName = [self displayName];
NSString *message = [NSString stringWithFormat:@"The app %@ has been launched", appName, nil];
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:appName message:message delegate:self cancelButtonTitle:@"OK" otherButtonTitles:nil];
[alert show];
[alert release];
%orig;
}
%end
and this is my Makefile
Code:
include theos/makefiles/common.mk
TWEAK_NAME = LaunchNotifier
TARGET = iphone:6.1
ARCHS = armv7
LaunchNotifier_FILES = Tweak.xm
LaunchNotifier_FRAMEWORKS = UIKit Foundation
include $(THEOS_MAKE_PATH)/tweak.mk
I have placed the SpringBoard header files in /opt/theos/include/
When I run "make" in Terminal on my macbook air (10.8.2)
Output:
Code:
/private/var/root/launchnotifier/theos/makefiles/targets/Darwin/iphone.mk:41: Deploying to iOS 3.0 while building for 6.0 will generate armv7-only binaries.Making all for tweak LaunchNotifier...
Preprocessing Tweak.xm...
Compiling Tweak.xm...
In file included from Tweak.xm:1:
/private/var/root/launchnotifier/theos/include/SpringBoard/SpringBoard.h:7:26: error: UIApplication.h: No such file or directory
/private/var/root/launchnotifier/theos/include/SpringBoard/SpringBoard.h:9:40: error: MCProfileConnectionObserver.h: No such file or directory
/private/var/root/launchnotifier/theos/include/SpringBoard/SpringBoard.h:10:34: error: UIApplicationDelegate.h: No such file or directory
In file included from Tweak.xm:1:
/private/var/root/launchnotifier/theos/include/SpringBoard/SpringBoard.h:12: error: expected ;' before ‘<’ token /private/var/root/launchnotifier/theos/include/SpringBoard/SpringBoard.h:14: error: cannot find protocol declaration for ‘MCProfileConnectionObserver’ /private/var/root/launchnotifier/theos/include/SpringBoard/SpringBoard.h:16: error: ISO C++ forbids declaration of ‘SBUIController’ with no type /private/var/root/launchnotifier/theos/include/SpringBoard/SpringBoard.h:16: error: expected
;' before ‘’ token
/private/var/root/launchnotifier/theos/include/SpringBoard/SpringBoard.h:54: error: ISO C++ forbids declaration of ‘SBApplication’ with no type
/private/var/root/launchnotifier/theos/include/SpringBoard/SpringBoard.h:54: error: expected ;' before ‘_’ token /private/var/root/launchnotifier/theos/include/SpringBoard/SpringBoard.h:55: error: ISO C++ forbids declaration of ‘SBApplication’ with no type /private/var/root/launchnotifier/theos/include/SpringBoard/SpringBoard.h:55: error: expected
;' before ‘*’ token
/private/var/root/launchnotifier/theos/include/SpringBoard/SpringBoard.h:66: error: ISO C++ forbids declaration of ‘SBAppContextHostManager’ with no type
/private/var/root/launchnotifier/theos/include/SpringBoard/SpringBoard.h:66: error: expected`;' before ‘’ token
/private/var/root/launchnotifier/theos/include/SpringBoard/SpringBoard.h:69: error: cannot find protocol declaration for ‘OS_dispatch_source’
/private/var/root/launchnotifier/theos/include/SpringBoard/SpringBoard.h:72: error: declaration of ‘int SpringBoard::SBApplication’
/private/var/root/launchnotifier/theos/include/SpringBoard/SpringBoard.h:54: error: conflicts with previous declaration ‘int SpringBoard::SBApplication’
/private/var/root/launchnotifier/theos/include/SpringBoard/SpringBoard.h:54: error: duplicate member ‘SBApplication’
cc1objplus: warnings being treated as errors
Tweak.xm: In function ‘void logos_method$ungrouped$SBApplicationIcon$launch(SBApplicationIcon, objc_selector)’:
Tweak.xm:7: warning: no ‘-displayName’ method found
Tweak.xm:7: warning: (Messages without a matching method signature
Tweak.xm:7: warning: will be assumed to return ‘id’ and accept
Tweak.xm:7: warning: ‘...’ as arguments.)
make[2]: ** [obj/Tweak.xm.9526df84.o] Error 1
make[1]: *** [internal-library-all] Error 2
make: *** [LaunchNotifier.all.tweak.variables] Error 2
What is wrong with my code???
Note: when I remove SpringBoard header files compile succeeds. I'm using rpetrich's SB Headers.
how to add OpenEars.framework on my theos project ? please hel me
Documentation fails to make on OSX 10.8 and Ubuntu 12.10 with docbook, docbook2x installed.
Please update, or list package(s) that need to be installed.
xsltproc --output makefiles.html /usr/share/sgml/docbook/xsl-stylesheets/xhtml/docbook.xsl makefiles.docbook
warning: failed to load external entity "/usr/share/sgml/docbook/xsl-stylesheets/xhtml/docbook.xsl"
cannot parse /usr/share/sgml/docbook/xsl-stylesheets/xhtml/docbook.xsl
make: *** [makefiles.html] Error 4
Hi so when i import my frameworks and classes that i want to hook into using
theos/include/ChatKit/XXUnknownSuperclass.h:30: warning: duplicate interface declaration for category ‘XXUnknownSuperclass(CKWebBalloon)’
If anyone know how I can go about fixing this so i can go on with developing for my tweak that would be great thanks!
Since A6 Devices don't work with Theos, i thought could you make it, so we can use it on clang?
It is mainly this command that doesn't work: "$THEOS/bin/nic.pl"
sorry for posting this issue again, but maybe you can make it compatible with clang.
Thx
Sorry, I didn't find a way to submit feature request so open an issue instead.
The current version of theos doesn't support using entitlement with ldid. I modified it to work around.
Open file /makefiles/targets/Darwin/iphone.mk and change line
"TARGET_CODESIGN_FLAGS ?= -S" to "TARGET_CODESIGN_FLAGS ?= -S$(CODESIGN_ENTITLEMENT)" and then define CODESIGN_ENTITLEMENT in my Makefile when needed.
Hope this is helpful for people who need it.
Regards and thanks for the great project.
Hi,
When i am trying to run the following command : $THEOS/bin/nic.pl
i m getting the following error : Cowardly refusing to make a project inside $THEOS
$THEOS = /opt/theos
i already tried to change folder but nothing helps.
is there any solution for this problem ?
Thanks.
I followed http://brandontreb.com/beginning-jailbroken-ios-development-getting-the-tools/ to use theos implementing a tweak. Everything worked fine.
Then upgrade my Xcode to 4.5.
Then when compiling any tweak projects, even a hello world, it failed with following error:
Making all for tweak PreferenceLoader...
Preprocessing Tweak.xm...
Compiling Tweak.xm...
Linking tweak PreferenceLoader...
collect2: ld terminated with signal 6 [Abort trap: 6]
ld(8724,0x7fff78fd2960) malloc: *** error for object 0x7f89b35003f0: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug
make[2]: *** [obj/PreferenceLoader.dylib] Error 1
make[1]: *** [internal-library-all_] Error 2
make: *** [PreferenceLoader.all.tweak.variables] Error 2
I found this http://iphonesdkdev.blogspot.jp/2012/06/how-to-install-thoes-under-xcode-44.html, followed all steps, but still no luck.
Any ideas on the linking tool's crash?
i have used "installtheos3" command from mobile terminall as root user,but not able to see theos folder.it was present before i restarted my device but after that its gone, i have trind to install multiple time the process gets completed successfully but no theos folder comes.
it is not visible even in cydia package.
Error gone
every time i try to make any tweak
it shows me that:
Dark-Alexs-MacBook-Pro:test Alex$ sudo make
Password:
Bootstrapping CydiaSubstrate...
Compiling iPhoneOS CydiaSubstrate stub... default target? failed, forcing 2.0? failed, forcing 3.0? failed, forcing 3.2? failed, forcing 4.0 for 3.0? failed, forcing 4.2 for 3.0? failed, forcing 4.0? failed, forcing 4.2? failed, what?
Compiling native CydiaSubstrate stub...
/bin/sh: /usr/bin/g++-4.2: No such file or directory
make[3]: *** [obj/macosx/Hooker.cc.o] Error 127
make[2]: *** [internal-framework-all_] Error 2
make[1]: *** [CydiaSubstrate.all.framework.variables] Error 2
make: *** [CydiaSubstrate] Error 2
cp: obj/macosx/CydiaSubstrate: No such file or directory
cp: libsubstrate.dylib: No such file or directory
Making all for tweak test...
Preprocessing Tweak.xm...
Compiling Tweak.xm...
/bin/sh: /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/g++-4.2: No such file or directory
make[2]: *** [obj/Tweak.xm.o] Error 127
make[1]: *** [internal-library-all_] Error 2
make: *** [test.all.tweak.variables] Error 2
maybe it's because i tried to build the tweaks for iOS 5, or iOS 4.3.3 - iPad
and if it's not the problem can u please explain me how to build my tweaks to support iOS 5 or iOS 4.3.3 iPad 2.
i tried everything. If someone will help me with that it will be great.
Hey guys im on ipad 2 3g ios 5.1.1
Anyway i tried compiling an app through theos and this is the problem
I find the helloworld directory with makefile and through terminal i type make
It says it's compiling but it then gives me this error
/bin/sh: /usr/bin/arm-apple-darwin9-g++: no such file ir directory
make [2] : *** [obj/main.mm.o] Error 127
make [1] : *** [internal-tool-all_] Error 2
make: *** [helloworld.all.tool.variables] Error 2
Using this theos template
Choose template: 4 (iphone/tool)
Project Name: helloworld
Package Name: com.memyself.helloworld
Author Maintainer Name: me myself
I get that its looking for arm-apple-darwin9-g++ in /usr/bin (i have arm-apple-darwin9-c++ in that directory)
But what is that and where do i get? Oh and what are those errors i dont get it at all help
after make:
theos/makefiles/common.mk:38: makefiles/legacy.mk: No such file or directory
theos/makefiles/common.mk:51: *** You did not specify a target, and the "" platform does not define a default target. Stop.
My Makefile:
include theos/makefiles/common.mk
APPLICATION_NAME = SomeTest
SomeTest_FILES = main.m SomeTestApplication.mm RootViewController.mm
include $(THEOS_MAKE_PATH)/application.mk
I used Application template with nic.pl to create project
Im currently working on a project that requires a private framework, i have the framework but can't figure where to put it in my theos directory and how to add it to the makefile. Sorry for my noobishness, still a newly to theos. Can you help?
Thanks
Hi so I am trying to make my first jailbreak tweak and I am using theos. I am trying to compile my tweak and I keep getting this error.
I think its a theos problem because it ask me submit a bug report. can somebody tell me what wrong or if I am doing something wrong. Thanks!
"Tweak.xm:1: error: expected identifier before string constant
Tweak.xm:1: internal compiler error: tree check: expected identifier_node, have error_mark in outer_binding, at cp/name-lookup.c:3961
Please submit a full bug report,
with preprocessed source if appropriate.
See URL:http://developer.apple.com/bugreporter for instructions.
make[2]: *** [obj/Tweak.xm.170d8b2e.o] Error 1
make[1]: *** [internal-library-all_] Error 2
make: *** [Pics4Messages.all.tweak.variables] Error 2"
hey guys,
i got this error compiling spire from xhpwn. it uses theos
from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:11,
from /Users/luccagalo/Documents/SiBRi/4s/theos/Prefix.pch:3,
from :2:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObject.h:43: error: expected unqualified-id before ‘class’
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObject.h:43: error: expected unqualified-id before ‘class’
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObject.h:43: error: expected unqualified-id before ‘class’
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObject.h:44: error: ‘SBAssistantUnavailableView’ was not declared in this scope
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObject.h:44: error: expected primary-expression before ‘,’ token
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObject.h:44: error: expected primary-expression before ‘,’ token
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObject.h:44: error: ‘CGRect’ was not declared in this scope
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObject.h:44: error: initializer expression list treated as compound expression
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObject.h:44: error: ‘SBAssistantUnavailableView’ was not declared in this scope
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObject.h:44: error: expected primary-expression before ‘,’ token
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObject.h:44: error: expected primary-expression before ‘,’ token
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObject.h:44: error: ‘CGRect’ was not declared in this scope
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObject.h:44: error: initializer expression list treated as compound expression
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObject.h:44: error: ‘NSBundle’ was not declared in this scope
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObject.h:44: error: expected primary-expression before ‘,’ token
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObject.h:44: error: expected primary-expression before ‘,’ token
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObject.h:44: error: expected primary-expression before ‘’ token
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObject.h:44: error: expected primary-expression before ‘,’ token
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObject.h:44: error: expected primary-expression before ‘’ token
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObject.h:44: error: expected primary-expression before ‘,’ token
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObject.h:44: error: expected primary-expression before ‘’ token
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObject.h:44: error: expected primary-expression before ‘)’ token
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObject.h:44: error: initializer expression list treated as compound expression
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObject.h:44: error: ‘NSBundle’ was not declared in this scope
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObject.h:44: error: expected primary-expression before ‘,’ token
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObject.h:44: error: expected primary-expression before ‘,’ token
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObject.h:44: error: expected primary-expression before ‘’ token
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObject.h:44: error: expected primary-expression before ‘,’ token
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObject.h:44: error: expected primary-expression before ‘’ token
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObject.h:44: error: expected primary-expression before ‘,’ token
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObject.h:44: error: expected primary-expression before ‘’ token
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObject.h:44: error: expected primary-expression before ‘)’ token
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObject.h:44: error: initializer expression list treated as compound expression
Hooks.xmi:23: error: redefinition of ‘objc_object* _logos_method$_ungrouped$SBAssistantUnavailableView$initWithFrame$’
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObject.h:44: error: ‘objc_object* _logos_method$_ungrouped$SBAssistantUnavailableView$initWithFrame$’ previously defined here
Hooks.xmi:23: error: ‘SBAssistantUnavailableView’ was not declared in this scope
Hooks.xmi:23: error: ‘self’ was not declared in this scope
Hooks.xmi:23: error: expected primary-expression before ‘_cmd’
Hooks.xmi:23: error: expected primary-expression before ‘frame’
thanks
Here is error code:
[1.] iphone/application
[2.] iphone/library
[3.] iphone/preference_bundle
[4.] iphone/tool
[5.] iphone/tweak
Choose a Template (required): 1
Project Name (required): Helloworld
Package Name [com.yourcompany.helloworld]: com.bupt.helloworld
Author/Maintainer Name [Xilong Wu]: fusion
Instantiating iphone/application in helloworld/...
No such file or directory at /opt/theos/bin/lib/NIC/Formats/NIC1.pm line 144, line 4.
i haven't use theos for one time because of this error....so please help me
I made a fully functional tweak with theos and I need to use an image file in it , the code for getting the image is correct (tested on Xcode) . but the image isn't included in the final DEB file .
and I have this makefile :
SDKVERSION=6.0
include theos/makefiles/common.mk
include theos/makefiles/tweak.mk
TWEAK_NAME = MyTweak
MyTweak_FRAMEWORKS = Foundation CoreGraphics UIKit
MyTweak_FILES = Tweak.xm image.png
include $(THEOS_MAKE_PATH)/tweak.mk
But when I try to compile I get :
No rule to make target obj/image.png.o', needed by
obj/MyTweak.dylib'. Stop.
what can I do to include it ??
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.