本文介绍了为theos构建系统启用ARC的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在使用theos构建系统为越狱的iPhone编写应用程序和调整。有没有办法让我为特定项目启用自动引用计数呢?

I'm currently using the theos build system to write applications and tweaks for jailbroken iPhones. Is there a way for me to enable automatic reference counting for specific projects with theos?

我用Google搜索并尝试破译theos makefile,但我还没有能找到任何东西。

I've Googled and tried to decipher the theos makefiles, but I haven't been able to find anything.

推荐答案

参见

ARCHS=armv7 armv7s
TARGET_IPHONEOS_DEPLOYMENT_VERSION = 6.0
TARGET_CC = xcrun -sdk iphoneos clang 
TARGET_CXX = xcrun -sdk iphoneos clang++
TARGET_LD = xcrun -sdk iphoneos clang++
SHARED_CFLAGS = -fobjc-arc

include theos/makefiles/common.mk

TWEAK_NAME = BrightnessFix
BrightnessFix_FILES = Tweak.xm
BrightnessFix_FRAMEWORKS = UIKit

include $(THEOS_MAKE_PATH)/tweak.mk

SHARED_CFLAGS = -fobjc-arc

是你的厕所国王。

这篇关于为theos构建系统启用ARC的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-12 23:51