Use macosx target for respring_simulator, which resolves a compatibility issue with macOS 10.12 Sierra. Created an empty dummy control file in respring_simulator's directory to work around a Theos bug.

This commit is contained in:
Karen Tsai
2016-10-13 16:32:22 -04:00
parent 75afae4848
commit 509090e84a
5 changed files with 27 additions and 28 deletions
+11 -22
View File
@@ -1,30 +1,19 @@
THEOS_PACKAGE_DIR_NAME = debs
TARGET = simulator:clang
ARCHS = x86_64 i386
DEBUG = 0
GO_EASY_ON_ME = 1
PACKAGE_VERSION = $(THEOS_PACKAGE_BASE_VERSION)
include $(THEOS)/makefiles/common.mk
AGGREGATE_NAME = simjectProject
SUBPROJECTS = simject simjectUIKit respring_simulator
include $(THEOS_MAKE_PATH)/aggregate.mk
after-all::
@echo Copying binaries...
@mkdir -p bin
@cp -v $(THEOS_OBJ_DIR)/respring_simulator $(THEOS_OBJ_DIR)/simject.dylib $(THEOS_OBJ_DIR)/simjectUIKit.dylib bin
all::
@make -C respring_simulator
@make -C simject
@make -C simjectUIKit
clean::
@rm -rfv bin
@make -C respring_simulator clean
@make -C simject clean
@make -C simjectUIKit clean
setup:: clean all
@sudo mkdir -p /opt/simject
@sudo chown -R $(USER) /opt/simject
@cp -v bin/simject.dylib /opt/simject
@cp -v simject/simject.plist /opt/simject
@cp -v bin/simjectUIKit.dylib /opt/simject
@cp -v simjectUIKit/simjectUIKit.plist /opt/simject
@cp bin/simject.dylib /opt/simject
@cp simject/simject.plist /opt/simject
@cp bin/simjectUIKit.dylib /opt/simject
@cp simjectUIKit/simjectUIKit.plist /opt/simject
@echo Done. Place your tweak\'s dynamic libraries and accompanying property lists inside /opt/simject to load them in the iOS Simulator.
+6 -6
View File
@@ -1,9 +1,4 @@
# TODO: This is a rather poor hack-job because respring_simulator ends up being compiled with the simulator target
# Targeting the simulator for a macOS binary no longer works as of macOS 10.12
# However, changing this target to macosx:clang results in a Theos error for the time being
# I'll change this after I fix the corresponding issue in Theos.
TARGET = simulator:clang
# TARGET = macosx:clang
TARGET = macosx:clang
ARCHS = x86_64 i386
DEBUG = 0
GO_EASY_ON_ME = 1
@@ -15,3 +10,8 @@ respring_simulator_FILES = respring_simulator.mm ../simjectCore.mm
respring_simulator_CFLAGS = -Wno-deprecated-declarations
include $(THEOS_MAKE_PATH)/tool.mk
after-all::
@echo Copying binaries...
@mkdir -p ../bin
@cp $(THEOS_OBJ_DIR)/respring_simulator ../bin/
View File
+5
View File
@@ -9,3 +9,8 @@ TWEAK_NAME = simject
simject_FILES = simject.xm ../simjectCore.mm
include $(THEOS_MAKE_PATH)/tweak.mk
after-all::
@echo Copying binaries...
@mkdir -p ../bin
@cp $(THEOS_OBJ_DIR)/simject.dylib ../bin/
+5
View File
@@ -9,3 +9,8 @@ TWEAK_NAME = simjectUIKit
simjectUIKit_FILES = simjectUIKit.xm ../simjectCore.mm
include $(THEOS_MAKE_PATH)/tweak.mk
after-all::
@echo Copying binaries...
@mkdir -p ../bin
@cp $(THEOS_OBJ_DIR)/simjectUIKit.dylib ../bin/