@mgfjxgmail wrote:
目录结构是这样的
外层’Makefile’是:THEOS_DEVICE_IP = localhost THEOS_DEVICE_PORT = 5555 ARCHS = armv7 arm64 TARGET = iphone:latest:7.0 include $(THEOS)/makefiles/common.mk TWEAK_NAME = VolumeControl VolumeControl_FILES = $(wildcard src/*.xm) VolumeControl_FRAMEWORKS = UIKit CoreGraphics AudioToolbox AVFoundation VolumeControl_PRIVATE_FRAMEWORKS = MediaRemote VolumeControl_EXTRA_FRAMEWORKS += Cephei VolumeControl += -Wl,-segalign,4000 VolumeControl_CFLAGS = -Wno-deprecated -Wno-deprecated-declarations include $(THEOS_MAKE_PATH)/tweak.mk after-install:: install.exec "killall -9 SpringBoard" SUBPROJECTS += Preferences include $(THEOS_MAKE_PATH)/aggregate.mk
'Preferences’文件夹下的’Makefile’是:
THEOS_DEVICE_IP = localhost include $(THEOS)/makefiles/common.mk BUNDLE_NAME = VolumeControl VolumeControl_FILES = XXXRootListController.m VolumeControl_INSTALL_PATH = /Library/PreferenceBundles VolumeControl_FRAMEWORKS = UIKit VolumeControl_PRIVATE_FRAMEWORKS = Preferences include $(THEOS_MAKE_PATH)/bundle.mk internal-stage:: $(ECHO_NOTHING)mkdir -p $(THEOS_STAGING_DIR)/Library/PreferenceLoader/Preferences$(ECHO_END) $(ECHO_NOTHING)cp entry.plist $(THEOS_STAGING_DIR)/Library/PreferenceLoader/Preferences/VolumeControl.plist$(ECHO_END)
然后在iOS 11上可以正常编译使用,但是再iOS 10和iOS 9上可以编译,但是再设置里面进入后确显示’There was an error loading the preference bundle for’,第一次做插件,希望得到大家帮助(Cydia open source 部分项目也看过,实在找不到原因),求教。
Posts: 1
Participants: 1