Hi, I have 2 frameworks written in objective-c with similar public headers like below:
1) A.framework: - x.h - y.h 2) B.framework: - x.h - y.h - z.h (extra header exposed only in this fw) I embed only one of these frameworks in my application at any given time. But I need to be changing them for bundle size restrictions. When my application was in obj-c, I use to conditionally check for headers and call the APIs like below: #if defined(__has_include) #if __has_include(<A/x.h>) #import <A/x.h> #else #import <B/x.h> #endif #endif Similar way is followed for calling APIs in particular headers like z.h in B.framework. But now I ported my application to Swift and it does not seem to recognize above symbols. Is there any alternative way to do this in swift? Thanks in advance for any help. -- Balaji M. +91 8088640610 _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com