Doesn't compile using Swift 5.8 (version in the latest Xcode, 14.3)
Closed this issue · 2 comments
otaviocc commented
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:
- Clone the repo
- Open the project
- Compile
Swift Package:
- Clone the repo
- 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
otaviocc commented
Hey folks, any updates here? I've updated the PR to match the current behavior, it should be good to go.
nsingh-branch commented
This was fixed in the latest release, v1.4.1.