-
Notifications
You must be signed in to change notification settings - Fork 46
Open
Labels
Description
Describe the bug
In 8.4.0, can't compile app in xcode (iOS)
Cannot find type 'BranchAttributionLevel' in scope - ios - BranchService.swift
func setConsumerProtectionAttributionLevel(level: String) -> Void {
var attributionLevel: BranchAttributionLevel
switch level {
case "FULL":
attributionLevel = BranchAttributionLevel.full
case "REDUCED":
attributionLevel = BranchAttributionLevel.reduced
case "MINIMAL":
attributionLevel = BranchAttributionLevel.minimal
case "NONE":
attributionLevel = BranchAttributionLevel.none
default:
return
}
Branch.getInstance().setConsumerProtectionAttributionLevel(attributionLevel)
}
Steps to reproduce
- Add 8.4.0 to app
- Try to build in xcode
Expected behavior
Should build
SDK Version
8.4.0
Make and Model
Not applicable
OS
ios
Additional Information/Context
As this is in a new function introduced in 8.4.0 (that I am not using) I was just able to comment out to get it to build
func setConsumerProtectionAttributionLevel(level: String) -> Void {
// var attributionLevel: BranchAttributionLevel
//
// switch level {
// case "FULL":
// attributionLevel = BranchAttributionLevel.full
// case "REDUCED":
// attributionLevel = BranchAttributionLevel.reduced
// case "MINIMAL":
// attributionLevel = BranchAttributionLevel.minimal
// case "NONE":
// attributionLevel = BranchAttributionLevel.none
// default:
// return
// }
//
// Branch.getInstance().setConsumerProtectionAttributionLevel(attributionLevel)
}