{"id":21198246,"url":"https://github.com/b3ll/xcode-theos","last_synced_at":"2025-07-10T05:32:31.250Z","repository":{"id":15351419,"uuid":"18082218","full_name":"b3ll/Xcode-Theos","owner":"b3ll","description":"Attempts to use Theos/Logos with Xcode","archived":false,"fork":false,"pushed_at":"2014-12-04T03:11:52.000Z","size":153,"stargazers_count":53,"open_issues_count":0,"forks_count":10,"subscribers_count":7,"default_branch":"master","last_synced_at":"2023-04-11T19:41:43.538Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Objective-C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/b3ll.png","metadata":{"files":{"readme":"README.mdown","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-03-24T23:13:01.000Z","updated_at":"2022-03-14T09:36:44.000Z","dependencies_parsed_at":"2022-09-21T07:54:18.316Z","dependency_job_id":null,"html_url":"https://github.com/b3ll/Xcode-Theos","commit_stats":null,"previous_names":[],"tags_count":0,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/b3ll%2FXcode-Theos","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/b3ll%2FXcode-Theos/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/b3ll%2FXcode-Theos/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/b3ll%2FXcode-Theos/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/b3ll","download_url":"https://codeload.github.com/b3ll/Xcode-Theos/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225622929,"owners_count":17498168,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-20T19:50:00.257Z","updated_at":"2024-11-20T19:50:00.872Z","avatar_url":"https://github.com/b3ll.png","language":"Objective-C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Xcode + Theos\n## aka xctheos\n\n### Intro\nBasically 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.\n\n**Mostly works, but I'm pretty sure I haven't finished this yet. Sorta just fixing things as I go...**\n\n### How do I xctheos?\nWhen compiling with theos be sure to add to your Makefile:\n```\nPROJECT_CFLAGS = -DUSE_THEOS\n```\n\n```\n#import \"xctheos.h\"\n\n#import \u003cFoundation/Foundation.h\u003e\n#import \u003cUIKit/UIKit.h\u003e\n\n// Instead of %group stuff \nGROUP(stuff)\n\n// Instead of %hook NSDate\nHOOK(NSDate)\n\n- (NSString *)description { \n    return @\"I'm not sure\".\n}\n\nEND()\n\n// OR\n\n// If you haven't declared a class yet\nHOOK_AND_DECLARE(SBApplicationController)\n\n- (NSString *)description {\n    return @\"Some application controller\";\n}\n\nEND()\n\nEND_GROUP()\n\nCTOR({\n    INIT(stuff)\n})\n```\n\nIn 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++.\n\n### Why?\nBecause Xcode. Also because I haven't written a plugin for Xcode to use theos as an external preprocessor.\n\n### License?\nPretty much the BSD license, just don't repackage it and call it your own please!\n\nAlso if you do make some changes, feel free to make a pull request and help make things more awesome!\n\n### Contact Info?\nFeel free to follow me on twitter: [@b3ll](https:///www.twitter.com/b3ll)!\n\n### Special Thanks\n[@DHowett](https://www.twitter.com/dhowett) for writing theos!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fb3ll%2Fxcode-theos","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fb3ll%2Fxcode-theos","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fb3ll%2Fxcode-theos/lists"}