Code Monkey home page Code Monkey logo

theos's Introduction

Theos

A cross-platform build system for creating iOS,
macOS, Linux, and Windows programs.

HomeInstallationDocumentationGet Help@[email protected]@theosdevDiscord

Contributors


kirb

uroboro

kabiroberai

DHowett

rpetrich

Thanks to the following people for contributing to Theos in the past: Aehmlo, akemin-dayo, ARM64Darwin1820, ArtikusHG, benrosen78, brendonjkding, conradev, coolstar, DavidSkrundz, DGh0st, Diatrus, dlevi309, DuIslingr, elihwyma, eswick, evelyneee, hirakujira, inoahdev, kemmis, lechium, leptos-null, liuxuan30, mstg, Naville, neoighodaro, nin9tyfour, NSExceptional, opa334, PoomSmart, quiprr, r-plus, Rand01ph, ryannair05, sbingner, Shade-Zepheri, supermamon, theiostream, Tyilo, vsnrain

License

See LICENSE.md for licensing information.

theos's People

Contributors

akemin-dayo avatar brendonjkding avatar captinc avatar coolstar avatar crkatri avatar dhowett avatar duislingr avatar elihwyma avatar eswick avatar kabiroberai avatar kemmis avatar kirb avatar l1ghtmann avatar lessica avatar liuxuan30 avatar mstg avatar nin9tyfour avatar nsexceptional avatar opa334 avatar poomsmart avatar poopsicles avatar qtlunya avatar r-plus avatar rpetrich avatar sbingner avatar supermamon avatar swiftwinds avatar theiostream avatar theosbot avatar uroboro avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

theos's Issues

Need help compiling the project.

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.

error compiling

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

Theos not being installed in IOS 6.0

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.

SDK 3.2 and the iPad

okay two questions,

  1. how do you force theos to use the 3.2 sdk (is it as simple replacing the 2.0 sdk with the 3.2 one? and
  2. how would you develop a simple gui application for iPad using the sdk

Documentation Make Fails

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

Logos on Mac

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?

5.1 Help with theos and darwin9 g++

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

Install paths with spaces in them

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

Query from ipod Library

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).

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.

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

Make error

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

Error compilating project in Theos through MobileTerminal

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.

Cowardly refusing to make a project inside $THEOS

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.

Theos glitch problem

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"

Including .xib files in Makefile

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.

tpm - theos package manager

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

specified app kill env instead of SpringBoard

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"

make package fails with GNU du

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

Entitlement support request

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.

Dependency com.chpwn.weeloader 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.

Instantiating Failed

Here is error code:

NIC 1.0 - New Instance Creator

[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 need help with compiling the project

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.

Not creating makefile after

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

A6 .nic clang

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

Theos Compile Error

this is my Tweak.xm

Code:

import <SpringBoard/SpringBoard.h>

import <UIKit/UIKit.h>

%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.

Where to add private frameworks?

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

How to add my own framework into a tweak?

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

Weak Linking

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?

Reoccurrence of similar errors

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 .

How to include files in Theos makefile

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 byobj/MyTweak.dylib'. Stop.
what can I do to include it ??

_MSHookMessageEx symbol(s) not found

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!

CF* types don't get a format generated

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'

/bin/sh: -x command not found

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

Bootstrapping CydiaSubstrate not working with Xcode 4.5 and iOS 6.0 SDK

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

Cowardly refusing to create a project in $THEOS

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

How to change the dir where theos looks for iPhone SDK?

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?

objective C class

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?

Duplication Error in theos

Hi so when i import my frameworks and classes that i want to hook into using

import <ChatKit/CKTranscriptBubbledata.h I get a duplication error that says

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!

Segmentation fault: 11 when trying to add AVCaptureSession and AVCaptureVideoPreviewLayer

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

making tweak fail after upgrade my Xcode to 4.5

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?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.