Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/b3ll/xcode-theos
Attempts to use Theos/Logos with Xcode
https://github.com/b3ll/xcode-theos
Last synced: about 2 months ago
JSON representation
Attempts to use Theos/Logos with Xcode
- Host: GitHub
- URL: https://github.com/b3ll/xcode-theos
- Owner: b3ll
- Created: 2014-03-24T23:13:01.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2014-12-04T03:11:52.000Z (about 10 years ago)
- Last Synced: 2023-04-11T19:41:43.538Z (over 1 year ago)
- Language: Objective-C
- Size: 149 KB
- Stars: 53
- Watchers: 7
- Forks: 10
- Open Issues: 0
-
Metadata Files:
- Readme: README.mdown
Awesome Lists containing this project
README
# Xcode + Theos
## aka xctheos### Intro
Basically this is a crazy amount of abuse of the C Preprocessor to allow you to write stuff using [Theos / Logos](http://iphonedevwiki.net/index.php/Theos) inside Xcode.**Mostly works, but I'm pretty sure I haven't finished this yet. Sorta just fixing things as I go...**
### How do I xctheos?
When compiling with theos be sure to add to your Makefile:
```
PROJECT_CFLAGS = -DUSE_THEOS
``````
#import "xctheos.h"#import
#import// Instead of %group stuff
GROUP(stuff)// Instead of %hook NSDate
HOOK(NSDate)- (NSString *)description {
return @"I'm not sure".
}END()
// OR
// If you haven't declared a class yet
HOOK_AND_DECLARE(SBApplicationController)- (NSString *)description {
return @"Some application controller";
}END()
END_GROUP()
CTOR({
INIT(stuff)
})
```In Xcode, you'll want to create a static library as a target, set your Tweak.xmi file as something to compile. In addition you'll want to (in the inspector) set its file type to Objective-C++.
### Why?
Because Xcode. Also because I haven't written a plugin for Xcode to use theos as an external preprocessor.### License?
Pretty much the BSD license, just don't repackage it and call it your own please!Also if you do make some changes, feel free to make a pull request and help make things more awesome!
### Contact Info?
Feel free to follow me on twitter: [@b3ll](https:///www.twitter.com/b3ll)!### Special Thanks
[@DHowett](https://www.twitter.com/dhowett) for writing theos!