Skip to content

Commit

Permalink
Add preliminary macOS support
Browse files Browse the repository at this point in the history
  • Loading branch information
kabiroberai committed Jan 15, 2021
1 parent cea8f53 commit 856341a
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ ifeq ($(_THEOS_FINAL_PACKAGE),$(_THEOS_TRUE))
$(ECHO_NOTHING)cp -a $(THEOS_OBJ_DIR)/dSYMs/Orion.framework.dSYM $(DSYM_DIR)$(ECHO_END)
endif
$(ECHO_NOTHING)xcrun tapi stubify $(SDK_DIR)/Orion$(ECHO_END)
$(ECHO_NOTHING)if [[ -L $(SDK_DIR)/Orion ]]; then \
ln -s Versions/Current/Orion.tbd $(SDK_DIR)/Orion.tbd; \
rm $(SDK_DIR)/Versions/Current/Orion; \
fi$(ECHO_END)
$(ECHO_NOTHING)rm $(SDK_DIR)/Orion $(SDK_DIR)/Modules/Orion.swiftmodule/*.swiftmodule$(ECHO_END)
$(ECHO_NOTHING)rm -rf $(THEOS_STAGING_DIR)/Library/Frameworks/Orion.framework/{Headers,Modules}$(ECHO_END)

Expand Down
4 changes: 2 additions & 2 deletions Orion.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,7 @@
);
MACOSX_DEPLOYMENT_TARGET = 10.14.4;
MARKETING_VERSION = 0.9.0;
OTHER_LDFLAGS = "-lsubstrate";
OTHER_LDFLAGS = "-weak-lsubstrate";
PRODUCT_BUNDLE_IDENTIFIER = dev.theos.orion;
PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)";
SKIP_INSTALL = NO;
Expand Down Expand Up @@ -557,7 +557,7 @@
);
MACOSX_DEPLOYMENT_TARGET = 10.14.4;
MARKETING_VERSION = 0.9.0;
OTHER_LDFLAGS = "-lsubstrate";
OTHER_LDFLAGS = "-weak-lsubstrate";
PRODUCT_BUNDLE_IDENTIFIER = dev.theos.orion;
PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)";
SKIP_INSTALL = NO;
Expand Down
5 changes: 5 additions & 0 deletions Sources/OrionBackend_Substrate/SubstrateBackend.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ extension Backends {
/// if the target system has CydiaSubstrate – or another hooking
/// framework which vends its API – installed, this backend makes
/// for a sensible default choice.
///
/// - Warning: Do not use this backend if the target system does not
/// have a framework which vends the CydiaSubstrate APIs. Doing so
/// will result in the process crashing with an "undefined symbols"
/// error.
public struct Substrate: DefaultBackend {
public init() {}
}
Expand Down

0 comments on commit 856341a

Please sign in to comment.