iphone – THEOS编译错误

我刚开始玩THEOS,发现它很好用.但不幸的是,我发现了以下错误.

theos/makefiles/common.mk:64: //makefiles/legacy.mk: No such file or directory
theos/makefiles/common.mk:77: *** You did not specify a target, and the "" platform does not define a default target.  Stop.

我的makefile是

SDKVERSION=5.0
TARGET=iphone

TWEAK_NAME = Sample
Sample_FILES = Tweak.xm

include theos/makefiles/common.mk
include $(THEOS_MAKE_PATH)/tweak.mk

我尽我所能,但此时没有运气.有人有解决方案吗?

提前致谢.

顺便说一句,我在使用XCode 3.2.3的Snow Leopord 10.6.6(iphone sdk 4.0)

最佳答案 _FILES,_FRAMEWORKS等的前缀必须与TWEAK_NAME,BUNDLE_NAME等相同.

因此,您应该将TWEAK_NAME更改为mytweak或将前缀更改为Sample.

点赞