Enable ARC for theos build system

I am currently using theos build system to write applications and settings for jailbroken iPhones. Is there a way to enable automatic link counting for specific projects using theos?

I have Googled and tried to decrypt theos make files, but I could not find anything.

+4
source share
2 answers

See https://github.com/Maxner/BrightnessFix/blob/master/Makefile

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

- this is what you are looking for.

+4
source

I am not going to ignore the above answer because I suspect that this may be related to different versions of theos , and the answer above definitely set me on the right path to find what I need. It turns out, at least for my version of theos , the setup environment variable is -

 ADDITIONAL_OBJCFLAGS = -fobjc-arc 

( ADDITIONAL_CFLAGS also an option, but I don’t think there is a possibility, when it is important, whether you allow the inclusion of ARC in direct code).

+12
source

All Articles