How to add ARC for a single .dylib file

In the recent Penetration test of our iOS app we found a vulnerability that {appName}.app/Frameworks/libswiftCoreImage.dylib does not enforce automatic reference counting protection.How to enable the ARC for .dylib files, I could not find the file anywhere in the project, please help me in fixing this.

Replies

Use of ARC is set on a source file by source file basis. The linker will happily combine multiple object (.o) files with different ARC settings. This means there’s no such thing as the ARC setting for a specific dynamic library.

libswiftCoreImage.dylib is part of the Swift runtime libraries provided by Apple. Xcode includes it automatically. You can’t remove it (assuming you use Core Image) and you can’t change how it’s built.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"