bwiz
bwiz

Reputation: 407

Compiler Flag -fno-objc-arc not working in Swift

My program is being written in Swift, with a class dependency on a "no leak SKShapeNode." This class is written in Obj-C and therefore needs compiler flags to be used. I implemented the -fno-objc-arc on the SKShapeNodeLeakFree.m file yet the compiler still doesn't detect that ARC is disabled.

Compile Flag

enter image description here

Upvotes: 1

Views: 666

Answers (1)

Rob
Rob

Reputation: 438092

The -fno-objc-arc setting in the "Compile Sources" of your target's "Build Phases" looks fine.

It looks like you must have incorrectly imported the .m file in the bridging header. You should #import the .h file in the bridging header. That would explain why you're seeing Objective-C ARC messages under the "Swift Compiler Error" section.

Upvotes: 1

Related Questions