.a 静态库无法调用

自己建的libtestLib.a静态库, theos无法调用成功,求指点
makefile 如下:

THEOS_DEVICE_IP = localhost
THEOS_DEVICE_PORT = 2222
DEBUG = 1
ARCHS = armv7 arm64
TARGET = iphone:latest:8.0

include $(THEOS)/makefiles/common.mk

TWEAK_NAME = youShaQiAndy

youShaQiAndy_FILES = Tweak.xm
youShaQiAndy_FRAMEWORKS = UIKit

youShaQiAndy_LDFLAGS += libtestLib.a
youShaQiAndy_LDFLAGS := -L.

include $(THEOS_MAKE_PATH)/tweak.mk

after-install::
install.exec “killall -9 YouShaQi”

库态库.a 与 .h 应该怎么放? Makefile 应该怎么设置

youShaQiAndy_LIBRARIES = testLib

1 个赞