Tweak 加上 application 的資料結構,想要一次透過單一makefile完成兩項的安裝,但是程序卡死在installing


#1

嘗試:之前嘗試過用aggregate project的方式安裝tweak and apps. 但是我遇到的問題是aggregate的subproject makefile沒有被確實執行after-stage。但如果我改把subproject的makefile的after-stage拿到main project的makefile可以成功執行,但是卻會有異常狀況。

需求:因此我想到為何不直接把makefile寫成同一份,我是參照一個開放專案的makefile去實作:

問題是我可以成功的package…卻卡死在installing一直不給安裝。想請問大大該如何解????
以下是我的makefile. 在分開的情況下可以各自安裝,但是一起安裝就會卡死。

include $(THEOS)/makefiles/common.mk

ARCHS = armv7 arm64
TARGET = iphone:latest:8.1
THEOS_DEVICE_IP=127.0.0.1
THEOS_DEVICE_PORT=2222

TWEAK_NAME = TestTweak
TestTweak_FILES = Tweak.xm
TestTweak_FILES += Test/Constants.m
TestTweak_LDFLAGS = -lsqlite3 \
	-isysroot $(SYSROOT) \
	-w \
	-F/System/Library/PrivateFrameworks \
	-lobjc \
	-framework Foundation \
	-framework CoreFoundation \
	-framework AppSupport
TestTweak_LIBRARIES = rocketbootstrap imounbox
TestTweak_INSTALL_PATH = /Library/MobileSubstrate/DynamicLibraries/

# Never remove this line below, otherwise, aggregate project will only work with subprojects
include $(THEOS_MAKE_PATH)/tweak.mk

#test start

APPLICATION_NAME = Test
Test_CFLAGS = -I./headers -I$(SYSROOT)/usr/include/libxml2 \
	-isysroot $(SYSROOT) \
	-Wall \
	-c
Test_FILES += $(wildcard Test/*.m)
Test_FILES += $(wildcard Test/SQLiteManager/*.m)
Test_FILES += $(wildcard Test/EquipmentInfo/*.m)
Test_FILES += $(wildcard Test/Objective-C-HMTL-Parser/*.m)
Test_FILES += $(wildcard Test/HttpRequest/*.m)
Test_FILES += $(wildcard Test/Helpers/*.m)
Test_FILES += $(wildcard Test/Manager/*.m)

Test_FRAMEWORKS = UIKit CoreGraphics
Test_PRIVATE_FRAMEWORKS = MobileInstallation IOKit
Test_LIBRARIES = applist rocketbootstrap
Test_LDFLAGS = -lsqlite3 -lxml2 \
	-isysroot $(SYSROOT) \
	-w \
	-F/System/Library/PrivateFrameworks \
	-lobjc \
	-framework Foundation \
	-framework CoreFoundation \
	-framework AppSupport
Test_CODESIGN_FLAGS = -Sentitlements.xml
Test_INSTALL_PATH = /Applications/

include $(THEOS_MAKE_PATH)/application.mk

after-Test-stage::
	$(ECHO_NOTHING)chmod +s $(THEOS_STAGING_DIR)/Applications/Test.app/Test$(ECHO_END)

after-install::
	install.exec "su mobile -c uicache"
	install.exec "killall -9 SpringBoard"

平台:ios 8.1.2


#2

后来一直重新make clean就好莫名其妙的好了,之后出现其他的异常,但根本主题无关了。结桉