For compatibility I regrettably need to use methods that were deprecated in iOS 9, and it generates warnings that I am not able to suppress after 15 hours of trying. Example:
'CFWriteStreamCreateWithFTPURL' was deprecated in iOS 9.0: Use NSURLSessionAPI for ftp requests'
I have tried:
- project>target>Build Phases>click on appropriate file, and select flag -w
- project>target>Build Phases>click on appropriate file, and select flag -(specific flag for error)
- project>project>Build Settings>Apple LLVM 7.0 - Warnings - All Languages>Depreciated Functions> No
- project>project>Build Settings>Apple LLVM 7.0 - Warnings - Objective C>Overriding Depreciated Objective C Methods>No
- tried finding pragma alternative but it looks like it is not possible
- Edit: I need to use depreciated methods regardless of what OS version is on device
I can suppress warnings in ObjC, but it just doesn't seem to work in Swift 2.0 and I have to admit that it's starting to really bug me, I know that I have to use different methods eventually, but right now it is not possible.
How do you suppress warnings in Xcode 7/Swift 2?