I'm seeing the following error in the debugger console:
objc[76025]: Class ZDKObservationToken is implemented in both /MyProject/Build/Products/Debug-iphonesimulator/MessagingAPI.framework/MessagingAPI (0x1088bf6c8) and /MyProject/Build/Products/Debug-iphonesimulator/ChatProvidersSDK.framework/ChatProvidersSDK (0x109be0b60). One of the two will be used. Which one is undefined.
These following frameworks are imported for our Zendesk Chat feature. Removing any results in compiler error:
import ChatSDK
import ChatProvidersSDK
import Foundation
import MessagingSDK
Specifiying Zendesk in Package.swift:
// swift-tools-version:5.5
// The swift-tools-version declares the minimum version of Swift required to build this package.
import PackageDescription
let package = Package(
name: “My”Project,
platforms: [.iOS(.v14)],
products: [
.library(
name: "ZDesk",
targets: ["ZDesk"]
)
],
dependencies: [
.package(
name: "ZendeskChatSDK",
url: "https://github.com/zendesk/chat_sdk_ios",
.upToNextMajor(from: "2.0.0")
),
.package(
name: "ZendeskSupportSDK",
url: "https://github.com/zendesk/support_sdk_ios",
.upToNextMajor(from: "5.0.0")
)
],
targets: [
.target(
name: "ZDesk",
dependencies: [
"ZendeskChatSDK",
"ZendeskSupportSDK"
]
)
]