Reputation: 407
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.
Upvotes: 1
Views: 666
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