BranchMetrics/ios-branch-deep-linking-attribution

Unable to build for MacOS

Closed this issue · 0 comments

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

  1. Install latest Branch version with SPM
  2. Enable support for MacOS device
  3. 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