Skip to content

Commit

Permalink
[General] Add support to build and package with Theos
Browse files Browse the repository at this point in the history
  • Loading branch information
leptos-null committed Apr 6, 2024
1 parent 3e498da commit 1931220
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# swift
.DS_Store
/.build
/Packages
Expand All @@ -6,3 +7,6 @@ DerivedData/
.swiftpm/configuration/registries.json
.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata
.netrc
# theos
.theos/
packages/
16 changes: 16 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
TARGET := iphone:clang:latest:8.0
ARCHS := arm64

include $(THEOS)/makefiles/common.mk

TOOL_NAME = classdumpctl

classdumpctl_FILES = Sources/classdumpctl/main.m
classdumpctl_FILES += $(wildcard ClassDumpRuntime/Sources/ClassDumpRuntime/ClassDump/*/*.m)
classdumpctl_FILES += $(wildcard ClassDumpRuntime/Sources/ClassDumpRuntime/ClassDump/*/*/*.m)

classdumpctl_CFLAGS = -fobjc-arc -I ClassDumpRuntime/Sources/ClassDumpRuntime/include
classdumpctl_CODESIGN_FLAGS = -Sentitlements.plist
classdumpctl_INSTALL_PATH = /usr/local/bin

include $(THEOS_MAKE_PATH)/tool.mk
9 changes: 9 additions & 0 deletions control
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
Package: null.leptos.classdumpctl
Name: classdumpctl
Version: 0.0.1
Architecture: iphoneos-arm
Description: Dump Objective-C class and protocol headers
Maintainer: Leptos <leptos.0.null@gmail.com>
Author: Leptos <leptos.0.null@gmail.com>
Section: System
Tag: role::hacker
9 changes: 9 additions & 0 deletions entitlements.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>platform-application</key>
<true/>
<key>com.apple.private.security.container-required</key>
<false/>
</dict>
</plist>

0 comments on commit 1931220

Please sign in to comment.