BranchMetrics/mac-branch-deep-linking

Doesn't compile using Swift 5.8 (version in the latest Xcode, 14.3)

Closed this issue · 2 comments

Describe the bug

The project won't compile using Swift 5.8. Below an example using swift build, but the issue can be reproduced using Xcode as well.

~/D/T/mac-branch-deep-linking ❯❯❯ swift build
Building for debugging...
/Users/me/Developer/Temp/mac-branch-deep-linking/Branch/BranchQRCode.m:115:52: error: 'new' is unavailable
    NSString *branchAPIURL = [[BranchConfiguration new] branchAPIServiceURL];
                                                   ^
/Users/me/Developer/Temp/mac-branch-deep-linking/Branch/BranchMainClass.h:28:1: note: 'init' has been explicitly marked unavailable here
- (instancetype) init NS_UNAVAILABLE;
^
1 error generated.
[7/30] Compiling Branch BNCUserAgentCollector.m

Thanks.

Steps to reproduce

Xcode:

  1. Clone the repo
  2. Open the project
  3. Compile

Swift Package:

  1. Clone the repo
  2. Run swift build

Expected behavior

It should compile.

SDK Version

1.4.0

Xcode Version

14.3

OS

13.2.1

Additional Information/Context

No response

Hey folks, any updates here? I've updated the PR to match the current behavior, it should be good to go.

This was fixed in the latest release, v1.4.1.