Unable to build for MacOS
Closed this issue · 0 comments
BrettRosen commented
Describe the bug
Unable to build for MacOS even though all BranchSDK callsites are behind an iOS check flag.
Fails in UIViewController+Branch
#if __has_feature(modules)
@import UIKit; <- Here
#else
#import <UIKit/UIKit.h>
#endif
Why would the compiler be trying to build BranchSDK if all callsites are behind iOS?
Steps to reproduce
- Install latest Branch version with SPM
- Enable support for MacOS device
- Attempt to compile for Mac device
Expected behavior
Application compiles on Mac device
SDK Version
2.1.0
XCode Version
14.2
Device
Mac
OS
macOS 13.0
Additional Information/Context
No response