I'm trying to use an open source solution which relies on Availability
macros, Objective-C files I added to my Swift project import the necessary header:
#import "Availability.h"
(tried changing "" for <> as well)
I understand that its a part of Foundation framework, which I added in the Linked Frameworks and Libraries
section. However, all the Availability-specific lines of code are ignored and I end up having Duplicate interface definition
errors, whereas these are supposed to be platform/iOS version-specific definitions.
I've tried adding/removing the framework, Cleaning
/Cleaning build folder
, as per all the suggestions in this question and others, tried restarting Xcode - nothing helped.
How do I use Availability in Objective-C files imported to Swift project using Bridging header?
Setup: Xcode 7.3