Make编译报错

新建的一个干净的tweak工程,执行make编译出错,新手求指导!

[jun]:iosreproject Zohar$ make
/Users/juns/Desktop/iosDev/iosreproject/theos/makefiles/targets/Darwin/iphone.mk:41: Deploying to iOS 3.0 while building for 6.0 will generate armv7-only binaries.
Making all for tweak iosreproject...
 Linking tweak iosreproject...
clang: warning: libstdc++ is deprecated; move to libc++ with a minimum deployment target of iOS 7
ld: library not found for -ldylib1.o
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [obj/iosreproject.dylib.ba964c90.unsigned] Error 1
make[1]: *** [internal-library-all_] Error 2
make: *** [iosreproject.all.tweak.variables] Error 2

你这个版本有问题吧 贴makefile看看

xcrun --sdk iphoneos --show-sdk-path
得到你的SDK版本

export SDKVERSION=10.3
10.3 替换成你的SDK版本

try it.

1 个赞

解决了,谢谢啊

JoeMac:comkainuomiliao joe$ make
/Users/joe/Desktop/聊天备份/聊天18-04-02/comkainuomiliao/theos/makefiles/targets/Darwin/iphone.mk:41: Deploying to iOS 3.0 while building for 6.0 will generate armv7-only binaries.
Making all for tweak comkainuomiliao…
Preprocessing Tweak.xm…
Compiling Tweak.xm…
Linking tweak comkainuomiliao…
clang: warning: libstdc++ is deprecated; move to libc++ with a minimum deployment target of iOS 7 [-Wdeprecated]
ld: library not found for -ldylib1.o
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [obj/comkainuomiliao.dylib.ba964c90.unsigned] Error 1
make[1]: *** [internal-library-all_] Error 2
make: *** [comkainuomiliao.all.tweak.variables] Error 2

我的Makefile

include theos/makefiles/common.mk
TWEAK_NAME = comkainuomiliao
comkainuomiliao_FILES = Tweak.xm

THEOS_DEVICE_IP = 10.0.0.46
ARCHS = armv7 arm64
TARGET = iphone:latest:8.0
comkainuomiliao_FRAMEWORKS = UIKit

include $(THEOS_MAKE_PATH)/tweak.mk

after-install::
install.exec “killall -9 com.MiliaoAppStore”

请问下这个报警在么消除呢

这东西应该是在sdk里的。你这里的问题的话,先试试把 TARGET = iphone:latest:8.0删掉,如果还失败的话看下你的sdk是不是缺东西。单独开个贴吧

请问下 在哪儿发帖呢,我没找到发帖按钮,麻烦告诉下

右上角

谢谢你,昨天确实没有这个按钮,我是昨天刚注册的