The Swift Package Index logo.Swift Package Index

Track the adoption of Swift 6 strict concurrency checks for data race safety. How many packages are Ready for Swift 6?

Build Information

Failed to build AgoraUIKit_macOS, reference main (b110d3), with Swift 6.1 for macOS (SPM) on 27 Apr 2025 08:34:12 UTC.

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64

Build Log

227 |     }
228 |     open func rtcEngine(_ engine: AgoraRtcEngineKit, didAudioSubscribeStateChange channelId: String, uid: UInt32, oldState: AgoraStreamSubscribeState, newState: AgoraStreamSubscribeState, elapseSinceLastState: Int32) {
    |               |- warning: main actor-isolated instance method 'rtcEngine(_:didAudioSubscribeStateChange:uid:oldState:newState:elapseSinceLastState:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
    |               `- note: add 'nonisolated' to 'rtcEngine(_:didAudioSubscribeStateChange:uid:oldState:newState:elapseSinceLastState:)' to make this instance method not isolated to the actor
229 |         self.agoraSettings.rtcDelegate?.rtcEngine?(engine, didAudioSubscribeStateChange: channelId, uid: uid, oldState: oldState, newState: newState, elapseSinceLastState: elapseSinceLastState)
230 |     }
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraVideoViewer+RtcEngineDelegateOverflow.swift:222:15: warning: main actor-isolated instance method 'rtcEngine(_:didAudioPublishStateChange:oldState:newState:elapseSinceLastState:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
220 |         self.agoraSettings.rtcDelegate?.rtcEngine?(engine, downlinkNetworkInfoUpdate: networkInfo)
221 |     }
222 |     open func rtcEngine(_ engine: AgoraRtcEngineKit, didAudioPublishStateChange channelId: String, oldState: AgoraStreamPublishState, newState: AgoraStreamPublishState, elapseSinceLastState: Int32) {
    |               |- warning: main actor-isolated instance method 'rtcEngine(_:didAudioPublishStateChange:oldState:newState:elapseSinceLastState:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
    |               `- note: add 'nonisolated' to 'rtcEngine(_:didAudioPublishStateChange:oldState:newState:elapseSinceLastState:)' to make this instance method not isolated to the actor
223 |         self.agoraSettings.rtcDelegate?.rtcEngine?(engine, didAudioPublishStateChange: channelId, oldState: oldState, newState: newState, elapseSinceLastState: elapseSinceLastState)
224 |     }
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraVideoViewer+RtcEngineDelegateOverflow.swift:111:15: warning: main actor-isolated instance method 'rtcEngine(_:didLocalUserRegisteredWithUserId:userAccount:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
109 |         self.agoraSettings.rtcDelegate?.rtcEngine?(engine, reportAudioVolumeIndicationOfSpeakers: speakers, totalVolume: totalVolume)
110 |     }
111 |     open func rtcEngine(_ engine: AgoraRtcEngineKit, didLocalUserRegisteredWithUserId uid: UInt, userAccount: String) {
    |               |- warning: main actor-isolated instance method 'rtcEngine(_:didLocalUserRegisteredWithUserId:userAccount:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
    |               `- note: add 'nonisolated' to 'rtcEngine(_:didLocalUserRegisteredWithUserId:userAccount:)' to make this instance method not isolated to the actor
112 |         self.agoraSettings.rtcDelegate?.rtcEngine?(engine, didLocalUserRegisteredWithUserId: uid, userAccount: userAccount)
113 |     }
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraVideoViewer+RtcEngineDelegateOverflow.swift:114:15: warning: main actor-isolated instance method 'rtcEngine(_:didUserInfoUpdatedWithUserId:userInfo:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
112 |         self.agoraSettings.rtcDelegate?.rtcEngine?(engine, didLocalUserRegisteredWithUserId: uid, userAccount: userAccount)
113 |     }
114 |     open func rtcEngine(_ engine: AgoraRtcEngineKit, didUserInfoUpdatedWithUserId uid: UInt, userInfo: AgoraUserInfo) {
    |               |- warning: main actor-isolated instance method 'rtcEngine(_:didUserInfoUpdatedWithUserId:userInfo:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
    |               `- note: add 'nonisolated' to 'rtcEngine(_:didUserInfoUpdatedWithUserId:userInfo:)' to make this instance method not isolated to the actor
115 |         self.agoraSettings.rtcDelegate?.rtcEngine?(engine, didUserInfoUpdatedWithUserId: uid, userInfo: userInfo)
116 |     }
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraVideoViewer+RtcEngineDelegateOverflow.swift:186:15: warning: main actor-isolated instance method 'rtcEngine(_:didRhythmPlayerStateChanged:errorCode:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
184 |         self.agoraSettings.rtcDelegate?.rtcEngine?(engine, didClientRoleChangeFailed: reason, currentRole: currentRole)
185 |     }
186 |     open func rtcEngine(_ engine: AgoraRtcEngineKit, didRhythmPlayerStateChanged state: AgoraRhythmPlayerState, errorCode: AgoraRhythmPlayerError) {
    |               |- warning: main actor-isolated instance method 'rtcEngine(_:didRhythmPlayerStateChanged:errorCode:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
    |               `- note: add 'nonisolated' to 'rtcEngine(_:didRhythmPlayerStateChanged:errorCode:)' to make this instance method not isolated to the actor
187 |         self.agoraSettings.rtcDelegate?.rtcEngine?(engine, didRhythmPlayerStateChanged: state, errorCode: errorCode)
188 |     }
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraVideoViewer+RtcEngineDelegateOverflow.swift:165:15: warning: main actor-isolated instance method 'rtcEngine(_:firstRemoteVideoFrameOfUid:size:elapsed:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
163 |         self.agoraSettings.rtcDelegate?.rtcEngine?(engine, receiveStreamMessageFromUid: uid, streamId: streamId, data: data)
164 |     }
165 |     open func rtcEngine(_ engine: AgoraRtcEngineKit, firstRemoteVideoFrameOfUid uid: UInt, size: CGSize, elapsed: Int) {
    |               |- warning: main actor-isolated instance method 'rtcEngine(_:firstRemoteVideoFrameOfUid:size:elapsed:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
    |               `- note: add 'nonisolated' to 'rtcEngine(_:firstRemoteVideoFrameOfUid:size:elapsed:)' to make this instance method not isolated to the actor
166 |         self.agoraSettings.rtcDelegate?.rtcEngine?(engine, firstRemoteVideoFrameOfUid: uid, size: size, elapsed: elapsed)
167 |     }
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraVideoViewer+RtcEngineDelegateOverflow.swift:153:15: warning: main actor-isolated instance method 'rtcEngine(_:videoSizeChangedOf:uid:size:rotation:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
151 |         self.agoraSettings.rtcDelegate?.rtcEngine?(engine, didRejoinChannel: channel, withUid: uid, elapsed: elapsed)
152 |     }
153 |     open func rtcEngine(_ engine: AgoraRtcEngineKit, videoSizeChangedOf sourceType: AgoraVideoSourceType, uid: UInt, size: CGSize, rotation: Int) {
    |               |- warning: main actor-isolated instance method 'rtcEngine(_:videoSizeChangedOf:uid:size:rotation:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
    |               `- note: add 'nonisolated' to 'rtcEngine(_:videoSizeChangedOf:uid:size:rotation:)' to make this instance method not isolated to the actor
154 |         self.agoraSettings.rtcDelegate?.rtcEngine?(engine, videoSizeChangedOf: sourceType, uid: uid, size: size, rotation: rotation)
155 |     }
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraVideoViewer+RtcEngineDelegateOverflow.swift:168:15: warning: main actor-isolated instance method 'rtcEngine(_:contentInspectResult:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
166 |         self.agoraSettings.rtcDelegate?.rtcEngine?(engine, firstRemoteVideoFrameOfUid: uid, size: size, elapsed: elapsed)
167 |     }
168 |     open func rtcEngine(_ engine: AgoraRtcEngineKit, contentInspectResult result: AgoraContentInspectResult) {
    |               |- warning: main actor-isolated instance method 'rtcEngine(_:contentInspectResult:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
    |               `- note: add 'nonisolated' to 'rtcEngine(_:contentInspectResult:)' to make this instance method not isolated to the actor
169 |         self.agoraSettings.rtcDelegate?.rtcEngine?(engine, contentInspectResult: result)
170 |     }
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraVideoViewer+RtcEngineDelegateOverflow.swift:192:15: warning: main actor-isolated instance method 'rtcEngine(_:snapshotTaken:filePath:width:height:errCode:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
190 |         self.agoraSettings.rtcDelegate?.rtcEngine?(engine, uploadLogResultRequestId: requestId, success: success, reason: reason)
191 |     }
192 |     open func rtcEngine(_ engine: AgoraRtcEngineKit, snapshotTaken uid: UInt, filePath: String, width: Int, height: Int, errCode: Int) {
    |               |- warning: main actor-isolated instance method 'rtcEngine(_:snapshotTaken:filePath:width:height:errCode:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
    |               `- note: add 'nonisolated' to 'rtcEngine(_:snapshotTaken:filePath:width:height:errCode:)' to make this instance method not isolated to the actor
193 |         self.agoraSettings.rtcDelegate?.rtcEngine?(engine, snapshotTaken: uid, filePath: filePath, width: width, height: height, errCode: errCode)
194 |     }
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraVideoViewer+AgoraRtcEngineDelegate.swift:205:17: warning: main actor-isolated instance method 'rtcEngine(_:localVideoStateChangedOf:error:sourceType:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
203 |         - sourceType: Source type of the orignated video source
204 |      */
205 |     public func rtcEngine(
    |                 |- warning: main actor-isolated instance method 'rtcEngine(_:localVideoStateChangedOf:error:sourceType:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
    |                 `- note: add 'nonisolated' to 'rtcEngine(_:localVideoStateChangedOf:error:sourceType:)' to make this instance method not isolated to the actor
206 |         _ engine: AgoraRtcEngineKit, localVideoStateChangedOf state: AgoraVideoLocalState,
207 |         error: AgoraLocalVideoStreamError, sourceType: AgoraVideoSourceType
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraVideoViewer+AgoraRtcEngineDelegate.swift:152:15: warning: main actor-isolated instance method 'rtcEngine(_:remoteVideoStateChangedOfUid:state:reason:elapsed:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
150 |          - elapsed: The time elapsed (ms) from the local user calling the joinChannel.
151 |      */
152 |     open func rtcEngine(
    |               |- warning: main actor-isolated instance method 'rtcEngine(_:remoteVideoStateChangedOfUid:state:reason:elapsed:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
    |               `- note: add 'nonisolated' to 'rtcEngine(_:remoteVideoStateChangedOfUid:state:reason:elapsed:)' to make this instance method not isolated to the actor
153 |         _ engine: AgoraRtcEngineKit, remoteVideoStateChangedOfUid uid: UInt,
154 |         state: AgoraVideoRemoteState, reason: AgoraVideoRemoteReason, elapsed: Int
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraVideoViewer+AgoraRtcEngineDelegate.swift:67:15: warning: main actor-isolated instance method 'rtcEngine(_:remoteAudioStateChangedOfUid:state:reason:elapsed:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
 65 |     ///
 66 |     /// This callback does not work properly when the number of users (in the communication profile) or broadcasters (in the live interactive streaming profile) in the channel exceeds 17.
 67 |     open func rtcEngine(
    |               |- warning: main actor-isolated instance method 'rtcEngine(_:remoteAudioStateChangedOfUid:state:reason:elapsed:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
    |               `- note: add 'nonisolated' to 'rtcEngine(_:remoteAudioStateChangedOfUid:state:reason:elapsed:)' to make this instance method not isolated to the actor
 68 |         _ engine: AgoraRtcEngineKit, remoteAudioStateChangedOfUid uid: UInt,
 69 |         state: AgoraAudioRemoteState, reason: AgoraAudioRemoteReason, elapsed: Int
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraVideoViewer+RtcEngineDelegateOverflow.swift:126:15: warning: main actor-isolated instance method 'rtcEngine(_:channelMediaRelayStateDidChange:error:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
124 |         self.agoraSettings.rtcDelegate?.rtcEngine?(engine, audioMixingStateChanged: state, reasonCode: reasonCode)
125 |     }
126 |     open func rtcEngine(_ engine: AgoraRtcEngineKit, channelMediaRelayStateDidChange state: AgoraChannelMediaRelayState, error: AgoraChannelMediaRelayError) {
    |               |- warning: main actor-isolated instance method 'rtcEngine(_:channelMediaRelayStateDidChange:error:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
    |               `- note: add 'nonisolated' to 'rtcEngine(_:channelMediaRelayStateDidChange:error:)' to make this instance method not isolated to the actor
127 |         self.agoraSettings.rtcDelegate?.rtcEngine?(engine, channelMediaRelayStateDidChange: state, error: error)
128 |     }
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraVideoViewer+RtcEngineDelegateOverflow.swift:99:15: warning: main actor-isolated instance method 'rtcEngine(_:didReceive:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
 97 |         self.agoraSettings.rtcDelegate?.rtcEngineDidAudioEffectFinish?(engine, soundId: soundId)
 98 |     }
 99 |     open func rtcEngine(_ engine: AgoraRtcEngineKit, didReceive event: AgoraChannelMediaRelayEvent) {
    |               |- warning: main actor-isolated instance method 'rtcEngine(_:didReceive:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
    |               `- note: add 'nonisolated' to 'rtcEngine(_:didReceive:)' to make this instance method not isolated to the actor
100 |         self.agoraSettings.rtcDelegate?.rtcEngine?(engine, didReceive: event)
101 |     }
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraVideoViewer+RtcEngineDelegateOverflow.swift:195:15: warning: main actor-isolated instance method 'rtcEngine(_:didProxyConnected:withUid:proxyType:localProxyIp:elapsed:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
193 |         self.agoraSettings.rtcDelegate?.rtcEngine?(engine, snapshotTaken: uid, filePath: filePath, width: width, height: height, errCode: errCode)
194 |     }
195 |     open func rtcEngine(_ engine: AgoraRtcEngineKit, didProxyConnected channel: String, withUid uid: UInt, proxyType: AgoraProxyType, localProxyIp: String, elapsed: Int) {
    |               |- warning: main actor-isolated instance method 'rtcEngine(_:didProxyConnected:withUid:proxyType:localProxyIp:elapsed:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
    |               `- note: add 'nonisolated' to 'rtcEngine(_:didProxyConnected:withUid:proxyType:localProxyIp:elapsed:)' to make this instance method not isolated to the actor
196 |         self.agoraSettings.rtcDelegate?.rtcEngine?(engine, didProxyConnected: channel, withUid: uid, proxyType: proxyType, localProxyIp: localProxyIp, elapsed: elapsed)
197 |     }
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraVideoViewer+RtcEngineDelegateOverflow.swift:171:15: warning: main actor-isolated instance method 'rtcEngine(_:remoteUserStateChangedOfUid:state:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
169 |         self.agoraSettings.rtcDelegate?.rtcEngine?(engine, contentInspectResult: result)
170 |     }
171 |     open func rtcEngine(_ engine: AgoraRtcEngineKit, remoteUserStateChangedOfUid uid: UInt, state: UInt) {
    |               |- warning: main actor-isolated instance method 'rtcEngine(_:remoteUserStateChangedOfUid:state:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
    |               `- note: add 'nonisolated' to 'rtcEngine(_:remoteUserStateChangedOfUid:state:)' to make this instance method not isolated to the actor
172 |         self.agoraSettings.rtcDelegate?.rtcEngine?(engine, remoteUserStateChangedOfUid: uid, state: state)
173 |     }
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraVideoViewer+RtcEngineDelegateOverflow.swift:90:15: warning: main actor-isolated instance method 'rtcEngine(_:remoteVideoStats:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
 88 |         self.agoraSettings.rtcDelegate?.rtcEngine?(engine, localAudioStats: stats)
 89 |     }
 90 |     open func rtcEngine(_ engine: AgoraRtcEngineKit, remoteVideoStats stats: AgoraRtcRemoteVideoStats) {
    |               |- warning: main actor-isolated instance method 'rtcEngine(_:remoteVideoStats:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
    |               `- note: add 'nonisolated' to 'rtcEngine(_:remoteVideoStats:)' to make this instance method not isolated to the actor
 91 |         self.agoraSettings.rtcDelegate?.rtcEngine?(engine, remoteVideoStats: stats)
 92 |     }
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraVideoViewer+RtcEngineDelegateOverflow.swift:120:15: warning: main actor-isolated instance method 'rtcEngine(_:didRemoteSubscribeFallbackToAudioOnly:byUid:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
118 |         self.agoraSettings.rtcDelegate?.rtcEngine?(engine, firstLocalVideoFrameWith: size, elapsed: elapsed, sourceType: sourceType)
119 |     }
120 |     open func rtcEngine(_ engine: AgoraRtcEngineKit, didRemoteSubscribeFallbackToAudioOnly isFallbackOrRecover: Bool, byUid uid: UInt) {
    |               |- warning: main actor-isolated instance method 'rtcEngine(_:didRemoteSubscribeFallbackToAudioOnly:byUid:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
    |               `- note: add 'nonisolated' to 'rtcEngine(_:didRemoteSubscribeFallbackToAudioOnly:byUid:)' to make this instance method not isolated to the actor
121 |         self.agoraSettings.rtcDelegate?.rtcEngine?(engine, didRemoteSubscribeFallbackToAudioOnly: isFallbackOrRecover, byUid: uid)
122 |     }
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraVideoViewer+RtcEngineDelegateOverflow.swift:201:15: warning: main actor-isolated instance method 'rtcEngine(_:videoTransportStatsOfUid:delay:lost:rxKBitRate:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
199 |         self.agoraSettings.rtcDelegate?.rtcEngine?(engine, audioTransportStatsOfUid: uid, delay: delay, lost: lost, rxKBitRate: rxKBitRate)
200 |     }
201 |     open func rtcEngine(_ engine: AgoraRtcEngineKit, videoTransportStatsOfUid uid: UInt, delay: UInt, lost: UInt, rxKBitRate: UInt) {
    |               |- warning: main actor-isolated instance method 'rtcEngine(_:videoTransportStatsOfUid:delay:lost:rxKBitRate:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
    |               `- note: add 'nonisolated' to 'rtcEngine(_:videoTransportStatsOfUid:delay:lost:rxKBitRate:)' to make this instance method not isolated to the actor
202 |         self.agoraSettings.rtcDelegate?.rtcEngine?(engine, videoTransportStatsOfUid: uid, delay: delay, lost: lost, rxKBitRate: rxKBitRate)
203 |     }
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraVideoViewer+RtcEngineDelegateOverflow.swift:231:15: warning: main actor-isolated instance method 'rtcEngine(_:didVideoSubscribeStateChange:uid:oldState:newState:elapseSinceLastState:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
229 |         self.agoraSettings.rtcDelegate?.rtcEngine?(engine, didAudioSubscribeStateChange: channelId, uid: uid, oldState: oldState, newState: newState, elapseSinceLastState: elapseSinceLastState)
230 |     }
231 |     open func rtcEngine(_ engine: AgoraRtcEngineKit, didVideoSubscribeStateChange channelId: String, uid: UInt32, oldState: AgoraStreamSubscribeState, newState: AgoraStreamSubscribeState, elapseSinceLastState: Int32) {
    |               |- warning: main actor-isolated instance method 'rtcEngine(_:didVideoSubscribeStateChange:uid:oldState:newState:elapseSinceLastState:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
    |               `- note: add 'nonisolated' to 'rtcEngine(_:didVideoSubscribeStateChange:uid:oldState:newState:elapseSinceLastState:)' to make this instance method not isolated to the actor
232 |         self.agoraSettings.rtcDelegate?.rtcEngine?(engine, didVideoSubscribeStateChange: channelId, uid: uid, oldState: oldState, newState: newState, elapseSinceLastState: elapseSinceLastState)
233 |     }
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraVideoViewer+RtcEngineDelegateOverflow.swift:225:15: warning: main actor-isolated instance method 'rtcEngine(_:didVideoPublishStateChange:sourceType:oldState:newState:elapseSinceLastState:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
223 |         self.agoraSettings.rtcDelegate?.rtcEngine?(engine, didAudioPublishStateChange: channelId, oldState: oldState, newState: newState, elapseSinceLastState: elapseSinceLastState)
224 |     }
225 |     open func rtcEngine(_ engine: AgoraRtcEngineKit, didVideoPublishStateChange channelId: String, sourceType: AgoraVideoSourceType, oldState: AgoraStreamPublishState, newState: AgoraStreamPublishState, elapseSinceLastState: Int32) {
    |               |- warning: main actor-isolated instance method 'rtcEngine(_:didVideoPublishStateChange:sourceType:oldState:newState:elapseSinceLastState:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
    |               `- note: add 'nonisolated' to 'rtcEngine(_:didVideoPublishStateChange:sourceType:oldState:newState:elapseSinceLastState:)' to make this instance method not isolated to the actor
226 |         self.agoraSettings.rtcDelegate?.rtcEngine?(engine, didVideoPublishStateChange: channelId, sourceType: sourceType, oldState: oldState, newState: newState, elapseSinceLastState: elapseSinceLastState)
227 |     }
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraVideoViewer+RtcEngineDelegateOverflow.swift:138:15: warning: main actor-isolated instance method 'rtcEngine(_:rtmpStreamingChangedToState:state:errCode:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
136 |         self.agoraSettings.rtcDelegate?.rtcEngine?(engine, streamPublishedWithUrl: url, errorCode: errorCode)
137 |     }
138 |     open func rtcEngine(_ engine: AgoraRtcEngineKit, rtmpStreamingChangedToState url: String, state: AgoraRtmpStreamingState, errCode: AgoraRtmpStreamingErrorCode) {
    |               |- warning: main actor-isolated instance method 'rtcEngine(_:rtmpStreamingChangedToState:state:errCode:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
    |               `- note: add 'nonisolated' to 'rtcEngine(_:rtmpStreamingChangedToState:state:errCode:)' to make this instance method not isolated to the actor
139 |         self.agoraSettings.rtcDelegate?.rtcEngine?(engine, rtmpStreamingChangedToState: url, state: state, errCode: errCode)
140 |     }
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraVideoViewer+RtcEngineDelegateOverflow.swift:180:15: warning: main actor-isolated instance method 'rtcEngine(_:rtmpStreamingEventWithUrl:eventCode:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
178 |         self.agoraSettings.rtcDelegate?.rtcEngine?(engine, wlAccMessage: reason, action: action, wlAccMsg: wlAccMsg)
179 |     }
180 |     open func rtcEngine(_ engine: AgoraRtcEngineKit, rtmpStreamingEventWithUrl url: String, eventCode: AgoraRtmpStreamingEvent) {
    |               |- warning: main actor-isolated instance method 'rtcEngine(_:rtmpStreamingEventWithUrl:eventCode:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
    |               `- note: add 'nonisolated' to 'rtcEngine(_:rtmpStreamingEventWithUrl:eventCode:)' to make this instance method not isolated to the actor
181 |         self.agoraSettings.rtcDelegate?.rtcEngine?(engine, rtmpStreamingEventWithUrl: url, eventCode: eventCode)
182 |     }
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraVideoViewer+RtcEngineDelegateOverflow.swift:135:15: warning: main actor-isolated instance method 'rtcEngine(_:streamPublishedWithUrl:errorCode:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
133 |         self.agoraSettings.rtcDelegate?.rtcEngine?(engine, didAudioMuted: muted, byUid: uid)
134 |     }
135 |     open func rtcEngine(_ engine: AgoraRtcEngineKit, streamPublishedWithUrl url: String, errorCode: AgoraErrorCode) {
    |               |- warning: main actor-isolated instance method 'rtcEngine(_:streamPublishedWithUrl:errorCode:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
    |               `- note: add 'nonisolated' to 'rtcEngine(_:streamPublishedWithUrl:errorCode:)' to make this instance method not isolated to the actor
136 |         self.agoraSettings.rtcDelegate?.rtcEngine?(engine, streamPublishedWithUrl: url, errorCode: errorCode)
137 |     }
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraVideoViewer+RtcEngineDelegateOverflow.swift:102:15: warning: main actor-isolated instance method 'rtcEngine(_:streamUnpublishedWithUrl:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
100 |         self.agoraSettings.rtcDelegate?.rtcEngine?(engine, didReceive: event)
101 |     }
102 |     open func rtcEngine(_ engine: AgoraRtcEngineKit, streamUnpublishedWithUrl url: String) {
    |               |- warning: main actor-isolated instance method 'rtcEngine(_:streamUnpublishedWithUrl:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
    |               `- note: add 'nonisolated' to 'rtcEngine(_:streamUnpublishedWithUrl:)' to make this instance method not isolated to the actor
103 |         self.agoraSettings.rtcDelegate?.rtcEngine?(engine, streamUnpublishedWithUrl: url)
104 |     }
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraVideoViewer+RtcEngineDelegateOverflow.swift:27:15: warning: main actor-isolated instance method 'rtcEngineTranscodingUpdated' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
 25 |         self.agoraSettings.rtcDelegate?.rtcEngineCameraDidReady?(engine)
 26 |     }
 27 |     open func rtcEngineTranscodingUpdated(_ engine: AgoraRtcEngineKit) {
    |               |- warning: main actor-isolated instance method 'rtcEngineTranscodingUpdated' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
    |               `- note: add 'nonisolated' to 'rtcEngineTranscodingUpdated' to make this instance method not isolated to the actor
 28 |         self.agoraSettings.rtcDelegate?.rtcEngineTranscodingUpdated?(engine)
 29 |     }
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraVideoViewer+RtcEngineDelegateOverflow.swift:159:15: warning: main actor-isolated instance method 'rtcEngine(_:streamInjectedStatusOfUrl:uid:status:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
157 |         self.agoraSettings.rtcDelegate?.rtcEngine?(engine, networkQuality: uid, txQuality: txQuality, rxQuality: rxQuality)
158 |     }
159 |     open func rtcEngine(_ engine: AgoraRtcEngineKit, streamInjectedStatusOfUrl url: String, uid: UInt, status: AgoraInjectStreamStatus) {
    |               |- warning: main actor-isolated instance method 'rtcEngine(_:streamInjectedStatusOfUrl:uid:status:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
    |               `- note: add 'nonisolated' to 'rtcEngine(_:streamInjectedStatusOfUrl:uid:status:)' to make this instance method not isolated to the actor
160 |         self.agoraSettings.rtcDelegate?.rtcEngine?(engine, streamInjectedStatusOfUrl: url, uid: uid, status: status)
161 |     }
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraVideoViewer+RtcEngineDelegateOverflow.swift:123:15: warning: main actor-isolated instance method 'rtcEngine(_:audioMixingStateChanged:reasonCode:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
121 |         self.agoraSettings.rtcDelegate?.rtcEngine?(engine, didRemoteSubscribeFallbackToAudioOnly: isFallbackOrRecover, byUid: uid)
122 |     }
123 |     open func rtcEngine(_ engine: AgoraRtcEngineKit, audioMixingStateChanged state: AgoraAudioMixingStateType, reasonCode: AgoraAudioMixingReasonCode) {
    |               |- warning: main actor-isolated instance method 'rtcEngine(_:audioMixingStateChanged:reasonCode:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
    |               `- note: add 'nonisolated' to 'rtcEngine(_:audioMixingStateChanged:reasonCode:)' to make this instance method not isolated to the actor
124 |         self.agoraSettings.rtcDelegate?.rtcEngine?(engine, audioMixingStateChanged: state, reasonCode: reasonCode)
125 |     }
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraVideoViewer+RtcEngineDelegateOverflow.swift:147:15: warning: main actor-isolated instance method 'rtcEngine(_:audioMixingPositionChanged:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
145 |         self.agoraSettings.rtcDelegate?.rtcEngine?(engine, licenseValidationFailure: error)
146 |     }
147 |     open func rtcEngine(_ engine: AgoraRtcEngineKit, audioMixingPositionChanged position: Int) {
    |               |- warning: main actor-isolated instance method 'rtcEngine(_:audioMixingPositionChanged:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
    |               `- note: add 'nonisolated' to 'rtcEngine(_:audioMixingPositionChanged:)' to make this instance method not isolated to the actor
148 |         self.agoraSettings.rtcDelegate?.rtcEngine?(engine, audioMixingPositionChanged: position)
149 |     }
[42/48] Compiling AgoraUIKit AgoraVideoViewer+Buttons.swift
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraVideoViewer+RtcEngineDelegateOverflow.swift:42:15: warning: main actor-isolated instance method 'rtcEngine(_:didOccurWarning:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
 40 |         self.agoraSettings.rtcDelegate?.rtcEngineMediaEngineDidStartCall?(engine)
 41 |     }
 42 |     open func rtcEngine(_ engine: AgoraRtcEngineKit, didOccurWarning warningCode: AgoraWarningCode) {
    |               |- warning: main actor-isolated instance method 'rtcEngine(_:didOccurWarning:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
    |               `- note: add 'nonisolated' to 'rtcEngine(_:didOccurWarning:)' to make this instance method not isolated to the actor
 43 |         self.agoraSettings.rtcDelegate?.rtcEngine?(engine, didOccurWarning: warningCode)
 44 |     }
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraVideoViewer+AgoraRtcEngineDelegate.swift:10:29: note: add '@preconcurrency' to the 'AgoraRtcEngineDelegate' conformance to defer isolation checking to run time
  8 | import AgoraRtcKit
  9 |
 10 | extension AgoraVideoViewer: AgoraRtcEngineDelegate {
    |                             `- note: add '@preconcurrency' to the 'AgoraRtcEngineDelegate' conformance to defer isolation checking to run time
 11 |     /// Called when the user role successfully changes
 12 |     /// - Parameters:
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraVideoViewer+RtcEngineDelegateOverflow.swift:45:15: warning: main actor-isolated instance method 'rtcEngine(_:didOccurError:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
 43 |         self.agoraSettings.rtcDelegate?.rtcEngine?(engine, didOccurWarning: warningCode)
 44 |     }
 45 |     open func rtcEngine(_ engine: AgoraRtcEngineKit, didOccurError errorCode: AgoraErrorCode) {
    |               |- warning: main actor-isolated instance method 'rtcEngine(_:didOccurError:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
    |               `- note: add 'nonisolated' to 'rtcEngine(_:didOccurError:)' to make this instance method not isolated to the actor
 46 |         self.agoraSettings.rtcDelegate?.rtcEngine?(engine, didOccurError: errorCode)
 47 |     }
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraVideoViewer+RtcEngineDelegateOverflow.swift:33:15: warning: main actor-isolated instance method 'rtcEngineMediaEngineDidLoaded' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
 31 |         self.agoraSettings.rtcDelegate?.rtcEngineConnectionDidBanned?(engine)
 32 |     }
 33 |     open func rtcEngineMediaEngineDidLoaded(_ engine: AgoraRtcEngineKit) {
    |               |- warning: main actor-isolated instance method 'rtcEngineMediaEngineDidLoaded' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
    |               `- note: add 'nonisolated' to 'rtcEngineMediaEngineDidLoaded' to make this instance method not isolated to the actor
 34 |         self.agoraSettings.rtcDelegate?.rtcEngineMediaEngineDidLoaded?(engine)
 35 |     }
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraVideoViewer+RtcEngineDelegateOverflow.swift:39:15: warning: main actor-isolated instance method 'rtcEngineMediaEngineDidStartCall' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
 37 |         self.agoraSettings.rtcDelegate?.rtcEngineConnectionDidInterrupted?(engine)
 38 |     }
 39 |     open func rtcEngineMediaEngineDidStartCall(_ engine: AgoraRtcEngineKit) {
    |               |- warning: main actor-isolated instance method 'rtcEngineMediaEngineDidStartCall' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
    |               `- note: add 'nonisolated' to 'rtcEngineMediaEngineDidStartCall' to make this instance method not isolated to the actor
 40 |         self.agoraSettings.rtcDelegate?.rtcEngineMediaEngineDidStartCall?(engine)
 41 |     }
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraVideoViewer+AgoraRtcEngineDelegate.swift:283:15: warning: main actor-isolated instance method 'rtcEngineRequestToken' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
281 |      - Parameter engine: AgoraRtcEngineKit object
282 |      */
283 |     open func rtcEngineRequestToken(_ engine: AgoraRtcEngineKit) {
    |               |- warning: main actor-isolated instance method 'rtcEngineRequestToken' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
    |               `- note: add 'nonisolated' to 'rtcEngineRequestToken' to make this instance method not isolated to the actor
284 |         if let tokenURL = self.agoraSettings.tokenURL, let channelName = self.connectionData.channel {
285 |             AgoraVideoViewer.fetchToken(
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraVideoViewer+AgoraRtcEngineDelegate.swift:304:15: warning: main actor-isolated instance method 'rtcEngine(_:tokenPrivilegeWillExpire:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
302 |         - token: The `token` that expires in 30 seconds.
303 |     */
304 |     open func rtcEngine(_ engine: AgoraRtcEngineKit, tokenPrivilegeWillExpire token: String) {
    |               |- warning: main actor-isolated instance method 'rtcEngine(_:tokenPrivilegeWillExpire:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
    |               `- note: add 'nonisolated' to 'rtcEngine(_:tokenPrivilegeWillExpire:)' to make this instance method not isolated to the actor
305 |         if let tokenURL = self.agoraSettings.tokenURL, let channelName = self.connectionData.channel {
306 |             AgoraVideoViewer.fetchToken(
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraVideoViewer+RtcEngineDelegateOverflow.swift:144:15: warning: main actor-isolated instance method 'rtcEngine(_:licenseValidationFailure:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
142 | //        self.agoraSettings.rtcDelegate?.rtcEngine?(engine, didApiCallExecute: error, api: api, result: result)
143 | //    }
144 |     open func rtcEngine(_ engine: AgoraRtcEngineKit, licenseValidationFailure error: AgoraLicenseVerifyCode) {
    |               |- warning: main actor-isolated instance method 'rtcEngine(_:licenseValidationFailure:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
    |               `- note: add 'nonisolated' to 'rtcEngine(_:licenseValidationFailure:)' to make this instance method not isolated to the actor
145 |         self.agoraSettings.rtcDelegate?.rtcEngine?(engine, licenseValidationFailure: error)
146 |     }
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraVideoViewer+RtcEngineDelegateOverflow.swift:36:15: warning: main actor-isolated instance method 'rtcEngineConnectionDidInterrupted' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
 34 |         self.agoraSettings.rtcDelegate?.rtcEngineMediaEngineDidLoaded?(engine)
 35 |     }
 36 |     open func rtcEngineConnectionDidInterrupted(_ engine: AgoraRtcEngineKit) {
    |               |- warning: main actor-isolated instance method 'rtcEngineConnectionDidInterrupted' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
    |               `- note: add 'nonisolated' to 'rtcEngineConnectionDidInterrupted' to make this instance method not isolated to the actor
 37 |         self.agoraSettings.rtcDelegate?.rtcEngineConnectionDidInterrupted?(engine)
 38 |     }
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraVideoViewer+RtcEngineDelegateOverflow.swift:9:15: warning: main actor-isolated instance method 'rtcEngineConnectionDidLost' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
  7 | import AgoraRtcKit
  8 | extension AgoraVideoViewer {
  9 |     open func rtcEngineConnectionDidLost(_ engine: AgoraRtcEngineKit) {
    |               |- warning: main actor-isolated instance method 'rtcEngineConnectionDidLost' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
    |               `- note: add 'nonisolated' to 'rtcEngineConnectionDidLost' to make this instance method not isolated to the actor
 10 |         self.agoraSettings.rtcDelegate?.rtcEngineConnectionDidLost?(engine)
 11 |     }
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraVideoViewer+RtcEngineDelegateOverflow.swift:30:15: warning: main actor-isolated instance method 'rtcEngineConnectionDidBanned' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
 28 |         self.agoraSettings.rtcDelegate?.rtcEngineTranscodingUpdated?(engine)
 29 |     }
 30 |     open func rtcEngineConnectionDidBanned(_ engine: AgoraRtcEngineKit) {
    |               |- warning: main actor-isolated instance method 'rtcEngineConnectionDidBanned' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
    |               `- note: add 'nonisolated' to 'rtcEngineConnectionDidBanned' to make this instance method not isolated to the actor
 31 |         self.agoraSettings.rtcDelegate?.rtcEngineConnectionDidBanned?(engine)
 32 |     }
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraVideoViewer+RtcEngineDelegateOverflow.swift:51:15: warning: main actor-isolated instance method 'rtcEngine(_:networkTypeChanged:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
 49 |         self.agoraSettings.rtcDelegate?.rtcEngine?(engine, didLeaveChannelWith: stats)
 50 |     }
 51 |     open func rtcEngine(_ engine: AgoraRtcEngineKit, networkTypeChanged type: AgoraNetworkType) {
    |               |- warning: main actor-isolated instance method 'rtcEngine(_:networkTypeChanged:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
    |               `- note: add 'nonisolated' to 'rtcEngine(_:networkTypeChanged:)' to make this instance method not isolated to the actor
 52 |         self.agoraSettings.rtcDelegate?.rtcEngine?(engine, networkTypeChanged: type)
 53 |     }
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraVideoViewer+RtcEngineDelegateOverflow.swift:213:15: warning: main actor-isolated instance method 'rtcEngine(_:permissionError:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
211 |         self.agoraSettings.rtcDelegate?.rtcEngine?(engine, didOccur: errorType)
212 |     }
213 |     open func rtcEngine(_ engine: AgoraRtcEngineKit, permissionError type: AgoraPermissionType) {
    |               |- warning: main actor-isolated instance method 'rtcEngine(_:permissionError:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
    |               `- note: add 'nonisolated' to 'rtcEngine(_:permissionError:)' to make this instance method not isolated to the actor
214 |         self.agoraSettings.rtcDelegate?.rtcEngine?(engine, permissionError: type)
215 |     }
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraVideoViewer+RtcEngineDelegateOverflow.swift:237:15: warning: main actor-isolated instance method 'rtcEngine(_:connectionChangedTo:reason:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
235 |         self.agoraSettings.rtcDelegate?.rtcEngine?(engine, didOccurStreamMessageErrorFromUid: uid, streamId: streamId, error: error, missed: missed, cached: cached)
236 |     }
237 |     open func rtcEngine(_ engine: AgoraRtcEngineKit, connectionChangedTo state: AgoraConnectionState, reason: AgoraConnectionChangedReason) {
    |               |- warning: main actor-isolated instance method 'rtcEngine(_:connectionChangedTo:reason:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
    |               `- note: add 'nonisolated' to 'rtcEngine(_:connectionChangedTo:reason:)' to make this instance method not isolated to the actor
238 |         self.agoraSettings.rtcDelegate?.rtcEngine?(engine, connectionChangedTo: state, reason: reason)
239 |     }
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraVideoViewer+RtcEngineDelegateOverflow.swift:177:15: warning: main actor-isolated instance method 'rtcEngine(_:wlAccMessage:action:wlAccMsg:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
175 |         self.agoraSettings.rtcDelegate?.rtcEngine?(engine, wlAccStats: currentStats, averageStats: averageStats)
176 |     }
177 |     open func rtcEngine(_ engine: AgoraRtcEngineKit, wlAccMessage reason: AgoraWlAccReason, action: AgoraWlAccAction, wlAccMsg: String) {
    |               |- warning: main actor-isolated instance method 'rtcEngine(_:wlAccMessage:action:wlAccMsg:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
    |               `- note: add 'nonisolated' to 'rtcEngine(_:wlAccMessage:action:wlAccMsg:)' to make this instance method not isolated to the actor
178 |         self.agoraSettings.rtcDelegate?.rtcEngine?(engine, wlAccMessage: reason, action: action, wlAccMsg: wlAccMsg)
179 |     }
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraVideoViewer+RtcEngineDelegateOverflow.swift:174:15: warning: main actor-isolated instance method 'rtcEngine(_:wlAccStats:averageStats:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
172 |         self.agoraSettings.rtcDelegate?.rtcEngine?(engine, remoteUserStateChangedOfUid: uid, state: state)
173 |     }
174 |     open func rtcEngine(_ engine: AgoraRtcEngineKit, wlAccStats currentStats: AgoraWlAccStats, averageStats: AgoraWlAccStats) {
    |               |- warning: main actor-isolated instance method 'rtcEngine(_:wlAccStats:averageStats:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
    |               `- note: add 'nonisolated' to 'rtcEngine(_:wlAccStats:averageStats:)' to make this instance method not isolated to the actor
175 |         self.agoraSettings.rtcDelegate?.rtcEngine?(engine, wlAccStats: currentStats, averageStats: averageStats)
176 |     }
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraVideoViewer+RtcEngineDelegateOverflow.swift:75:15: warning: main actor-isolated instance method 'rtcEngine(_:reportRtcStats:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
 73 |     }
 74 |     #endif
 75 |     open func rtcEngine(_ engine: AgoraRtcEngineKit, reportRtcStats stats: AgoraChannelStats) {
    |               |- warning: main actor-isolated instance method 'rtcEngine(_:reportRtcStats:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
    |               `- note: add 'nonisolated' to 'rtcEngine(_:reportRtcStats:)' to make this instance method not isolated to the actor
 76 |         self.agoraSettings.rtcDelegate?.rtcEngine?(engine, reportRtcStats: stats)
 77 |     }
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraVideoViewer+RtcEngineDelegateOverflow.swift:78:15: warning: main actor-isolated instance method 'rtcEngine(_:lastmileQuality:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
 76 |         self.agoraSettings.rtcDelegate?.rtcEngine?(engine, reportRtcStats: stats)
 77 |     }
 78 |     open func rtcEngine(_ engine: AgoraRtcEngineKit, lastmileQuality quality: AgoraNetworkQuality) {
    |               |- warning: main actor-isolated instance method 'rtcEngine(_:lastmileQuality:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
    |               `- note: add 'nonisolated' to 'rtcEngine(_:lastmileQuality:)' to make this instance method not isolated to the actor
 79 |         self.agoraSettings.rtcDelegate?.rtcEngine?(engine, lastmileQuality: quality)
 80 |     }
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraVideoViewer+RtcEngineDelegateOverflow.swift:81:15: warning: main actor-isolated instance method 'rtcEngine(_:lastmileProbeTest:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
 79 |         self.agoraSettings.rtcDelegate?.rtcEngine?(engine, lastmileQuality: quality)
 80 |     }
 81 |     open func rtcEngine(_ engine: AgoraRtcEngineKit, lastmileProbeTest result: AgoraLastmileProbeResult) {
    |               |- warning: main actor-isolated instance method 'rtcEngine(_:lastmileProbeTest:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
    |               `- note: add 'nonisolated' to 'rtcEngine(_:lastmileProbeTest:)' to make this instance method not isolated to the actor
 82 |         self.agoraSettings.rtcDelegate?.rtcEngine?(engine, lastmileProbeTest: result)
 83 |     }
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraVideoViewer+RtcEngineDelegateOverflow.swift:71:15: warning: main actor-isolated instance method 'rtcEngine(_:device:type:stateChanged:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
 69 |     }
 70 |     #elseif os(macOS)
 71 |     open func rtcEngine(_ engine: AgoraRtcEngineKit, device deviceId: String, type deviceType: AgoraMediaDeviceType, stateChanged state: Int) {
    |               |- warning: main actor-isolated instance method 'rtcEngine(_:device:type:stateChanged:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
    |               `- note: add 'nonisolated' to 'rtcEngine(_:device:type:stateChanged:)' to make this instance method not isolated to the actor
 72 |         self.agoraSettings.rtcDelegate?.rtcEngine?(engine, device: deviceId, type: deviceType, stateChanged: state)
 73 |     }
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraVideoViewer+RtcEngineDelegateOverflow.swift:210:15: warning: main actor-isolated instance method 'rtcEngine(_:didOccur:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
208 |         self.agoraSettings.rtcDelegate?.rtcEngineIntraRequestReceived?(engine)
209 |     }
210 |     open func rtcEngine(_ engine: AgoraRtcEngineKit, didOccur errorType: AgoraEncryptionErrorType) {
    |               |- warning: main actor-isolated instance method 'rtcEngine(_:didOccur:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
    |               `- note: add 'nonisolated' to 'rtcEngine(_:didOccur:)' to make this instance method not isolated to the actor
211 |         self.agoraSettings.rtcDelegate?.rtcEngine?(engine, didOccur: errorType)
212 |     }
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraVideoViewer+RtcEngineDelegateOverflow.swift:189:15: warning: main actor-isolated instance method 'rtcEngine(_:uploadLogResultRequestId:success:reason:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
187 |         self.agoraSettings.rtcDelegate?.rtcEngine?(engine, didRhythmPlayerStateChanged: state, errorCode: errorCode)
188 |     }
189 |     open func rtcEngine(_ engine: AgoraRtcEngineKit, uploadLogResultRequestId requestId: String, success: Bool, reason: AgoraUploadErrorReason) {
    |               |- warning: main actor-isolated instance method 'rtcEngine(_:uploadLogResultRequestId:success:reason:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
    |               `- note: add 'nonisolated' to 'rtcEngine(_:uploadLogResultRequestId:success:reason:)' to make this instance method not isolated to the actor
190 |         self.agoraSettings.rtcDelegate?.rtcEngine?(engine, uploadLogResultRequestId: requestId, success: success, reason: reason)
191 |     }
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraVideoViewer+AgoraRtcEngineDelegate.swift:182:15: warning: main actor-isolated instance method 'rtcEngine(_:didJoinChannel:withUid:elapsed:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
180 |         - elapsed: The time elapsed (ms) from the local user calling `joinChannelByToken` until this event occurs.
181 |      */
182 |     open func rtcEngine(
    |               |- warning: main actor-isolated instance method 'rtcEngine(_:didJoinChannel:withUid:elapsed:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
    |               `- note: add 'nonisolated' to 'rtcEngine(_:didJoinChannel:withUid:elapsed:)' to make this instance method not isolated to the actor
183 |         _ engine: AgoraRtcEngineKit, didJoinChannel channel: String,
184 |         withUid uid: UInt, elapsed: Int
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraVideoViewer+RtcEngineDelegateOverflow.swift:150:15: warning: main actor-isolated instance method 'rtcEngine(_:didRejoinChannel:withUid:elapsed:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
148 |         self.agoraSettings.rtcDelegate?.rtcEngine?(engine, audioMixingPositionChanged: position)
149 |     }
150 |     open func rtcEngine(_ engine: AgoraRtcEngineKit, didRejoinChannel channel: String, withUid uid: UInt, elapsed: Int) {
    |               |- warning: main actor-isolated instance method 'rtcEngine(_:didRejoinChannel:withUid:elapsed:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
    |               `- note: add 'nonisolated' to 'rtcEngine(_:didRejoinChannel:withUid:elapsed:)' to make this instance method not isolated to the actor
151 |         self.agoraSettings.rtcDelegate?.rtcEngine?(engine, didRejoinChannel: channel, withUid: uid, elapsed: elapsed)
152 |     }
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraVideoViewer+AgoraRtcEngineDelegate.swift:17:15: warning: main actor-isolated instance method 'rtcEngine(_:didClientRoleChanged:newRole:newRoleOptions:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
 15 |     ///   - newRole: New role of the user.
 16 |     ///   - newRoleOptions: The client role option of the new role.
 17 |     open func rtcEngine(
    |               |- warning: main actor-isolated instance method 'rtcEngine(_:didClientRoleChanged:newRole:newRoleOptions:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
    |               `- note: add 'nonisolated' to 'rtcEngine(_:didClientRoleChanged:newRole:newRoleOptions:)' to make this instance method not isolated to the actor
 18 |         _ engine: AgoraRtcEngineKit,
 19 |         didClientRoleChanged oldRole: AgoraClientRole,
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraVideoViewer+RtcEngineDelegateOverflow.swift:183:15: warning: main actor-isolated instance method 'rtcEngine(_:didClientRoleChangeFailed:currentRole:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
181 |         self.agoraSettings.rtcDelegate?.rtcEngine?(engine, rtmpStreamingEventWithUrl: url, eventCode: eventCode)
182 |     }
183 |     open func rtcEngine(_ engine: AgoraRtcEngineKit, didClientRoleChangeFailed reason: AgoraClientRoleChangeFailedReason, currentRole: AgoraClientRole) {
    |               |- warning: main actor-isolated instance method 'rtcEngine(_:didClientRoleChangeFailed:currentRole:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
    |               `- note: add 'nonisolated' to 'rtcEngine(_:didClientRoleChangeFailed:currentRole:)' to make this instance method not isolated to the actor
184 |         self.agoraSettings.rtcDelegate?.rtcEngine?(engine, didClientRoleChangeFailed: reason, currentRole: currentRole)
185 |     }
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraVideoViewer+RtcEngineDelegateOverflow.swift:48:15: warning: main actor-isolated instance method 'rtcEngine(_:didLeaveChannelWith:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
 46 |         self.agoraSettings.rtcDelegate?.rtcEngine?(engine, didOccurError: errorCode)
 47 |     }
 48 |     open func rtcEngine(_ engine: AgoraRtcEngineKit, didLeaveChannelWith stats: AgoraChannelStats) {
    |               |- warning: main actor-isolated instance method 'rtcEngine(_:didLeaveChannelWith:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
    |               `- note: add 'nonisolated' to 'rtcEngine(_:didLeaveChannelWith:)' to make this instance method not isolated to the actor
 49 |         self.agoraSettings.rtcDelegate?.rtcEngine?(engine, didLeaveChannelWith: stats)
 50 |     }
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraVideoViewer+RtcEngineDelegateOverflow.swift:156:15: warning: main actor-isolated instance method 'rtcEngine(_:networkQuality:txQuality:rxQuality:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
154 |         self.agoraSettings.rtcDelegate?.rtcEngine?(engine, videoSizeChangedOf: sourceType, uid: uid, size: size, rotation: rotation)
155 |     }
156 |     open func rtcEngine(_ engine: AgoraRtcEngineKit, networkQuality uid: UInt, txQuality: AgoraNetworkQuality, rxQuality: AgoraNetworkQuality) {
    |               |- warning: main actor-isolated instance method 'rtcEngine(_:networkQuality:txQuality:rxQuality:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
    |               `- note: add 'nonisolated' to 'rtcEngine(_:networkQuality:txQuality:rxQuality:)' to make this instance method not isolated to the actor
157 |         self.agoraSettings.rtcDelegate?.rtcEngine?(engine, networkQuality: uid, txQuality: txQuality, rxQuality: rxQuality)
158 |     }
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraVideoViewer+AgoraRtcEngineDelegate.swift:270:15: warning: main actor-isolated instance method 'rtcEngine(_:firstLocalAudioFramePublished:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
268 |          - elapsed: The time elapsed (ms) from the local client calling `joinChannelByToken` until the SDK triggers this callback.
269 |      */
270 |     open func rtcEngine(_ engine: AgoraRtcEngineKit, firstLocalAudioFramePublished elapsed: Int) {
    |               |- warning: main actor-isolated instance method 'rtcEngine(_:firstLocalAudioFramePublished:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
    |               `- note: add 'nonisolated' to 'rtcEngine(_:firstLocalAudioFramePublished:)' to make this instance method not isolated to the actor
271 |         self.addLocalVideo()?.audioMuted = false
272 |         self.agoraSettings.rtcDelegate?.rtcEngine?(engine, firstLocalAudioFramePublished: elapsed)
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraVideoViewer+RtcEngineDelegateOverflow.swift:87:15: warning: main actor-isolated instance method 'rtcEngine(_:localAudioStats:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
 85 |         self.agoraSettings.rtcDelegate?.rtcEngine?(engine, localVideoStats: stats, sourceType: sourceType)
 86 |     }
 87 |     open func rtcEngine(_ engine: AgoraRtcEngineKit, localAudioStats stats: AgoraRtcLocalAudioStats) {
    |               |- warning: main actor-isolated instance method 'rtcEngine(_:localAudioStats:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
    |               `- note: add 'nonisolated' to 'rtcEngine(_:localAudioStats:)' to make this instance method not isolated to the actor
 88 |         self.agoraSettings.rtcDelegate?.rtcEngine?(engine, localAudioStats: stats)
 89 |     }
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraVideoViewer+AgoraRtcEngineDelegate.swift:237:15: warning: main actor-isolated instance method 'rtcEngine(_:localAudioStateChanged:error:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
235 |         - error: The error information of the local audio. See AgoraAudioLocalError.
236 |      */
237 |     open func rtcEngine(
    |               |- warning: main actor-isolated instance method 'rtcEngine(_:localAudioStateChanged:error:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
    |               `- note: add 'nonisolated' to 'rtcEngine(_:localAudioStateChanged:error:)' to make this instance method not isolated to the actor
238 |         _ engine: AgoraRtcEngineKit,
239 |         localAudioStateChanged state: AgoraAudioLocalState,
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraVideoViewer+RtcEngineDelegateOverflow.swift:57:15: warning: main actor-isolated instance method 'rtcEngine(_:didAudioRouteChanged:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
 55 |         self.agoraSettings.rtcDelegate?.rtcEngine?(engine, didLocalPublishFallbackToAudioOnly: isFallbackOrRecover)
 56 |     }
 57 |     open func rtcEngine(_ engine: AgoraRtcEngineKit, didAudioRouteChanged routing: AgoraAudioOutputRouting) {
    |               |- warning: main actor-isolated instance method 'rtcEngine(_:didAudioRouteChanged:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
    |               `- note: add 'nonisolated' to 'rtcEngine(_:didAudioRouteChanged:)' to make this instance method not isolated to the actor
 58 |         self.agoraSettings.rtcDelegate?.rtcEngine?(engine, didAudioRouteChanged: routing)
 59 |     }
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraVideoViewer+RtcEngineDelegateOverflow.swift:12:15: warning: main actor-isolated instance method 'rtcEngineLocalAudioMixingDidFinish' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
 10 |         self.agoraSettings.rtcDelegate?.rtcEngineConnectionDidLost?(engine)
 11 |     }
 12 |     open func rtcEngineLocalAudioMixingDidFinish(_ engine: AgoraRtcEngineKit) {
    |               |- warning: main actor-isolated instance method 'rtcEngineLocalAudioMixingDidFinish' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
    |               `- note: add 'nonisolated' to 'rtcEngineLocalAudioMixingDidFinish' to make this instance method not isolated to the actor
 13 |         self.agoraSettings.rtcDelegate?.rtcEngineLocalAudioMixingDidFinish?(engine)
 14 |     }
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraVideoViewer+RtcEngineDelegateOverflow.swift:96:15: warning: main actor-isolated instance method 'rtcEngineDidAudioEffectFinish(_:soundId:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
 94 |         self.agoraSettings.rtcDelegate?.rtcEngine?(engine, remoteAudioStats: stats)
 95 |     }
 96 |     open func rtcEngineDidAudioEffectFinish(_ engine: AgoraRtcEngineKit, soundId: Int32) {
    |               |- warning: main actor-isolated instance method 'rtcEngineDidAudioEffectFinish(_:soundId:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
    |               `- note: add 'nonisolated' to 'rtcEngineDidAudioEffectFinish(_:soundId:)' to make this instance method not isolated to the actor
 97 |         self.agoraSettings.rtcDelegate?.rtcEngineDidAudioEffectFinish?(engine, soundId: soundId)
 98 |     }
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraVideoViewer+RtcEngineDelegateOverflow.swift:24:15: warning: main actor-isolated instance method 'rtcEngineCameraDidReady' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
 22 |         self.agoraSettings.rtcDelegate?.rtcEngineVideoDidStop?(engine)
 23 |     }
 24 |     open func rtcEngineCameraDidReady(_ engine: AgoraRtcEngineKit) {
    |               |- warning: main actor-isolated instance method 'rtcEngineCameraDidReady' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
    |               `- note: add 'nonisolated' to 'rtcEngineCameraDidReady' to make this instance method not isolated to the actor
 25 |         self.agoraSettings.rtcDelegate?.rtcEngineCameraDidReady?(engine)
 26 |     }
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraVideoViewer+RtcEngineDelegateOverflow.swift:21:15: warning: main actor-isolated instance method 'rtcEngineVideoDidStop' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
 19 |         self.agoraSettings.rtcDelegate?.rtcEngineRemoteAudioMixingDidFinish?(engine)
 20 |     }
 21 |     open func rtcEngineVideoDidStop(_ engine: AgoraRtcEngineKit) {
    |               |- warning: main actor-isolated instance method 'rtcEngineVideoDidStop' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
    |               `- note: add 'nonisolated' to 'rtcEngineVideoDidStop' to make this instance method not isolated to the actor
 22 |         self.agoraSettings.rtcDelegate?.rtcEngineVideoDidStop?(engine)
 23 |     }
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraVideoViewer+RtcEngineDelegateOverflow.swift:105:15: warning: main actor-isolated instance method 'rtcEngine(_:firstLocalVideoFramePublishedWithElapsed:sourceType:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
103 |         self.agoraSettings.rtcDelegate?.rtcEngine?(engine, streamUnpublishedWithUrl: url)
104 |     }
105 |     open func rtcEngine(_ engine: AgoraRtcEngineKit, firstLocalVideoFramePublishedWithElapsed elapsed: Int, sourceType: AgoraVideoSourceType) {
    |               |- warning: main actor-isolated instance method 'rtcEngine(_:firstLocalVideoFramePublishedWithElapsed:sourceType:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
    |               `- note: add 'nonisolated' to 'rtcEngine(_:firstLocalVideoFramePublishedWithElapsed:sourceType:)' to make this instance method not isolated to the actor
106 |             self.agoraSettings.rtcDelegate?.rtcEngine?(engine, firstLocalVideoFramePublishedWithElapsed: elapsed, sourceType: sourceType)
107 |     }
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraVideoViewer+RtcEngineDelegateOverflow.swift:117:15: warning: main actor-isolated instance method 'rtcEngine(_:firstLocalVideoFrameWith:elapsed:sourceType:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
115 |         self.agoraSettings.rtcDelegate?.rtcEngine?(engine, didUserInfoUpdatedWithUserId: uid, userInfo: userInfo)
116 |     }
117 |     open func rtcEngine(_ engine: AgoraRtcEngineKit, firstLocalVideoFrameWith size: CGSize, elapsed: Int, sourceType: AgoraVideoSourceType) {
    |               |- warning: main actor-isolated instance method 'rtcEngine(_:firstLocalVideoFrameWith:elapsed:sourceType:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
    |               `- note: add 'nonisolated' to 'rtcEngine(_:firstLocalVideoFrameWith:elapsed:sourceType:)' to make this instance method not isolated to the actor
118 |         self.agoraSettings.rtcDelegate?.rtcEngine?(engine, firstLocalVideoFrameWith: size, elapsed: elapsed, sourceType: sourceType)
119 |     }
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraVideoViewer+RtcEngineDelegateOverflow.swift:84:15: warning: main actor-isolated instance method 'rtcEngine(_:localVideoStats:sourceType:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
 82 |         self.agoraSettings.rtcDelegate?.rtcEngine?(engine, lastmileProbeTest: result)
 83 |     }
 84 |     open func rtcEngine(_ engine: AgoraRtcEngineKit, localVideoStats stats: AgoraRtcLocalVideoStats, sourceType: AgoraVideoSourceType) {
    |               |- warning: main actor-isolated instance method 'rtcEngine(_:localVideoStats:sourceType:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
    |               `- note: add 'nonisolated' to 'rtcEngine(_:localVideoStats:sourceType:)' to make this instance method not isolated to the actor
 85 |         self.agoraSettings.rtcDelegate?.rtcEngine?(engine, localVideoStats: stats, sourceType: sourceType)
 86 |     }
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraVideoViewer+RtcEngineDelegateOverflow.swift:54:15: warning: main actor-isolated instance method 'rtcEngine(_:didLocalPublishFallbackToAudioOnly:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
 52 |         self.agoraSettings.rtcDelegate?.rtcEngine?(engine, networkTypeChanged: type)
 53 |     }
 54 |     open func rtcEngine(_ engine: AgoraRtcEngineKit, didLocalPublishFallbackToAudioOnly isFallbackOrRecover: Bool) {
    |               |- warning: main actor-isolated instance method 'rtcEngine(_:didLocalPublishFallbackToAudioOnly:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
    |               `- note: add 'nonisolated' to 'rtcEngine(_:didLocalPublishFallbackToAudioOnly:)' to make this instance method not isolated to the actor
 55 |         self.agoraSettings.rtcDelegate?.rtcEngine?(engine, didLocalPublishFallbackToAudioOnly: isFallbackOrRecover)
 56 |     }
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraVideoViewer+AgoraRtcEngineDelegate.swift:48:15: warning: main actor-isolated instance method 'rtcEngine(_:didJoinedOfUid:elapsed:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
 46 |     ///   - uid: ID of the user or host who joins the channel. If the `uid` is specified in the joinChannel method, the specified user ID is returned. If the `uid` is not specified in the joinChannelByToken method, the Agora server automatically assigns a `uid`.
 47 |     ///   - elapsed: Time elapsed (ms) from the local user calling the joinChannel or setClientRole method until the SDK triggers this callback.
 48 |     open func rtcEngine(
    |               |- warning: main actor-isolated instance method 'rtcEngine(_:didJoinedOfUid:elapsed:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
    |               `- note: add 'nonisolated' to 'rtcEngine(_:didJoinedOfUid:elapsed:)' to make this instance method not isolated to the actor
 49 |         _ engine: AgoraRtcEngineKit,
 50 |         didJoinedOfUid uid: UInt,
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraVideoViewer+AgoraRtcEngineDelegate.swift:100:15: warning: main actor-isolated instance method 'rtcEngine(_:didOfflineOfUid:reason:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
 98 |          - reason: Reason why the user goes offline, see AgoraUserOfflineReason.
 99 |     */
100 |     open func rtcEngine(
    |               |- warning: main actor-isolated instance method 'rtcEngine(_:didOfflineOfUid:reason:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
    |               `- note: add 'nonisolated' to 'rtcEngine(_:didOfflineOfUid:reason:)' to make this instance method not isolated to the actor
101 |         _ engine: AgoraRtcEngineKit,
102 |         didOfflineOfUid uid: UInt,
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraVideoViewer+RtcEngineDelegateOverflow.swift:162:15: warning: main actor-isolated instance method 'rtcEngine(_:receiveStreamMessageFromUid:streamId:data:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
160 |         self.agoraSettings.rtcDelegate?.rtcEngine?(engine, streamInjectedStatusOfUrl: url, uid: uid, status: status)
161 |     }
162 |     open func rtcEngine(_ engine: AgoraRtcEngineKit, receiveStreamMessageFromUid uid: UInt, streamId: Int, data: Data) {
    |               |- warning: main actor-isolated instance method 'rtcEngine(_:receiveStreamMessageFromUid:streamId:data:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
    |               `- note: add 'nonisolated' to 'rtcEngine(_:receiveStreamMessageFromUid:streamId:data:)' to make this instance method not isolated to the actor
163 |         self.agoraSettings.rtcDelegate?.rtcEngine?(engine, receiveStreamMessageFromUid: uid, streamId: streamId, data: data)
164 |     }
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraVideoViewer+RtcEngineDelegateOverflow.swift:234:15: warning: main actor-isolated instance method 'rtcEngine(_:didOccurStreamMessageErrorFromUid:streamId:error:missed:cached:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
232 |         self.agoraSettings.rtcDelegate?.rtcEngine?(engine, didVideoSubscribeStateChange: channelId, uid: uid, oldState: oldState, newState: newState, elapseSinceLastState: elapseSinceLastState)
233 |     }
234 |     open func rtcEngine(_ engine: AgoraRtcEngineKit, didOccurStreamMessageErrorFromUid uid: UInt, streamId: Int, error: Int, missed: Int, cached: Int) {
    |               |- warning: main actor-isolated instance method 'rtcEngine(_:didOccurStreamMessageErrorFromUid:streamId:error:missed:cached:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
    |               `- note: add 'nonisolated' to 'rtcEngine(_:didOccurStreamMessageErrorFromUid:streamId:error:missed:cached:)' to make this instance method not isolated to the actor
235 |         self.agoraSettings.rtcDelegate?.rtcEngine?(engine, didOccurStreamMessageErrorFromUid: uid, streamId: streamId, error: error, missed: missed, cached: cached)
236 |     }
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraVideoViewer+RtcEngineDelegateOverflow.swift:129:15: warning: main actor-isolated instance method 'rtcEngine(_:firstRemoteAudioFrameOfUid:elapsed:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
127 |         self.agoraSettings.rtcDelegate?.rtcEngine?(engine, channelMediaRelayStateDidChange: state, error: error)
128 |     }
129 |     open func rtcEngine(_ engine: AgoraRtcEngineKit, firstRemoteAudioFrameOfUid uid: UInt, elapsed: Int) {
    |               |- warning: main actor-isolated instance method 'rtcEngine(_:firstRemoteAudioFrameOfUid:elapsed:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
    |               `- note: add 'nonisolated' to 'rtcEngine(_:firstRemoteAudioFrameOfUid:elapsed:)' to make this instance method not isolated to the actor
130 |         self.agoraSettings.rtcDelegate?.rtcEngine?(engine, firstRemoteAudioFrameOfUid: uid, elapsed: elapsed)
131 |     }
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraVideoViewer+RtcEngineDelegateOverflow.swift:241:15: warning: main actor-isolated instance method 'rtcEngine(_:firstRemoteAudioFrameDecodedOfUid:elapsed:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
239 |     }
240 |     // MARK: - Deprecated
241 |     open func rtcEngine(_ engine: AgoraRtcEngineKit, firstRemoteAudioFrameDecodedOfUid uid: UInt, elapsed: Int) {}
    |               |- warning: main actor-isolated instance method 'rtcEngine(_:firstRemoteAudioFrameDecodedOfUid:elapsed:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
    |               `- note: add 'nonisolated' to 'rtcEngine(_:firstRemoteAudioFrameDecodedOfUid:elapsed:)' to make this instance method not isolated to the actor
242 | }
243 |
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraVideoViewer+RtcEngineDelegateOverflow.swift:93:15: warning: main actor-isolated instance method 'rtcEngine(_:remoteAudioStats:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
 91 |         self.agoraSettings.rtcDelegate?.rtcEngine?(engine, remoteVideoStats: stats)
 92 |     }
 93 |     open func rtcEngine(_ engine: AgoraRtcEngineKit, remoteAudioStats stats: AgoraRtcRemoteAudioStats) {
    |               |- warning: main actor-isolated instance method 'rtcEngine(_:remoteAudioStats:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
    |               `- note: add 'nonisolated' to 'rtcEngine(_:remoteAudioStats:)' to make this instance method not isolated to the actor
 94 |         self.agoraSettings.rtcDelegate?.rtcEngine?(engine, remoteAudioStats: stats)
 95 |     }
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraVideoViewer+RtcEngineDelegateOverflow.swift:132:15: warning: main actor-isolated instance method 'rtcEngine(_:didAudioMuted:byUid:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
130 |         self.agoraSettings.rtcDelegate?.rtcEngine?(engine, firstRemoteAudioFrameOfUid: uid, elapsed: elapsed)
131 |     }
132 |     open func rtcEngine(_ engine: AgoraRtcEngineKit, didAudioMuted muted: Bool, byUid uid: UInt) {
    |               |- warning: main actor-isolated instance method 'rtcEngine(_:didAudioMuted:byUid:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
    |               `- note: add 'nonisolated' to 'rtcEngine(_:didAudioMuted:byUid:)' to make this instance method not isolated to the actor
133 |         self.agoraSettings.rtcDelegate?.rtcEngine?(engine, didAudioMuted: muted, byUid: uid)
134 |     }
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraVideoViewer+RtcEngineDelegateOverflow.swift:108:15: warning: main actor-isolated instance method 'rtcEngine(_:reportAudioVolumeIndicationOfSpeakers:totalVolume:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
106 |             self.agoraSettings.rtcDelegate?.rtcEngine?(engine, firstLocalVideoFramePublishedWithElapsed: elapsed, sourceType: sourceType)
107 |     }
108 |     open func rtcEngine(_ engine: AgoraRtcEngineKit, reportAudioVolumeIndicationOfSpeakers speakers: [AgoraRtcAudioVolumeInfo], totalVolume: Int) {
    |               |- warning: main actor-isolated instance method 'rtcEngine(_:reportAudioVolumeIndicationOfSpeakers:totalVolume:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
    |               `- note: add 'nonisolated' to 'rtcEngine(_:reportAudioVolumeIndicationOfSpeakers:totalVolume:)' to make this instance method not isolated to the actor
109 |         self.agoraSettings.rtcDelegate?.rtcEngine?(engine, reportAudioVolumeIndicationOfSpeakers: speakers, totalVolume: totalVolume)
110 |     }
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraVideoViewer+AgoraRtcEngineDelegate.swift:135:15: warning: main actor-isolated instance method 'rtcEngine(_:activeSpeaker:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
133 |          - speakerUid: The user ID of the most active speaker.
134 |      */
135 |     open func rtcEngine(_ engine: AgoraRtcEngineKit, activeSpeaker speakerUid: UInt) {
    |               |- warning: main actor-isolated instance method 'rtcEngine(_:activeSpeaker:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
    |               `- note: add 'nonisolated' to 'rtcEngine(_:activeSpeaker:)' to make this instance method not isolated to the actor
136 |         self.activeSpeaker = speakerUid
137 |         self.agoraSettings.rtcDelegate?.rtcEngine?(engine, activeSpeaker: speakerUid)
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraVideoViewer+RtcEngineDelegateOverflow.swift:15:15: warning: main actor-isolated instance method 'rtcEngineRemoteAudioMixingDidStart' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
 13 |         self.agoraSettings.rtcDelegate?.rtcEngineLocalAudioMixingDidFinish?(engine)
 14 |     }
 15 |     open func rtcEngineRemoteAudioMixingDidStart(_ engine: AgoraRtcEngineKit) {
    |               |- warning: main actor-isolated instance method 'rtcEngineRemoteAudioMixingDidStart' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
    |               `- note: add 'nonisolated' to 'rtcEngineRemoteAudioMixingDidStart' to make this instance method not isolated to the actor
 16 |         self.agoraSettings.rtcDelegate?.rtcEngineRemoteAudioMixingDidStart?(engine)
 17 |     }
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraVideoViewer+RtcEngineDelegateOverflow.swift:18:15: warning: main actor-isolated instance method 'rtcEngineRemoteAudioMixingDidFinish' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
 16 |         self.agoraSettings.rtcDelegate?.rtcEngineRemoteAudioMixingDidStart?(engine)
 17 |     }
 18 |     open func rtcEngineRemoteAudioMixingDidFinish(_ engine: AgoraRtcEngineKit) {
    |               |- warning: main actor-isolated instance method 'rtcEngineRemoteAudioMixingDidFinish' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
    |               `- note: add 'nonisolated' to 'rtcEngineRemoteAudioMixingDidFinish' to make this instance method not isolated to the actor
 19 |         self.agoraSettings.rtcDelegate?.rtcEngineRemoteAudioMixingDidFinish?(engine)
 20 |     }
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraVideoViewer+RtcEngineDelegateOverflow.swift:204:15: warning: main actor-isolated instance method 'rtcEngine(_:audioQualityOfUid:quality:delay:lost:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
202 |         self.agoraSettings.rtcDelegate?.rtcEngine?(engine, videoTransportStatsOfUid: uid, delay: delay, lost: lost, rxKBitRate: rxKBitRate)
203 |     }
204 |     open func rtcEngine(_ engine: AgoraRtcEngineKit, audioQualityOfUid uid: UInt, quality: AgoraNetworkQuality, delay: UInt, lost: UInt) {
    |               |- warning: main actor-isolated instance method 'rtcEngine(_:audioQualityOfUid:quality:delay:lost:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
    |               `- note: add 'nonisolated' to 'rtcEngine(_:audioQualityOfUid:quality:delay:lost:)' to make this instance method not isolated to the actor
205 |         self.agoraSettings.rtcDelegate?.rtcEngine?(engine, audioQualityOfUid: uid, quality: quality, delay: delay, lost: lost)
206 |     }
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraVideoViewer+RtcEngineDelegateOverflow.swift:198:15: warning: main actor-isolated instance method 'rtcEngine(_:audioTransportStatsOfUid:delay:lost:rxKBitRate:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
196 |         self.agoraSettings.rtcDelegate?.rtcEngine?(engine, didProxyConnected: channel, withUid: uid, proxyType: proxyType, localProxyIp: localProxyIp, elapsed: elapsed)
197 |     }
198 |     open func rtcEngine(_ engine: AgoraRtcEngineKit, audioTransportStatsOfUid uid: UInt, delay: UInt, lost: UInt, rxKBitRate: UInt) {
    |               |- warning: main actor-isolated instance method 'rtcEngine(_:audioTransportStatsOfUid:delay:lost:rxKBitRate:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
    |               `- note: add 'nonisolated' to 'rtcEngine(_:audioTransportStatsOfUid:delay:lost:rxKBitRate:)' to make this instance method not isolated to the actor
199 |         self.agoraSettings.rtcDelegate?.rtcEngine?(engine, audioTransportStatsOfUid: uid, delay: delay, lost: lost, rxKBitRate: rxKBitRate)
200 |     }
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraVideoViewer+RtcEngineDelegateOverflow.swift:207:15: warning: main actor-isolated instance method 'rtcEngineIntraRequestReceived' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
205 |         self.agoraSettings.rtcDelegate?.rtcEngine?(engine, audioQualityOfUid: uid, quality: quality, delay: delay, lost: lost)
206 |     }
207 |     open func rtcEngineIntraRequestReceived(_ engine: AgoraRtcEngineKit) {
    |               |- warning: main actor-isolated instance method 'rtcEngineIntraRequestReceived' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
    |               `- note: add 'nonisolated' to 'rtcEngineIntraRequestReceived' to make this instance method not isolated to the actor
208 |         self.agoraSettings.rtcDelegate?.rtcEngineIntraRequestReceived?(engine)
209 |     }
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraVideoViewer+RtcEngineDelegateOverflow.swift:216:15: warning: main actor-isolated instance method 'rtcEngine(_:uplinkNetworkInfoUpdate:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
214 |         self.agoraSettings.rtcDelegate?.rtcEngine?(engine, permissionError: type)
215 |     }
216 |     open func rtcEngine(_ engine: AgoraRtcEngineKit, uplinkNetworkInfoUpdate networkInfo: AgoraUplinkNetworkInfo) {
    |               |- warning: main actor-isolated instance method 'rtcEngine(_:uplinkNetworkInfoUpdate:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
    |               `- note: add 'nonisolated' to 'rtcEngine(_:uplinkNetworkInfoUpdate:)' to make this instance method not isolated to the actor
217 |         self.agoraSettings.rtcDelegate?.rtcEngine?(engine, uplinkNetworkInfoUpdate: networkInfo)
218 |     }
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraVideoViewer+RtcEngineDelegateOverflow.swift:219:15: warning: main actor-isolated instance method 'rtcEngine(_:downlinkNetworkInfoUpdate:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
217 |         self.agoraSettings.rtcDelegate?.rtcEngine?(engine, uplinkNetworkInfoUpdate: networkInfo)
218 |     }
219 |     open func rtcEngine(_ engine: AgoraRtcEngineKit, downlinkNetworkInfoUpdate networkInfo: AgoraDownlinkNetworkInfo) {
    |               |- warning: main actor-isolated instance method 'rtcEngine(_:downlinkNetworkInfoUpdate:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
    |               `- note: add 'nonisolated' to 'rtcEngine(_:downlinkNetworkInfoUpdate:)' to make this instance method not isolated to the actor
220 |         self.agoraSettings.rtcDelegate?.rtcEngine?(engine, downlinkNetworkInfoUpdate: networkInfo)
221 |     }
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraVideoViewer+RtcEngineDelegateOverflow.swift:228:15: warning: main actor-isolated instance method 'rtcEngine(_:didAudioSubscribeStateChange:uid:oldState:newState:elapseSinceLastState:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
226 |         self.agoraSettings.rtcDelegate?.rtcEngine?(engine, didVideoPublishStateChange: channelId, sourceType: sourceType, oldState: oldState, newState: newState, elapseSinceLastState: elapseSinceLastState)
227 |     }
228 |     open func rtcEngine(_ engine: AgoraRtcEngineKit, didAudioSubscribeStateChange channelId: String, uid: UInt32, oldState: AgoraStreamSubscribeState, newState: AgoraStreamSubscribeState, elapseSinceLastState: Int32) {
    |               |- warning: main actor-isolated instance method 'rtcEngine(_:didAudioSubscribeStateChange:uid:oldState:newState:elapseSinceLastState:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
    |               `- note: add 'nonisolated' to 'rtcEngine(_:didAudioSubscribeStateChange:uid:oldState:newState:elapseSinceLastState:)' to make this instance method not isolated to the actor
229 |         self.agoraSettings.rtcDelegate?.rtcEngine?(engine, didAudioSubscribeStateChange: channelId, uid: uid, oldState: oldState, newState: newState, elapseSinceLastState: elapseSinceLastState)
230 |     }
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraVideoViewer+RtcEngineDelegateOverflow.swift:222:15: warning: main actor-isolated instance method 'rtcEngine(_:didAudioPublishStateChange:oldState:newState:elapseSinceLastState:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
220 |         self.agoraSettings.rtcDelegate?.rtcEngine?(engine, downlinkNetworkInfoUpdate: networkInfo)
221 |     }
222 |     open func rtcEngine(_ engine: AgoraRtcEngineKit, didAudioPublishStateChange channelId: String, oldState: AgoraStreamPublishState, newState: AgoraStreamPublishState, elapseSinceLastState: Int32) {
    |               |- warning: main actor-isolated instance method 'rtcEngine(_:didAudioPublishStateChange:oldState:newState:elapseSinceLastState:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
    |               `- note: add 'nonisolated' to 'rtcEngine(_:didAudioPublishStateChange:oldState:newState:elapseSinceLastState:)' to make this instance method not isolated to the actor
223 |         self.agoraSettings.rtcDelegate?.rtcEngine?(engine, didAudioPublishStateChange: channelId, oldState: oldState, newState: newState, elapseSinceLastState: elapseSinceLastState)
224 |     }
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraVideoViewer+RtcEngineDelegateOverflow.swift:111:15: warning: main actor-isolated instance method 'rtcEngine(_:didLocalUserRegisteredWithUserId:userAccount:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
109 |         self.agoraSettings.rtcDelegate?.rtcEngine?(engine, reportAudioVolumeIndicationOfSpeakers: speakers, totalVolume: totalVolume)
110 |     }
111 |     open func rtcEngine(_ engine: AgoraRtcEngineKit, didLocalUserRegisteredWithUserId uid: UInt, userAccount: String) {
    |               |- warning: main actor-isolated instance method 'rtcEngine(_:didLocalUserRegisteredWithUserId:userAccount:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
    |               `- note: add 'nonisolated' to 'rtcEngine(_:didLocalUserRegisteredWithUserId:userAccount:)' to make this instance method not isolated to the actor
112 |         self.agoraSettings.rtcDelegate?.rtcEngine?(engine, didLocalUserRegisteredWithUserId: uid, userAccount: userAccount)
113 |     }
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraVideoViewer+RtcEngineDelegateOverflow.swift:114:15: warning: main actor-isolated instance method 'rtcEngine(_:didUserInfoUpdatedWithUserId:userInfo:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
112 |         self.agoraSettings.rtcDelegate?.rtcEngine?(engine, didLocalUserRegisteredWithUserId: uid, userAccount: userAccount)
113 |     }
114 |     open func rtcEngine(_ engine: AgoraRtcEngineKit, didUserInfoUpdatedWithUserId uid: UInt, userInfo: AgoraUserInfo) {
    |               |- warning: main actor-isolated instance method 'rtcEngine(_:didUserInfoUpdatedWithUserId:userInfo:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
    |               `- note: add 'nonisolated' to 'rtcEngine(_:didUserInfoUpdatedWithUserId:userInfo:)' to make this instance method not isolated to the actor
115 |         self.agoraSettings.rtcDelegate?.rtcEngine?(engine, didUserInfoUpdatedWithUserId: uid, userInfo: userInfo)
116 |     }
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraVideoViewer+RtcEngineDelegateOverflow.swift:186:15: warning: main actor-isolated instance method 'rtcEngine(_:didRhythmPlayerStateChanged:errorCode:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
184 |         self.agoraSettings.rtcDelegate?.rtcEngine?(engine, didClientRoleChangeFailed: reason, currentRole: currentRole)
185 |     }
186 |     open func rtcEngine(_ engine: AgoraRtcEngineKit, didRhythmPlayerStateChanged state: AgoraRhythmPlayerState, errorCode: AgoraRhythmPlayerError) {
    |               |- warning: main actor-isolated instance method 'rtcEngine(_:didRhythmPlayerStateChanged:errorCode:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
    |               `- note: add 'nonisolated' to 'rtcEngine(_:didRhythmPlayerStateChanged:errorCode:)' to make this instance method not isolated to the actor
187 |         self.agoraSettings.rtcDelegate?.rtcEngine?(engine, didRhythmPlayerStateChanged: state, errorCode: errorCode)
188 |     }
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraVideoViewer+RtcEngineDelegateOverflow.swift:165:15: warning: main actor-isolated instance method 'rtcEngine(_:firstRemoteVideoFrameOfUid:size:elapsed:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
163 |         self.agoraSettings.rtcDelegate?.rtcEngine?(engine, receiveStreamMessageFromUid: uid, streamId: streamId, data: data)
164 |     }
165 |     open func rtcEngine(_ engine: AgoraRtcEngineKit, firstRemoteVideoFrameOfUid uid: UInt, size: CGSize, elapsed: Int) {
    |               |- warning: main actor-isolated instance method 'rtcEngine(_:firstRemoteVideoFrameOfUid:size:elapsed:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
    |               `- note: add 'nonisolated' to 'rtcEngine(_:firstRemoteVideoFrameOfUid:size:elapsed:)' to make this instance method not isolated to the actor
166 |         self.agoraSettings.rtcDelegate?.rtcEngine?(engine, firstRemoteVideoFrameOfUid: uid, size: size, elapsed: elapsed)
167 |     }
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraVideoViewer+RtcEngineDelegateOverflow.swift:153:15: warning: main actor-isolated instance method 'rtcEngine(_:videoSizeChangedOf:uid:size:rotation:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
151 |         self.agoraSettings.rtcDelegate?.rtcEngine?(engine, didRejoinChannel: channel, withUid: uid, elapsed: elapsed)
152 |     }
153 |     open func rtcEngine(_ engine: AgoraRtcEngineKit, videoSizeChangedOf sourceType: AgoraVideoSourceType, uid: UInt, size: CGSize, rotation: Int) {
    |               |- warning: main actor-isolated instance method 'rtcEngine(_:videoSizeChangedOf:uid:size:rotation:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
    |               `- note: add 'nonisolated' to 'rtcEngine(_:videoSizeChangedOf:uid:size:rotation:)' to make this instance method not isolated to the actor
154 |         self.agoraSettings.rtcDelegate?.rtcEngine?(engine, videoSizeChangedOf: sourceType, uid: uid, size: size, rotation: rotation)
155 |     }
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraVideoViewer+RtcEngineDelegateOverflow.swift:168:15: warning: main actor-isolated instance method 'rtcEngine(_:contentInspectResult:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
166 |         self.agoraSettings.rtcDelegate?.rtcEngine?(engine, firstRemoteVideoFrameOfUid: uid, size: size, elapsed: elapsed)
167 |     }
168 |     open func rtcEngine(_ engine: AgoraRtcEngineKit, contentInspectResult result: AgoraContentInspectResult) {
    |               |- warning: main actor-isolated instance method 'rtcEngine(_:contentInspectResult:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
    |               `- note: add 'nonisolated' to 'rtcEngine(_:contentInspectResult:)' to make this instance method not isolated to the actor
169 |         self.agoraSettings.rtcDelegate?.rtcEngine?(engine, contentInspectResult: result)
170 |     }
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraVideoViewer+RtcEngineDelegateOverflow.swift:192:15: warning: main actor-isolated instance method 'rtcEngine(_:snapshotTaken:filePath:width:height:errCode:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
190 |         self.agoraSettings.rtcDelegate?.rtcEngine?(engine, uploadLogResultRequestId: requestId, success: success, reason: reason)
191 |     }
192 |     open func rtcEngine(_ engine: AgoraRtcEngineKit, snapshotTaken uid: UInt, filePath: String, width: Int, height: Int, errCode: Int) {
    |               |- warning: main actor-isolated instance method 'rtcEngine(_:snapshotTaken:filePath:width:height:errCode:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
    |               `- note: add 'nonisolated' to 'rtcEngine(_:snapshotTaken:filePath:width:height:errCode:)' to make this instance method not isolated to the actor
193 |         self.agoraSettings.rtcDelegate?.rtcEngine?(engine, snapshotTaken: uid, filePath: filePath, width: width, height: height, errCode: errCode)
194 |     }
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraVideoViewer+AgoraRtcEngineDelegate.swift:205:17: warning: main actor-isolated instance method 'rtcEngine(_:localVideoStateChangedOf:error:sourceType:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
203 |         - sourceType: Source type of the orignated video source
204 |      */
205 |     public func rtcEngine(
    |                 |- warning: main actor-isolated instance method 'rtcEngine(_:localVideoStateChangedOf:error:sourceType:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
    |                 `- note: add 'nonisolated' to 'rtcEngine(_:localVideoStateChangedOf:error:sourceType:)' to make this instance method not isolated to the actor
206 |         _ engine: AgoraRtcEngineKit, localVideoStateChangedOf state: AgoraVideoLocalState,
207 |         error: AgoraLocalVideoStreamError, sourceType: AgoraVideoSourceType
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraVideoViewer+AgoraRtcEngineDelegate.swift:152:15: warning: main actor-isolated instance method 'rtcEngine(_:remoteVideoStateChangedOfUid:state:reason:elapsed:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
150 |          - elapsed: The time elapsed (ms) from the local user calling the joinChannel.
151 |      */
152 |     open func rtcEngine(
    |               |- warning: main actor-isolated instance method 'rtcEngine(_:remoteVideoStateChangedOfUid:state:reason:elapsed:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
    |               `- note: add 'nonisolated' to 'rtcEngine(_:remoteVideoStateChangedOfUid:state:reason:elapsed:)' to make this instance method not isolated to the actor
153 |         _ engine: AgoraRtcEngineKit, remoteVideoStateChangedOfUid uid: UInt,
154 |         state: AgoraVideoRemoteState, reason: AgoraVideoRemoteReason, elapsed: Int
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraVideoViewer+AgoraRtcEngineDelegate.swift:67:15: warning: main actor-isolated instance method 'rtcEngine(_:remoteAudioStateChangedOfUid:state:reason:elapsed:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
 65 |     ///
 66 |     /// This callback does not work properly when the number of users (in the communication profile) or broadcasters (in the live interactive streaming profile) in the channel exceeds 17.
 67 |     open func rtcEngine(
    |               |- warning: main actor-isolated instance method 'rtcEngine(_:remoteAudioStateChangedOfUid:state:reason:elapsed:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
    |               `- note: add 'nonisolated' to 'rtcEngine(_:remoteAudioStateChangedOfUid:state:reason:elapsed:)' to make this instance method not isolated to the actor
 68 |         _ engine: AgoraRtcEngineKit, remoteAudioStateChangedOfUid uid: UInt,
 69 |         state: AgoraAudioRemoteState, reason: AgoraAudioRemoteReason, elapsed: Int
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraVideoViewer+RtcEngineDelegateOverflow.swift:126:15: warning: main actor-isolated instance method 'rtcEngine(_:channelMediaRelayStateDidChange:error:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
124 |         self.agoraSettings.rtcDelegate?.rtcEngine?(engine, audioMixingStateChanged: state, reasonCode: reasonCode)
125 |     }
126 |     open func rtcEngine(_ engine: AgoraRtcEngineKit, channelMediaRelayStateDidChange state: AgoraChannelMediaRelayState, error: AgoraChannelMediaRelayError) {
    |               |- warning: main actor-isolated instance method 'rtcEngine(_:channelMediaRelayStateDidChange:error:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
    |               `- note: add 'nonisolated' to 'rtcEngine(_:channelMediaRelayStateDidChange:error:)' to make this instance method not isolated to the actor
127 |         self.agoraSettings.rtcDelegate?.rtcEngine?(engine, channelMediaRelayStateDidChange: state, error: error)
128 |     }
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraVideoViewer+RtcEngineDelegateOverflow.swift:99:15: warning: main actor-isolated instance method 'rtcEngine(_:didReceive:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
 97 |         self.agoraSettings.rtcDelegate?.rtcEngineDidAudioEffectFinish?(engine, soundId: soundId)
 98 |     }
 99 |     open func rtcEngine(_ engine: AgoraRtcEngineKit, didReceive event: AgoraChannelMediaRelayEvent) {
    |               |- warning: main actor-isolated instance method 'rtcEngine(_:didReceive:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
    |               `- note: add 'nonisolated' to 'rtcEngine(_:didReceive:)' to make this instance method not isolated to the actor
100 |         self.agoraSettings.rtcDelegate?.rtcEngine?(engine, didReceive: event)
101 |     }
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraVideoViewer+RtcEngineDelegateOverflow.swift:195:15: warning: main actor-isolated instance method 'rtcEngine(_:didProxyConnected:withUid:proxyType:localProxyIp:elapsed:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
193 |         self.agoraSettings.rtcDelegate?.rtcEngine?(engine, snapshotTaken: uid, filePath: filePath, width: width, height: height, errCode: errCode)
194 |     }
195 |     open func rtcEngine(_ engine: AgoraRtcEngineKit, didProxyConnected channel: String, withUid uid: UInt, proxyType: AgoraProxyType, localProxyIp: String, elapsed: Int) {
    |               |- warning: main actor-isolated instance method 'rtcEngine(_:didProxyConnected:withUid:proxyType:localProxyIp:elapsed:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
    |               `- note: add 'nonisolated' to 'rtcEngine(_:didProxyConnected:withUid:proxyType:localProxyIp:elapsed:)' to make this instance method not isolated to the actor
196 |         self.agoraSettings.rtcDelegate?.rtcEngine?(engine, didProxyConnected: channel, withUid: uid, proxyType: proxyType, localProxyIp: localProxyIp, elapsed: elapsed)
197 |     }
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraVideoViewer+RtcEngineDelegateOverflow.swift:171:15: warning: main actor-isolated instance method 'rtcEngine(_:remoteUserStateChangedOfUid:state:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
169 |         self.agoraSettings.rtcDelegate?.rtcEngine?(engine, contentInspectResult: result)
170 |     }
171 |     open func rtcEngine(_ engine: AgoraRtcEngineKit, remoteUserStateChangedOfUid uid: UInt, state: UInt) {
    |               |- warning: main actor-isolated instance method 'rtcEngine(_:remoteUserStateChangedOfUid:state:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
    |               `- note: add 'nonisolated' to 'rtcEngine(_:remoteUserStateChangedOfUid:state:)' to make this instance method not isolated to the actor
172 |         self.agoraSettings.rtcDelegate?.rtcEngine?(engine, remoteUserStateChangedOfUid: uid, state: state)
173 |     }
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraVideoViewer+RtcEngineDelegateOverflow.swift:90:15: warning: main actor-isolated instance method 'rtcEngine(_:remoteVideoStats:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
 88 |         self.agoraSettings.rtcDelegate?.rtcEngine?(engine, localAudioStats: stats)
 89 |     }
 90 |     open func rtcEngine(_ engine: AgoraRtcEngineKit, remoteVideoStats stats: AgoraRtcRemoteVideoStats) {
    |               |- warning: main actor-isolated instance method 'rtcEngine(_:remoteVideoStats:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
    |               `- note: add 'nonisolated' to 'rtcEngine(_:remoteVideoStats:)' to make this instance method not isolated to the actor
 91 |         self.agoraSettings.rtcDelegate?.rtcEngine?(engine, remoteVideoStats: stats)
 92 |     }
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraVideoViewer+RtcEngineDelegateOverflow.swift:120:15: warning: main actor-isolated instance method 'rtcEngine(_:didRemoteSubscribeFallbackToAudioOnly:byUid:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
118 |         self.agoraSettings.rtcDelegate?.rtcEngine?(engine, firstLocalVideoFrameWith: size, elapsed: elapsed, sourceType: sourceType)
119 |     }
120 |     open func rtcEngine(_ engine: AgoraRtcEngineKit, didRemoteSubscribeFallbackToAudioOnly isFallbackOrRecover: Bool, byUid uid: UInt) {
    |               |- warning: main actor-isolated instance method 'rtcEngine(_:didRemoteSubscribeFallbackToAudioOnly:byUid:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
    |               `- note: add 'nonisolated' to 'rtcEngine(_:didRemoteSubscribeFallbackToAudioOnly:byUid:)' to make this instance method not isolated to the actor
121 |         self.agoraSettings.rtcDelegate?.rtcEngine?(engine, didRemoteSubscribeFallbackToAudioOnly: isFallbackOrRecover, byUid: uid)
122 |     }
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraVideoViewer+RtcEngineDelegateOverflow.swift:201:15: warning: main actor-isolated instance method 'rtcEngine(_:videoTransportStatsOfUid:delay:lost:rxKBitRate:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
199 |         self.agoraSettings.rtcDelegate?.rtcEngine?(engine, audioTransportStatsOfUid: uid, delay: delay, lost: lost, rxKBitRate: rxKBitRate)
200 |     }
201 |     open func rtcEngine(_ engine: AgoraRtcEngineKit, videoTransportStatsOfUid uid: UInt, delay: UInt, lost: UInt, rxKBitRate: UInt) {
    |               |- warning: main actor-isolated instance method 'rtcEngine(_:videoTransportStatsOfUid:delay:lost:rxKBitRate:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
    |               `- note: add 'nonisolated' to 'rtcEngine(_:videoTransportStatsOfUid:delay:lost:rxKBitRate:)' to make this instance method not isolated to the actor
202 |         self.agoraSettings.rtcDelegate?.rtcEngine?(engine, videoTransportStatsOfUid: uid, delay: delay, lost: lost, rxKBitRate: rxKBitRate)
203 |     }
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraVideoViewer+RtcEngineDelegateOverflow.swift:231:15: warning: main actor-isolated instance method 'rtcEngine(_:didVideoSubscribeStateChange:uid:oldState:newState:elapseSinceLastState:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
229 |         self.agoraSettings.rtcDelegate?.rtcEngine?(engine, didAudioSubscribeStateChange: channelId, uid: uid, oldState: oldState, newState: newState, elapseSinceLastState: elapseSinceLastState)
230 |     }
231 |     open func rtcEngine(_ engine: AgoraRtcEngineKit, didVideoSubscribeStateChange channelId: String, uid: UInt32, oldState: AgoraStreamSubscribeState, newState: AgoraStreamSubscribeState, elapseSinceLastState: Int32) {
    |               |- warning: main actor-isolated instance method 'rtcEngine(_:didVideoSubscribeStateChange:uid:oldState:newState:elapseSinceLastState:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
    |               `- note: add 'nonisolated' to 'rtcEngine(_:didVideoSubscribeStateChange:uid:oldState:newState:elapseSinceLastState:)' to make this instance method not isolated to the actor
232 |         self.agoraSettings.rtcDelegate?.rtcEngine?(engine, didVideoSubscribeStateChange: channelId, uid: uid, oldState: oldState, newState: newState, elapseSinceLastState: elapseSinceLastState)
233 |     }
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraVideoViewer+RtcEngineDelegateOverflow.swift:225:15: warning: main actor-isolated instance method 'rtcEngine(_:didVideoPublishStateChange:sourceType:oldState:newState:elapseSinceLastState:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
223 |         self.agoraSettings.rtcDelegate?.rtcEngine?(engine, didAudioPublishStateChange: channelId, oldState: oldState, newState: newState, elapseSinceLastState: elapseSinceLastState)
224 |     }
225 |     open func rtcEngine(_ engine: AgoraRtcEngineKit, didVideoPublishStateChange channelId: String, sourceType: AgoraVideoSourceType, oldState: AgoraStreamPublishState, newState: AgoraStreamPublishState, elapseSinceLastState: Int32) {
    |               |- warning: main actor-isolated instance method 'rtcEngine(_:didVideoPublishStateChange:sourceType:oldState:newState:elapseSinceLastState:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
    |               `- note: add 'nonisolated' to 'rtcEngine(_:didVideoPublishStateChange:sourceType:oldState:newState:elapseSinceLastState:)' to make this instance method not isolated to the actor
226 |         self.agoraSettings.rtcDelegate?.rtcEngine?(engine, didVideoPublishStateChange: channelId, sourceType: sourceType, oldState: oldState, newState: newState, elapseSinceLastState: elapseSinceLastState)
227 |     }
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraVideoViewer+RtcEngineDelegateOverflow.swift:138:15: warning: main actor-isolated instance method 'rtcEngine(_:rtmpStreamingChangedToState:state:errCode:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
136 |         self.agoraSettings.rtcDelegate?.rtcEngine?(engine, streamPublishedWithUrl: url, errorCode: errorCode)
137 |     }
138 |     open func rtcEngine(_ engine: AgoraRtcEngineKit, rtmpStreamingChangedToState url: String, state: AgoraRtmpStreamingState, errCode: AgoraRtmpStreamingErrorCode) {
    |               |- warning: main actor-isolated instance method 'rtcEngine(_:rtmpStreamingChangedToState:state:errCode:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
    |               `- note: add 'nonisolated' to 'rtcEngine(_:rtmpStreamingChangedToState:state:errCode:)' to make this instance method not isolated to the actor
139 |         self.agoraSettings.rtcDelegate?.rtcEngine?(engine, rtmpStreamingChangedToState: url, state: state, errCode: errCode)
140 |     }
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraVideoViewer+RtcEngineDelegateOverflow.swift:180:15: warning: main actor-isolated instance method 'rtcEngine(_:rtmpStreamingEventWithUrl:eventCode:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
178 |         self.agoraSettings.rtcDelegate?.rtcEngine?(engine, wlAccMessage: reason, action: action, wlAccMsg: wlAccMsg)
179 |     }
180 |     open func rtcEngine(_ engine: AgoraRtcEngineKit, rtmpStreamingEventWithUrl url: String, eventCode: AgoraRtmpStreamingEvent) {
    |               |- warning: main actor-isolated instance method 'rtcEngine(_:rtmpStreamingEventWithUrl:eventCode:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
    |               `- note: add 'nonisolated' to 'rtcEngine(_:rtmpStreamingEventWithUrl:eventCode:)' to make this instance method not isolated to the actor
181 |         self.agoraSettings.rtcDelegate?.rtcEngine?(engine, rtmpStreamingEventWithUrl: url, eventCode: eventCode)
182 |     }
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraVideoViewer+RtcEngineDelegateOverflow.swift:135:15: warning: main actor-isolated instance method 'rtcEngine(_:streamPublishedWithUrl:errorCode:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
133 |         self.agoraSettings.rtcDelegate?.rtcEngine?(engine, didAudioMuted: muted, byUid: uid)
134 |     }
135 |     open func rtcEngine(_ engine: AgoraRtcEngineKit, streamPublishedWithUrl url: String, errorCode: AgoraErrorCode) {
    |               |- warning: main actor-isolated instance method 'rtcEngine(_:streamPublishedWithUrl:errorCode:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
    |               `- note: add 'nonisolated' to 'rtcEngine(_:streamPublishedWithUrl:errorCode:)' to make this instance method not isolated to the actor
136 |         self.agoraSettings.rtcDelegate?.rtcEngine?(engine, streamPublishedWithUrl: url, errorCode: errorCode)
137 |     }
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraVideoViewer+RtcEngineDelegateOverflow.swift:102:15: warning: main actor-isolated instance method 'rtcEngine(_:streamUnpublishedWithUrl:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
100 |         self.agoraSettings.rtcDelegate?.rtcEngine?(engine, didReceive: event)
101 |     }
102 |     open func rtcEngine(_ engine: AgoraRtcEngineKit, streamUnpublishedWithUrl url: String) {
    |               |- warning: main actor-isolated instance method 'rtcEngine(_:streamUnpublishedWithUrl:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
    |               `- note: add 'nonisolated' to 'rtcEngine(_:streamUnpublishedWithUrl:)' to make this instance method not isolated to the actor
103 |         self.agoraSettings.rtcDelegate?.rtcEngine?(engine, streamUnpublishedWithUrl: url)
104 |     }
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraVideoViewer+RtcEngineDelegateOverflow.swift:27:15: warning: main actor-isolated instance method 'rtcEngineTranscodingUpdated' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
 25 |         self.agoraSettings.rtcDelegate?.rtcEngineCameraDidReady?(engine)
 26 |     }
 27 |     open func rtcEngineTranscodingUpdated(_ engine: AgoraRtcEngineKit) {
    |               |- warning: main actor-isolated instance method 'rtcEngineTranscodingUpdated' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
    |               `- note: add 'nonisolated' to 'rtcEngineTranscodingUpdated' to make this instance method not isolated to the actor
 28 |         self.agoraSettings.rtcDelegate?.rtcEngineTranscodingUpdated?(engine)
 29 |     }
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraVideoViewer+RtcEngineDelegateOverflow.swift:159:15: warning: main actor-isolated instance method 'rtcEngine(_:streamInjectedStatusOfUrl:uid:status:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
157 |         self.agoraSettings.rtcDelegate?.rtcEngine?(engine, networkQuality: uid, txQuality: txQuality, rxQuality: rxQuality)
158 |     }
159 |     open func rtcEngine(_ engine: AgoraRtcEngineKit, streamInjectedStatusOfUrl url: String, uid: UInt, status: AgoraInjectStreamStatus) {
    |               |- warning: main actor-isolated instance method 'rtcEngine(_:streamInjectedStatusOfUrl:uid:status:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
    |               `- note: add 'nonisolated' to 'rtcEngine(_:streamInjectedStatusOfUrl:uid:status:)' to make this instance method not isolated to the actor
160 |         self.agoraSettings.rtcDelegate?.rtcEngine?(engine, streamInjectedStatusOfUrl: url, uid: uid, status: status)
161 |     }
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraVideoViewer+RtcEngineDelegateOverflow.swift:123:15: warning: main actor-isolated instance method 'rtcEngine(_:audioMixingStateChanged:reasonCode:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
121 |         self.agoraSettings.rtcDelegate?.rtcEngine?(engine, didRemoteSubscribeFallbackToAudioOnly: isFallbackOrRecover, byUid: uid)
122 |     }
123 |     open func rtcEngine(_ engine: AgoraRtcEngineKit, audioMixingStateChanged state: AgoraAudioMixingStateType, reasonCode: AgoraAudioMixingReasonCode) {
    |               |- warning: main actor-isolated instance method 'rtcEngine(_:audioMixingStateChanged:reasonCode:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
    |               `- note: add 'nonisolated' to 'rtcEngine(_:audioMixingStateChanged:reasonCode:)' to make this instance method not isolated to the actor
124 |         self.agoraSettings.rtcDelegate?.rtcEngine?(engine, audioMixingStateChanged: state, reasonCode: reasonCode)
125 |     }
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraVideoViewer+RtcEngineDelegateOverflow.swift:147:15: warning: main actor-isolated instance method 'rtcEngine(_:audioMixingPositionChanged:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
145 |         self.agoraSettings.rtcDelegate?.rtcEngine?(engine, licenseValidationFailure: error)
146 |     }
147 |     open func rtcEngine(_ engine: AgoraRtcEngineKit, audioMixingPositionChanged position: Int) {
    |               |- warning: main actor-isolated instance method 'rtcEngine(_:audioMixingPositionChanged:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraRtcEngineDelegate'; this is an error in the Swift 6 language mode
    |               `- note: add 'nonisolated' to 'rtcEngine(_:audioMixingPositionChanged:)' to make this instance method not isolated to the actor
148 |         self.agoraSettings.rtcDelegate?.rtcEngine?(engine, audioMixingPositionChanged: position)
149 |     }
[43/48] Compiling AgoraUIKit AgoraVideoViewer+JoinChannel.swift
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraVideoViewer+JoinChannel.swift:141:17: warning: capture of 'callback' with non-sendable type '((AgoraRtmController?) -> Void)?' in a '@Sendable' closure
139 |                     AgoraVideoViewer.agoraPrint(.error, message: "Error initialising RTM")
140 |                 }
141 |                 callback?(self.rtmController)
    |                 |- warning: capture of 'callback' with non-sendable type '((AgoraRtmController?) -> Void)?' in a '@Sendable' closure
    |                 `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
142 |             }
143 |         }
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraVideoViewer+JoinChannel.swift:137:22: warning: main actor-isolated property 'rtmController' can not be mutated from a Sendable closure; this is an error in the Swift 6 language mode
135 |         if self.rtmController == nil {
136 |             DispatchQueue.global(qos: .utility).async {
137 |                 self.rtmController = AgoraRtmController(delegate: self)
    |                      `- warning: main actor-isolated property 'rtmController' can not be mutated from a Sendable closure; this is an error in the Swift 6 language mode
138 |                 if self.rtmController == nil {
139 |                     AgoraVideoViewer.agoraPrint(.error, message: "Error initialising RTM")
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraVideoViewer.swift:120:16: note: mutation of this property is only permitted within the actor
118 |     #if canImport(AgoraRtmControl)
119 |     /// Controller class for managing RTM messages
120 |     public var rtmController: AgoraRtmController?
    |                `- note: mutation of this property is only permitted within the actor
121 |     #endif
122 |
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraVideoViewer+JoinChannel.swift:138:25: warning: main actor-isolated property 'rtmController' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
136 |             DispatchQueue.global(qos: .utility).async {
137 |                 self.rtmController = AgoraRtmController(delegate: self)
138 |                 if self.rtmController == nil {
    |                         `- warning: main actor-isolated property 'rtmController' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
139 |                     AgoraVideoViewer.agoraPrint(.error, message: "Error initialising RTM")
140 |                 }
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraVideoViewer.swift:120:16: note: property declared here
118 |     #if canImport(AgoraRtmControl)
119 |     /// Controller class for managing RTM messages
120 |     public var rtmController: AgoraRtmController?
    |                `- note: property declared here
121 |     #endif
122 |
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraVideoViewer+JoinChannel.swift:139:38: warning: call to main actor-isolated static method 'agoraPrint(_:message:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
137 |                 self.rtmController = AgoraRtmController(delegate: self)
138 |                 if self.rtmController == nil {
139 |                     AgoraVideoViewer.agoraPrint(.error, message: "Error initialising RTM")
    |                                      `- warning: call to main actor-isolated static method 'agoraPrint(_:message:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
140 |                 }
141 |                 callback?(self.rtmController)
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraVideoViewer+Utilities.swift:32:26: note: calls to static method 'agoraPrint(_:message:)' from outside of its actor context are implicitly asynchronous
30 |         }
31 |     }
32 |     internal static func agoraPrint(_ tag: PrintType, message: Any) {
   |                          |- note: calls to static method 'agoraPrint(_:message:)' from outside of its actor context are implicitly asynchronous
   |                          `- note: main actor isolation inferred from inheritance from class 'NSView'
33 |         if tag.rawValue <= AgoraVideoViewer.printLevel.rawValue {
34 |             print("[AgoraVideoViewer \(tag.printString)]: \(message)")
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraVideoViewer+JoinChannel.swift:141:32: warning: main actor-isolated property 'rtmController' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
139 |                     AgoraVideoViewer.agoraPrint(.error, message: "Error initialising RTM")
140 |                 }
141 |                 callback?(self.rtmController)
    |                                `- warning: main actor-isolated property 'rtmController' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
142 |             }
143 |         }
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraVideoViewer.swift:120:16: note: property declared here
118 |     #if canImport(AgoraRtmControl)
119 |     /// Controller class for managing RTM messages
120 |     public var rtmController: AgoraRtmController?
    |                `- note: property declared here
121 |     #endif
122 |
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraVideoViewer+LocalVideo.swift:102:17: warning: main actor-isolated instance method 'myVideoCapture(_:didOutputSampleBuffer:rotation:timeStamp:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraCameraSourcePushDelegate'; this is an error in the Swift 6 language mode
 12 | import AVFoundation
 13 |
 14 | extension AgoraVideoViewer: AgoraCameraSourcePushDelegate {
    |                             `- note: add '@preconcurrency' to the 'AgoraCameraSourcePushDelegate' conformance to defer isolation checking to run time
 15 |
 16 |     @discardableResult
    :
100 |     ///   - rotation: Orientation of the incoming pixel buffer
101 |     ///   - timeStamp: Timestamp when the pixel buffer was captured.
102 |     public func myVideoCapture(
    |                 |- warning: main actor-isolated instance method 'myVideoCapture(_:didOutputSampleBuffer:rotation:timeStamp:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraCameraSourcePushDelegate'; this is an error in the Swift 6 language mode
    |                 `- note: add 'nonisolated' to 'myVideoCapture(_:didOutputSampleBuffer:rotation:timeStamp:)' to make this instance method not isolated to the actor
103 |         _ capture: AgoraCameraSourcePush, didOutputSampleBuffer pixelBuffer: CVPixelBuffer,
104 |         rotation: Int, timeStamp: CMTime
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraCameraSourcePush.swift:101:10: note: mark the protocol requirement 'myVideoCapture(_:didOutputSampleBuffer:rotation:timeStamp:)' 'async' to allow actor-isolated conformances
 99 | /// Delegate for capturing the frames from the camera source.
100 | public protocol AgoraCameraSourcePushDelegate: AnyObject {
101 |     func myVideoCapture(
    |          `- note: mark the protocol requirement 'myVideoCapture(_:didOutputSampleBuffer:rotation:timeStamp:)' 'async' to allow actor-isolated conformances
102 |         _ capture: AgoraCameraSourcePush, didOutputSampleBuffer pixelBuffer: CVPixelBuffer,
103 |         rotation: Int, timeStamp: CMTime
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraVideoViewer+Ordering.swift:84:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
 82 |     }
 83 |
 84 |     open override func layoutSubviews() {
    |     `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
 85 |         super.layoutSubviews()
 86 |         self.reorganiseVideos()
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraVideoViewer+Ordering.swift:84:24: error: method does not override any method from its superclass
 82 |     }
 83 |
 84 |     open override func layoutSubviews() {
    |                        `- error: method does not override any method from its superclass
 85 |         super.layoutSubviews()
 86 |         self.reorganiseVideos()
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraVideoViewer+Ordering.swift:85:15: error: value of type 'MPView' (aka 'NSView') has no member 'layoutSubviews'
 83 |
 84 |     open override func layoutSubviews() {
 85 |         super.layoutSubviews()
    |               `- error: value of type 'MPView' (aka 'NSView') has no member 'layoutSubviews'
 86 |         self.reorganiseVideos()
 87 |     }
[44/48] Compiling AgoraUIKit AgoraVideoViewer+LocalVideo.swift
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraVideoViewer+JoinChannel.swift:141:17: warning: capture of 'callback' with non-sendable type '((AgoraRtmController?) -> Void)?' in a '@Sendable' closure
139 |                     AgoraVideoViewer.agoraPrint(.error, message: "Error initialising RTM")
140 |                 }
141 |                 callback?(self.rtmController)
    |                 |- warning: capture of 'callback' with non-sendable type '((AgoraRtmController?) -> Void)?' in a '@Sendable' closure
    |                 `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
142 |             }
143 |         }
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraVideoViewer+JoinChannel.swift:137:22: warning: main actor-isolated property 'rtmController' can not be mutated from a Sendable closure; this is an error in the Swift 6 language mode
135 |         if self.rtmController == nil {
136 |             DispatchQueue.global(qos: .utility).async {
137 |                 self.rtmController = AgoraRtmController(delegate: self)
    |                      `- warning: main actor-isolated property 'rtmController' can not be mutated from a Sendable closure; this is an error in the Swift 6 language mode
138 |                 if self.rtmController == nil {
139 |                     AgoraVideoViewer.agoraPrint(.error, message: "Error initialising RTM")
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraVideoViewer.swift:120:16: note: mutation of this property is only permitted within the actor
118 |     #if canImport(AgoraRtmControl)
119 |     /// Controller class for managing RTM messages
120 |     public var rtmController: AgoraRtmController?
    |                `- note: mutation of this property is only permitted within the actor
121 |     #endif
122 |
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraVideoViewer+JoinChannel.swift:138:25: warning: main actor-isolated property 'rtmController' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
136 |             DispatchQueue.global(qos: .utility).async {
137 |                 self.rtmController = AgoraRtmController(delegate: self)
138 |                 if self.rtmController == nil {
    |                         `- warning: main actor-isolated property 'rtmController' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
139 |                     AgoraVideoViewer.agoraPrint(.error, message: "Error initialising RTM")
140 |                 }
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraVideoViewer.swift:120:16: note: property declared here
118 |     #if canImport(AgoraRtmControl)
119 |     /// Controller class for managing RTM messages
120 |     public var rtmController: AgoraRtmController?
    |                `- note: property declared here
121 |     #endif
122 |
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraVideoViewer+JoinChannel.swift:139:38: warning: call to main actor-isolated static method 'agoraPrint(_:message:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
137 |                 self.rtmController = AgoraRtmController(delegate: self)
138 |                 if self.rtmController == nil {
139 |                     AgoraVideoViewer.agoraPrint(.error, message: "Error initialising RTM")
    |                                      `- warning: call to main actor-isolated static method 'agoraPrint(_:message:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
140 |                 }
141 |                 callback?(self.rtmController)
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraVideoViewer+Utilities.swift:32:26: note: calls to static method 'agoraPrint(_:message:)' from outside of its actor context are implicitly asynchronous
30 |         }
31 |     }
32 |     internal static func agoraPrint(_ tag: PrintType, message: Any) {
   |                          |- note: calls to static method 'agoraPrint(_:message:)' from outside of its actor context are implicitly asynchronous
   |                          `- note: main actor isolation inferred from inheritance from class 'NSView'
33 |         if tag.rawValue <= AgoraVideoViewer.printLevel.rawValue {
34 |             print("[AgoraVideoViewer \(tag.printString)]: \(message)")
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraVideoViewer+JoinChannel.swift:141:32: warning: main actor-isolated property 'rtmController' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
139 |                     AgoraVideoViewer.agoraPrint(.error, message: "Error initialising RTM")
140 |                 }
141 |                 callback?(self.rtmController)
    |                                `- warning: main actor-isolated property 'rtmController' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
142 |             }
143 |         }
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraVideoViewer.swift:120:16: note: property declared here
118 |     #if canImport(AgoraRtmControl)
119 |     /// Controller class for managing RTM messages
120 |     public var rtmController: AgoraRtmController?
    |                `- note: property declared here
121 |     #endif
122 |
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraVideoViewer+LocalVideo.swift:102:17: warning: main actor-isolated instance method 'myVideoCapture(_:didOutputSampleBuffer:rotation:timeStamp:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraCameraSourcePushDelegate'; this is an error in the Swift 6 language mode
 12 | import AVFoundation
 13 |
 14 | extension AgoraVideoViewer: AgoraCameraSourcePushDelegate {
    |                             `- note: add '@preconcurrency' to the 'AgoraCameraSourcePushDelegate' conformance to defer isolation checking to run time
 15 |
 16 |     @discardableResult
    :
100 |     ///   - rotation: Orientation of the incoming pixel buffer
101 |     ///   - timeStamp: Timestamp when the pixel buffer was captured.
102 |     public func myVideoCapture(
    |                 |- warning: main actor-isolated instance method 'myVideoCapture(_:didOutputSampleBuffer:rotation:timeStamp:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraCameraSourcePushDelegate'; this is an error in the Swift 6 language mode
    |                 `- note: add 'nonisolated' to 'myVideoCapture(_:didOutputSampleBuffer:rotation:timeStamp:)' to make this instance method not isolated to the actor
103 |         _ capture: AgoraCameraSourcePush, didOutputSampleBuffer pixelBuffer: CVPixelBuffer,
104 |         rotation: Int, timeStamp: CMTime
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraCameraSourcePush.swift:101:10: note: mark the protocol requirement 'myVideoCapture(_:didOutputSampleBuffer:rotation:timeStamp:)' 'async' to allow actor-isolated conformances
 99 | /// Delegate for capturing the frames from the camera source.
100 | public protocol AgoraCameraSourcePushDelegate: AnyObject {
101 |     func myVideoCapture(
    |          `- note: mark the protocol requirement 'myVideoCapture(_:didOutputSampleBuffer:rotation:timeStamp:)' 'async' to allow actor-isolated conformances
102 |         _ capture: AgoraCameraSourcePush, didOutputSampleBuffer pixelBuffer: CVPixelBuffer,
103 |         rotation: Int, timeStamp: CMTime
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraVideoViewer+Ordering.swift:84:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
 82 |     }
 83 |
 84 |     open override func layoutSubviews() {
    |     `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
 85 |         super.layoutSubviews()
 86 |         self.reorganiseVideos()
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraVideoViewer+Ordering.swift:84:24: error: method does not override any method from its superclass
 82 |     }
 83 |
 84 |     open override func layoutSubviews() {
    |                        `- error: method does not override any method from its superclass
 85 |         super.layoutSubviews()
 86 |         self.reorganiseVideos()
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraVideoViewer+Ordering.swift:85:15: error: value of type 'MPView' (aka 'NSView') has no member 'layoutSubviews'
 83 |
 84 |     open override func layoutSubviews() {
 85 |         super.layoutSubviews()
    |               `- error: value of type 'MPView' (aka 'NSView') has no member 'layoutSubviews'
 86 |         self.reorganiseVideos()
 87 |     }
[45/48] Compiling AgoraUIKit AgoraVideoViewer+Ordering.swift
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraVideoViewer+JoinChannel.swift:141:17: warning: capture of 'callback' with non-sendable type '((AgoraRtmController?) -> Void)?' in a '@Sendable' closure
139 |                     AgoraVideoViewer.agoraPrint(.error, message: "Error initialising RTM")
140 |                 }
141 |                 callback?(self.rtmController)
    |                 |- warning: capture of 'callback' with non-sendable type '((AgoraRtmController?) -> Void)?' in a '@Sendable' closure
    |                 `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
142 |             }
143 |         }
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraVideoViewer+JoinChannel.swift:137:22: warning: main actor-isolated property 'rtmController' can not be mutated from a Sendable closure; this is an error in the Swift 6 language mode
135 |         if self.rtmController == nil {
136 |             DispatchQueue.global(qos: .utility).async {
137 |                 self.rtmController = AgoraRtmController(delegate: self)
    |                      `- warning: main actor-isolated property 'rtmController' can not be mutated from a Sendable closure; this is an error in the Swift 6 language mode
138 |                 if self.rtmController == nil {
139 |                     AgoraVideoViewer.agoraPrint(.error, message: "Error initialising RTM")
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraVideoViewer.swift:120:16: note: mutation of this property is only permitted within the actor
118 |     #if canImport(AgoraRtmControl)
119 |     /// Controller class for managing RTM messages
120 |     public var rtmController: AgoraRtmController?
    |                `- note: mutation of this property is only permitted within the actor
121 |     #endif
122 |
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraVideoViewer+JoinChannel.swift:138:25: warning: main actor-isolated property 'rtmController' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
136 |             DispatchQueue.global(qos: .utility).async {
137 |                 self.rtmController = AgoraRtmController(delegate: self)
138 |                 if self.rtmController == nil {
    |                         `- warning: main actor-isolated property 'rtmController' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
139 |                     AgoraVideoViewer.agoraPrint(.error, message: "Error initialising RTM")
140 |                 }
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraVideoViewer.swift:120:16: note: property declared here
118 |     #if canImport(AgoraRtmControl)
119 |     /// Controller class for managing RTM messages
120 |     public var rtmController: AgoraRtmController?
    |                `- note: property declared here
121 |     #endif
122 |
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraVideoViewer+JoinChannel.swift:139:38: warning: call to main actor-isolated static method 'agoraPrint(_:message:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
137 |                 self.rtmController = AgoraRtmController(delegate: self)
138 |                 if self.rtmController == nil {
139 |                     AgoraVideoViewer.agoraPrint(.error, message: "Error initialising RTM")
    |                                      `- warning: call to main actor-isolated static method 'agoraPrint(_:message:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
140 |                 }
141 |                 callback?(self.rtmController)
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraVideoViewer+Utilities.swift:32:26: note: calls to static method 'agoraPrint(_:message:)' from outside of its actor context are implicitly asynchronous
30 |         }
31 |     }
32 |     internal static func agoraPrint(_ tag: PrintType, message: Any) {
   |                          |- note: calls to static method 'agoraPrint(_:message:)' from outside of its actor context are implicitly asynchronous
   |                          `- note: main actor isolation inferred from inheritance from class 'NSView'
33 |         if tag.rawValue <= AgoraVideoViewer.printLevel.rawValue {
34 |             print("[AgoraVideoViewer \(tag.printString)]: \(message)")
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraVideoViewer+JoinChannel.swift:141:32: warning: main actor-isolated property 'rtmController' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
139 |                     AgoraVideoViewer.agoraPrint(.error, message: "Error initialising RTM")
140 |                 }
141 |                 callback?(self.rtmController)
    |                                `- warning: main actor-isolated property 'rtmController' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
142 |             }
143 |         }
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraVideoViewer.swift:120:16: note: property declared here
118 |     #if canImport(AgoraRtmControl)
119 |     /// Controller class for managing RTM messages
120 |     public var rtmController: AgoraRtmController?
    |                `- note: property declared here
121 |     #endif
122 |
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraVideoViewer+LocalVideo.swift:102:17: warning: main actor-isolated instance method 'myVideoCapture(_:didOutputSampleBuffer:rotation:timeStamp:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraCameraSourcePushDelegate'; this is an error in the Swift 6 language mode
 12 | import AVFoundation
 13 |
 14 | extension AgoraVideoViewer: AgoraCameraSourcePushDelegate {
    |                             `- note: add '@preconcurrency' to the 'AgoraCameraSourcePushDelegate' conformance to defer isolation checking to run time
 15 |
 16 |     @discardableResult
    :
100 |     ///   - rotation: Orientation of the incoming pixel buffer
101 |     ///   - timeStamp: Timestamp when the pixel buffer was captured.
102 |     public func myVideoCapture(
    |                 |- warning: main actor-isolated instance method 'myVideoCapture(_:didOutputSampleBuffer:rotation:timeStamp:)' cannot be used to satisfy nonisolated requirement from protocol 'AgoraCameraSourcePushDelegate'; this is an error in the Swift 6 language mode
    |                 `- note: add 'nonisolated' to 'myVideoCapture(_:didOutputSampleBuffer:rotation:timeStamp:)' to make this instance method not isolated to the actor
103 |         _ capture: AgoraCameraSourcePush, didOutputSampleBuffer pixelBuffer: CVPixelBuffer,
104 |         rotation: Int, timeStamp: CMTime
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraCameraSourcePush.swift:101:10: note: mark the protocol requirement 'myVideoCapture(_:didOutputSampleBuffer:rotation:timeStamp:)' 'async' to allow actor-isolated conformances
 99 | /// Delegate for capturing the frames from the camera source.
100 | public protocol AgoraCameraSourcePushDelegate: AnyObject {
101 |     func myVideoCapture(
    |          `- note: mark the protocol requirement 'myVideoCapture(_:didOutputSampleBuffer:rotation:timeStamp:)' 'async' to allow actor-isolated conformances
102 |         _ capture: AgoraCameraSourcePush, didOutputSampleBuffer pixelBuffer: CVPixelBuffer,
103 |         rotation: Int, timeStamp: CMTime
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraVideoViewer+Ordering.swift:84:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
 82 |     }
 83 |
 84 |     open override func layoutSubviews() {
    |     `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
 85 |         super.layoutSubviews()
 86 |         self.reorganiseVideos()
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraVideoViewer+Ordering.swift:84:24: error: method does not override any method from its superclass
 82 |     }
 83 |
 84 |     open override func layoutSubviews() {
    |                        `- error: method does not override any method from its superclass
 85 |         super.layoutSubviews()
 86 |         self.reorganiseVideos()
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraVideoViewer+Ordering.swift:85:15: error: value of type 'MPView' (aka 'NSView') has no member 'layoutSubviews'
 83 |
 84 |     open override func layoutSubviews() {
 85 |         super.layoutSubviews()
    |               `- error: value of type 'MPView' (aka 'NSView') has no member 'layoutSubviews'
 86 |         self.reorganiseVideos()
 87 |     }
[46/48] Compiling AgoraUIKit AgoraCameraSourcePush.swift
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraCameraSourcePush.swift:151:28: warning: call to main actor-isolated instance method 'insertCaptureVideoPreviewLayer(previewLayer:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
 44 |     /// Add new frame to the preview layer
 45 |     /// - Parameter previewLayer: New `previewLayer` to be displayed on the preview.
 46 |     open func insertCaptureVideoPreviewLayer(previewLayer: AVCaptureVideoPreviewLayer) {
    |               |- note: calls to instance method 'insertCaptureVideoPreviewLayer(previewLayer:)' from outside of its actor context are implicitly asynchronous
    |               `- note: main actor isolation inferred from inheritance from class 'NSView'
 47 |         self.previewLayer?.removeFromSuperlayer()
 48 |         #if os(macOS)
    :
149 |
150 |         let previewLayer = AVCaptureVideoPreviewLayer(session: self.captureSession)
151 |         localVideoPreview?.insertCaptureVideoPreviewLayer(previewLayer: previewLayer)
    |                            `- warning: call to main actor-isolated instance method 'insertCaptureVideoPreviewLayer(previewLayer:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
152 |     }
153 |
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraCameraSourcePush.swift:157:33: warning: main actor-isolated property 'previewLayer' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
 40 | open class CustomVideoSourcePreview: MPView {
 41 |     /// Layer that displays video from a camera device.
 42 |     open private(set) var previewLayer: AVCaptureVideoPreviewLayer?
    |                           `- note: property declared here
 43 |
 44 |     /// Add new frame to the preview layer
    :
154 |     /// Update the local preview layer to a new one.
155 |     /// - Parameter videoPreview: New custom preview layer.
156 |     open func updateVideoPreview(to videoPreview: CustomVideoSourcePreview) {
    |               `- note: add '@MainActor' to make instance method 'updateVideoPreview(to:)' part of global actor 'MainActor'
157 |         self.localVideoPreview?.previewLayer?.removeFromSuperlayer()
    |                                 `- warning: main actor-isolated property 'previewLayer' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
158 |
159 |         let previewLayer = AVCaptureVideoPreviewLayer(session: self.captureSession)
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraCameraSourcePush.swift:160:22: warning: call to main actor-isolated instance method 'insertCaptureVideoPreviewLayer(previewLayer:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
 44 |     /// Add new frame to the preview layer
 45 |     /// - Parameter previewLayer: New `previewLayer` to be displayed on the preview.
 46 |     open func insertCaptureVideoPreviewLayer(previewLayer: AVCaptureVideoPreviewLayer) {
    |               |- note: calls to instance method 'insertCaptureVideoPreviewLayer(previewLayer:)' from outside of its actor context are implicitly asynchronous
    |               `- note: main actor isolation inferred from inheritance from class 'NSView'
 47 |         self.previewLayer?.removeFromSuperlayer()
 48 |         #if os(macOS)
    :
154 |     /// Update the local preview layer to a new one.
155 |     /// - Parameter videoPreview: New custom preview layer.
156 |     open func updateVideoPreview(to videoPreview: CustomVideoSourcePreview) {
    |               `- note: add '@MainActor' to make instance method 'updateVideoPreview(to:)' part of global actor 'MainActor'
157 |         self.localVideoPreview?.previewLayer?.removeFromSuperlayer()
158 |
159 |         let previewLayer = AVCaptureVideoPreviewLayer(session: self.captureSession)
160 |         videoPreview.insertCaptureVideoPreviewLayer(previewLayer: previewLayer)
    |                      `- warning: call to main actor-isolated instance method 'insertCaptureVideoPreviewLayer(previewLayer:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
161 |         self.localVideoPreview = videoPreview
162 |     }
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraCameraSourcePush.swift:182:36: warning: capture of 'self' with non-sendable type 'AgoraCameraSourcePush?' in a '@Sendable' closure
105 | }
106 |
107 | open class AgoraCameraSourcePush: NSObject {
    |            `- note: class 'AgoraCameraSourcePush' does not conform to the 'Sendable' protocol
108 |     fileprivate var delegate: AgoraCameraSourcePushDelegate?
109 |     internal var localVideoPreview: CustomVideoSourcePreview?
    :
180 |
181 |         captureQueue.async { [weak self] in
182 |             guard let strongSelf = self else {
    |                                    `- warning: capture of 'self' with non-sendable type 'AgoraCameraSourcePush?' in a '@Sendable' closure
183 |                 return
184 |             }
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraCameraSourcePush.swift:185:41: warning: capture of 'device' with non-sendable type 'AVCaptureDevice' in a '@Sendable' closure
183 |                 return
184 |             }
185 |             strongSelf.setCaptureDevice(device, ofSession: strongSelf.captureSession)
    |                                         `- warning: capture of 'device' with non-sendable type 'AVCaptureDevice' in a '@Sendable' closure
186 |             strongSelf.captureSession.beginConfiguration()
187 |             if strongSelf.captureSession.canSetSessionPreset(.vga640x480) {
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:73:12: note: class 'AVCaptureDevice' does not conform to the 'Sendable' protocol
  71 |  */
  72 | API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0), visionos(1.0)) API_UNAVAILABLE(watchos)
  73 | @interface AVCaptureDevice : NSObject
     |            `- note: class 'AVCaptureDevice' does not conform to the 'Sendable' protocol
  74 | {
  75 | @private
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraCameraSourcePush.swift:13:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'AVFoundation'
 11 | import AppKit
 12 | #endif
 13 | import AVFoundation
    | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'AVFoundation'
 14 | import AgoraRtcKit
 15 |
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraCameraSourcePush.swift:198:13: warning: capture of 'self' with non-sendable type 'AgoraCameraSourcePush?' in a '@Sendable' closure
105 | }
106 |
107 | open class AgoraCameraSourcePush: NSObject {
    |            `- note: class 'AgoraCameraSourcePush' does not conform to the 'Sendable' protocol
108 |     fileprivate var delegate: AgoraCameraSourcePushDelegate?
109 |     internal var localVideoPreview: CustomVideoSourcePreview?
    :
196 |         self.currentOutput?.setSampleBufferDelegate(self, queue: self.captureQueue)
197 |         self.captureQueue.async { [weak self] in
198 |             self?.captureSession.startRunning()
    |             `- warning: capture of 'self' with non-sendable type 'AgoraCameraSourcePush?' in a '@Sendable' closure
199 |         }
200 |     }
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraCameraSourcePush.swift:205:13: warning: capture of 'self' with non-sendable type 'AgoraCameraSourcePush?' in a '@Sendable' closure
105 | }
106 |
107 | open class AgoraCameraSourcePush: NSObject {
    |            `- note: class 'AgoraCameraSourcePush' does not conform to the 'Sendable' protocol
108 |     fileprivate var delegate: AgoraCameraSourcePushDelegate?
109 |     internal var localVideoPreview: CustomVideoSourcePreview?
    :
203 |         self.currentOutput?.setSampleBufferDelegate(nil, queue: nil)
204 |         self.captureQueue.async { [weak self] in
205 |             self?.captureSession.stopRunning()
    |             `- warning: capture of 'self' with non-sendable type 'AgoraCameraSourcePush?' in a '@Sendable' closure
206 |         }
207 |     }
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraCameraSourcePush.swift:151:28: warning: sending 'previewLayer' risks causing data races; this is an error in the Swift 6 language mode
149 |
150 |         let previewLayer = AVCaptureVideoPreviewLayer(session: self.captureSession)
151 |         localVideoPreview?.insertCaptureVideoPreviewLayer(previewLayer: previewLayer)
    |                            |- warning: sending 'previewLayer' risks causing data races; this is an error in the Swift 6 language mode
    |                            `- note: sending task-isolated 'previewLayer' to main actor-isolated instance method 'insertCaptureVideoPreviewLayer(previewLayer:)' risks causing data races between main actor-isolated and task-isolated uses
152 |     }
153 |
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraCameraSourcePush.swift:160:22: warning: sending 'previewLayer' risks causing data races; this is an error in the Swift 6 language mode
158 |
159 |         let previewLayer = AVCaptureVideoPreviewLayer(session: self.captureSession)
160 |         videoPreview.insertCaptureVideoPreviewLayer(previewLayer: previewLayer)
    |                      |- warning: sending 'previewLayer' risks causing data races; this is an error in the Swift 6 language mode
    |                      `- note: sending task-isolated 'previewLayer' to main actor-isolated instance method 'insertCaptureVideoPreviewLayer(previewLayer:)' risks causing data races between main actor-isolated and task-isolated uses
161 |         self.localVideoPreview = videoPreview
162 |     }
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraCameraSourcePush.swift:244:34: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
242 |         let time = CMSampleBufferGetPresentationTimeStamp(sampleBuffer)
243 |         DispatchQueue.main.async {[weak self] in
244 |             guard let weakSelf = self else { return }
    |                                  |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
    |                                  `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
245 |
246 |             #if os(iOS)
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraCameraSourcePush.swift:252:50: warning: sending 'pixelBuffer' risks causing data races; this is an error in the Swift 6 language mode
250 |             #endif
251 |             weakSelf.delegate?.myVideoCapture(
252 |                 weakSelf, didOutputSampleBuffer: pixelBuffer,
    |                                                  |- warning: sending 'pixelBuffer' risks causing data races; this is an error in the Swift 6 language mode
    |                                                  `- note: task-isolated 'pixelBuffer' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
253 |                 rotation: imgRot, timeStamp: time
254 |             )
[47/48] Compiling AgoraUIKit AgoraCollectionViewer.swift
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraCameraSourcePush.swift:151:28: warning: call to main actor-isolated instance method 'insertCaptureVideoPreviewLayer(previewLayer:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
 44 |     /// Add new frame to the preview layer
 45 |     /// - Parameter previewLayer: New `previewLayer` to be displayed on the preview.
 46 |     open func insertCaptureVideoPreviewLayer(previewLayer: AVCaptureVideoPreviewLayer) {
    |               |- note: calls to instance method 'insertCaptureVideoPreviewLayer(previewLayer:)' from outside of its actor context are implicitly asynchronous
    |               `- note: main actor isolation inferred from inheritance from class 'NSView'
 47 |         self.previewLayer?.removeFromSuperlayer()
 48 |         #if os(macOS)
    :
149 |
150 |         let previewLayer = AVCaptureVideoPreviewLayer(session: self.captureSession)
151 |         localVideoPreview?.insertCaptureVideoPreviewLayer(previewLayer: previewLayer)
    |                            `- warning: call to main actor-isolated instance method 'insertCaptureVideoPreviewLayer(previewLayer:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
152 |     }
153 |
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraCameraSourcePush.swift:157:33: warning: main actor-isolated property 'previewLayer' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
 40 | open class CustomVideoSourcePreview: MPView {
 41 |     /// Layer that displays video from a camera device.
 42 |     open private(set) var previewLayer: AVCaptureVideoPreviewLayer?
    |                           `- note: property declared here
 43 |
 44 |     /// Add new frame to the preview layer
    :
154 |     /// Update the local preview layer to a new one.
155 |     /// - Parameter videoPreview: New custom preview layer.
156 |     open func updateVideoPreview(to videoPreview: CustomVideoSourcePreview) {
    |               `- note: add '@MainActor' to make instance method 'updateVideoPreview(to:)' part of global actor 'MainActor'
157 |         self.localVideoPreview?.previewLayer?.removeFromSuperlayer()
    |                                 `- warning: main actor-isolated property 'previewLayer' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
158 |
159 |         let previewLayer = AVCaptureVideoPreviewLayer(session: self.captureSession)
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraCameraSourcePush.swift:160:22: warning: call to main actor-isolated instance method 'insertCaptureVideoPreviewLayer(previewLayer:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
 44 |     /// Add new frame to the preview layer
 45 |     /// - Parameter previewLayer: New `previewLayer` to be displayed on the preview.
 46 |     open func insertCaptureVideoPreviewLayer(previewLayer: AVCaptureVideoPreviewLayer) {
    |               |- note: calls to instance method 'insertCaptureVideoPreviewLayer(previewLayer:)' from outside of its actor context are implicitly asynchronous
    |               `- note: main actor isolation inferred from inheritance from class 'NSView'
 47 |         self.previewLayer?.removeFromSuperlayer()
 48 |         #if os(macOS)
    :
154 |     /// Update the local preview layer to a new one.
155 |     /// - Parameter videoPreview: New custom preview layer.
156 |     open func updateVideoPreview(to videoPreview: CustomVideoSourcePreview) {
    |               `- note: add '@MainActor' to make instance method 'updateVideoPreview(to:)' part of global actor 'MainActor'
157 |         self.localVideoPreview?.previewLayer?.removeFromSuperlayer()
158 |
159 |         let previewLayer = AVCaptureVideoPreviewLayer(session: self.captureSession)
160 |         videoPreview.insertCaptureVideoPreviewLayer(previewLayer: previewLayer)
    |                      `- warning: call to main actor-isolated instance method 'insertCaptureVideoPreviewLayer(previewLayer:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
161 |         self.localVideoPreview = videoPreview
162 |     }
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraCameraSourcePush.swift:182:36: warning: capture of 'self' with non-sendable type 'AgoraCameraSourcePush?' in a '@Sendable' closure
105 | }
106 |
107 | open class AgoraCameraSourcePush: NSObject {
    |            `- note: class 'AgoraCameraSourcePush' does not conform to the 'Sendable' protocol
108 |     fileprivate var delegate: AgoraCameraSourcePushDelegate?
109 |     internal var localVideoPreview: CustomVideoSourcePreview?
    :
180 |
181 |         captureQueue.async { [weak self] in
182 |             guard let strongSelf = self else {
    |                                    `- warning: capture of 'self' with non-sendable type 'AgoraCameraSourcePush?' in a '@Sendable' closure
183 |                 return
184 |             }
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraCameraSourcePush.swift:185:41: warning: capture of 'device' with non-sendable type 'AVCaptureDevice' in a '@Sendable' closure
183 |                 return
184 |             }
185 |             strongSelf.setCaptureDevice(device, ofSession: strongSelf.captureSession)
    |                                         `- warning: capture of 'device' with non-sendable type 'AVCaptureDevice' in a '@Sendable' closure
186 |             strongSelf.captureSession.beginConfiguration()
187 |             if strongSelf.captureSession.canSetSessionPreset(.vga640x480) {
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:73:12: note: class 'AVCaptureDevice' does not conform to the 'Sendable' protocol
  71 |  */
  72 | API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0), visionos(1.0)) API_UNAVAILABLE(watchos)
  73 | @interface AVCaptureDevice : NSObject
     |            `- note: class 'AVCaptureDevice' does not conform to the 'Sendable' protocol
  74 | {
  75 | @private
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraCameraSourcePush.swift:13:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'AVFoundation'
 11 | import AppKit
 12 | #endif
 13 | import AVFoundation
    | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'AVFoundation'
 14 | import AgoraRtcKit
 15 |
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraCameraSourcePush.swift:198:13: warning: capture of 'self' with non-sendable type 'AgoraCameraSourcePush?' in a '@Sendable' closure
105 | }
106 |
107 | open class AgoraCameraSourcePush: NSObject {
    |            `- note: class 'AgoraCameraSourcePush' does not conform to the 'Sendable' protocol
108 |     fileprivate var delegate: AgoraCameraSourcePushDelegate?
109 |     internal var localVideoPreview: CustomVideoSourcePreview?
    :
196 |         self.currentOutput?.setSampleBufferDelegate(self, queue: self.captureQueue)
197 |         self.captureQueue.async { [weak self] in
198 |             self?.captureSession.startRunning()
    |             `- warning: capture of 'self' with non-sendable type 'AgoraCameraSourcePush?' in a '@Sendable' closure
199 |         }
200 |     }
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraCameraSourcePush.swift:205:13: warning: capture of 'self' with non-sendable type 'AgoraCameraSourcePush?' in a '@Sendable' closure
105 | }
106 |
107 | open class AgoraCameraSourcePush: NSObject {
    |            `- note: class 'AgoraCameraSourcePush' does not conform to the 'Sendable' protocol
108 |     fileprivate var delegate: AgoraCameraSourcePushDelegate?
109 |     internal var localVideoPreview: CustomVideoSourcePreview?
    :
203 |         self.currentOutput?.setSampleBufferDelegate(nil, queue: nil)
204 |         self.captureQueue.async { [weak self] in
205 |             self?.captureSession.stopRunning()
    |             `- warning: capture of 'self' with non-sendable type 'AgoraCameraSourcePush?' in a '@Sendable' closure
206 |         }
207 |     }
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraCameraSourcePush.swift:151:28: warning: sending 'previewLayer' risks causing data races; this is an error in the Swift 6 language mode
149 |
150 |         let previewLayer = AVCaptureVideoPreviewLayer(session: self.captureSession)
151 |         localVideoPreview?.insertCaptureVideoPreviewLayer(previewLayer: previewLayer)
    |                            |- warning: sending 'previewLayer' risks causing data races; this is an error in the Swift 6 language mode
    |                            `- note: sending task-isolated 'previewLayer' to main actor-isolated instance method 'insertCaptureVideoPreviewLayer(previewLayer:)' risks causing data races between main actor-isolated and task-isolated uses
152 |     }
153 |
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraCameraSourcePush.swift:160:22: warning: sending 'previewLayer' risks causing data races; this is an error in the Swift 6 language mode
158 |
159 |         let previewLayer = AVCaptureVideoPreviewLayer(session: self.captureSession)
160 |         videoPreview.insertCaptureVideoPreviewLayer(previewLayer: previewLayer)
    |                      |- warning: sending 'previewLayer' risks causing data races; this is an error in the Swift 6 language mode
    |                      `- note: sending task-isolated 'previewLayer' to main actor-isolated instance method 'insertCaptureVideoPreviewLayer(previewLayer:)' risks causing data races between main actor-isolated and task-isolated uses
161 |         self.localVideoPreview = videoPreview
162 |     }
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraCameraSourcePush.swift:244:34: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
242 |         let time = CMSampleBufferGetPresentationTimeStamp(sampleBuffer)
243 |         DispatchQueue.main.async {[weak self] in
244 |             guard let weakSelf = self else { return }
    |                                  |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
    |                                  `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
245 |
246 |             #if os(iOS)
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraCameraSourcePush.swift:252:50: warning: sending 'pixelBuffer' risks causing data races; this is an error in the Swift 6 language mode
250 |             #endif
251 |             weakSelf.delegate?.myVideoCapture(
252 |                 weakSelf, didOutputSampleBuffer: pixelBuffer,
    |                                                  |- warning: sending 'pixelBuffer' risks causing data races; this is an error in the Swift 6 language mode
    |                                                  `- note: task-isolated 'pixelBuffer' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
253 |                 rotation: imgRot, timeStamp: time
254 |             )
[48/48] Compiling AgoraUIKit AgoraConnectionData.swift
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraCameraSourcePush.swift:151:28: warning: call to main actor-isolated instance method 'insertCaptureVideoPreviewLayer(previewLayer:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
 44 |     /// Add new frame to the preview layer
 45 |     /// - Parameter previewLayer: New `previewLayer` to be displayed on the preview.
 46 |     open func insertCaptureVideoPreviewLayer(previewLayer: AVCaptureVideoPreviewLayer) {
    |               |- note: calls to instance method 'insertCaptureVideoPreviewLayer(previewLayer:)' from outside of its actor context are implicitly asynchronous
    |               `- note: main actor isolation inferred from inheritance from class 'NSView'
 47 |         self.previewLayer?.removeFromSuperlayer()
 48 |         #if os(macOS)
    :
149 |
150 |         let previewLayer = AVCaptureVideoPreviewLayer(session: self.captureSession)
151 |         localVideoPreview?.insertCaptureVideoPreviewLayer(previewLayer: previewLayer)
    |                            `- warning: call to main actor-isolated instance method 'insertCaptureVideoPreviewLayer(previewLayer:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
152 |     }
153 |
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraCameraSourcePush.swift:157:33: warning: main actor-isolated property 'previewLayer' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
 40 | open class CustomVideoSourcePreview: MPView {
 41 |     /// Layer that displays video from a camera device.
 42 |     open private(set) var previewLayer: AVCaptureVideoPreviewLayer?
    |                           `- note: property declared here
 43 |
 44 |     /// Add new frame to the preview layer
    :
154 |     /// Update the local preview layer to a new one.
155 |     /// - Parameter videoPreview: New custom preview layer.
156 |     open func updateVideoPreview(to videoPreview: CustomVideoSourcePreview) {
    |               `- note: add '@MainActor' to make instance method 'updateVideoPreview(to:)' part of global actor 'MainActor'
157 |         self.localVideoPreview?.previewLayer?.removeFromSuperlayer()
    |                                 `- warning: main actor-isolated property 'previewLayer' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
158 |
159 |         let previewLayer = AVCaptureVideoPreviewLayer(session: self.captureSession)
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraCameraSourcePush.swift:160:22: warning: call to main actor-isolated instance method 'insertCaptureVideoPreviewLayer(previewLayer:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
 44 |     /// Add new frame to the preview layer
 45 |     /// - Parameter previewLayer: New `previewLayer` to be displayed on the preview.
 46 |     open func insertCaptureVideoPreviewLayer(previewLayer: AVCaptureVideoPreviewLayer) {
    |               |- note: calls to instance method 'insertCaptureVideoPreviewLayer(previewLayer:)' from outside of its actor context are implicitly asynchronous
    |               `- note: main actor isolation inferred from inheritance from class 'NSView'
 47 |         self.previewLayer?.removeFromSuperlayer()
 48 |         #if os(macOS)
    :
154 |     /// Update the local preview layer to a new one.
155 |     /// - Parameter videoPreview: New custom preview layer.
156 |     open func updateVideoPreview(to videoPreview: CustomVideoSourcePreview) {
    |               `- note: add '@MainActor' to make instance method 'updateVideoPreview(to:)' part of global actor 'MainActor'
157 |         self.localVideoPreview?.previewLayer?.removeFromSuperlayer()
158 |
159 |         let previewLayer = AVCaptureVideoPreviewLayer(session: self.captureSession)
160 |         videoPreview.insertCaptureVideoPreviewLayer(previewLayer: previewLayer)
    |                      `- warning: call to main actor-isolated instance method 'insertCaptureVideoPreviewLayer(previewLayer:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
161 |         self.localVideoPreview = videoPreview
162 |     }
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraCameraSourcePush.swift:182:36: warning: capture of 'self' with non-sendable type 'AgoraCameraSourcePush?' in a '@Sendable' closure
105 | }
106 |
107 | open class AgoraCameraSourcePush: NSObject {
    |            `- note: class 'AgoraCameraSourcePush' does not conform to the 'Sendable' protocol
108 |     fileprivate var delegate: AgoraCameraSourcePushDelegate?
109 |     internal var localVideoPreview: CustomVideoSourcePreview?
    :
180 |
181 |         captureQueue.async { [weak self] in
182 |             guard let strongSelf = self else {
    |                                    `- warning: capture of 'self' with non-sendable type 'AgoraCameraSourcePush?' in a '@Sendable' closure
183 |                 return
184 |             }
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraCameraSourcePush.swift:185:41: warning: capture of 'device' with non-sendable type 'AVCaptureDevice' in a '@Sendable' closure
183 |                 return
184 |             }
185 |             strongSelf.setCaptureDevice(device, ofSession: strongSelf.captureSession)
    |                                         `- warning: capture of 'device' with non-sendable type 'AVCaptureDevice' in a '@Sendable' closure
186 |             strongSelf.captureSession.beginConfiguration()
187 |             if strongSelf.captureSession.canSetSessionPreset(.vga640x480) {
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h:73:12: note: class 'AVCaptureDevice' does not conform to the 'Sendable' protocol
  71 |  */
  72 | API_AVAILABLE(macos(10.7), ios(4.0), macCatalyst(14.0), tvos(17.0), visionos(1.0)) API_UNAVAILABLE(watchos)
  73 | @interface AVCaptureDevice : NSObject
     |            `- note: class 'AVCaptureDevice' does not conform to the 'Sendable' protocol
  74 | {
  75 | @private
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraCameraSourcePush.swift:13:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'AVFoundation'
 11 | import AppKit
 12 | #endif
 13 | import AVFoundation
    | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'AVFoundation'
 14 | import AgoraRtcKit
 15 |
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraCameraSourcePush.swift:198:13: warning: capture of 'self' with non-sendable type 'AgoraCameraSourcePush?' in a '@Sendable' closure
105 | }
106 |
107 | open class AgoraCameraSourcePush: NSObject {
    |            `- note: class 'AgoraCameraSourcePush' does not conform to the 'Sendable' protocol
108 |     fileprivate var delegate: AgoraCameraSourcePushDelegate?
109 |     internal var localVideoPreview: CustomVideoSourcePreview?
    :
196 |         self.currentOutput?.setSampleBufferDelegate(self, queue: self.captureQueue)
197 |         self.captureQueue.async { [weak self] in
198 |             self?.captureSession.startRunning()
    |             `- warning: capture of 'self' with non-sendable type 'AgoraCameraSourcePush?' in a '@Sendable' closure
199 |         }
200 |     }
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraCameraSourcePush.swift:205:13: warning: capture of 'self' with non-sendable type 'AgoraCameraSourcePush?' in a '@Sendable' closure
105 | }
106 |
107 | open class AgoraCameraSourcePush: NSObject {
    |            `- note: class 'AgoraCameraSourcePush' does not conform to the 'Sendable' protocol
108 |     fileprivate var delegate: AgoraCameraSourcePushDelegate?
109 |     internal var localVideoPreview: CustomVideoSourcePreview?
    :
203 |         self.currentOutput?.setSampleBufferDelegate(nil, queue: nil)
204 |         self.captureQueue.async { [weak self] in
205 |             self?.captureSession.stopRunning()
    |             `- warning: capture of 'self' with non-sendable type 'AgoraCameraSourcePush?' in a '@Sendable' closure
206 |         }
207 |     }
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraCameraSourcePush.swift:151:28: warning: sending 'previewLayer' risks causing data races; this is an error in the Swift 6 language mode
149 |
150 |         let previewLayer = AVCaptureVideoPreviewLayer(session: self.captureSession)
151 |         localVideoPreview?.insertCaptureVideoPreviewLayer(previewLayer: previewLayer)
    |                            |- warning: sending 'previewLayer' risks causing data races; this is an error in the Swift 6 language mode
    |                            `- note: sending task-isolated 'previewLayer' to main actor-isolated instance method 'insertCaptureVideoPreviewLayer(previewLayer:)' risks causing data races between main actor-isolated and task-isolated uses
152 |     }
153 |
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraCameraSourcePush.swift:160:22: warning: sending 'previewLayer' risks causing data races; this is an error in the Swift 6 language mode
158 |
159 |         let previewLayer = AVCaptureVideoPreviewLayer(session: self.captureSession)
160 |         videoPreview.insertCaptureVideoPreviewLayer(previewLayer: previewLayer)
    |                      |- warning: sending 'previewLayer' risks causing data races; this is an error in the Swift 6 language mode
    |                      `- note: sending task-isolated 'previewLayer' to main actor-isolated instance method 'insertCaptureVideoPreviewLayer(previewLayer:)' risks causing data races between main actor-isolated and task-isolated uses
161 |         self.localVideoPreview = videoPreview
162 |     }
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraCameraSourcePush.swift:244:34: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
242 |         let time = CMSampleBufferGetPresentationTimeStamp(sampleBuffer)
243 |         DispatchQueue.main.async {[weak self] in
244 |             guard let weakSelf = self else { return }
    |                                  |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
    |                                  `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
245 |
246 |             #if os(iOS)
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraCameraSourcePush.swift:252:50: warning: sending 'pixelBuffer' risks causing data races; this is an error in the Swift 6 language mode
250 |             #endif
251 |             weakSelf.delegate?.myVideoCapture(
252 |                 weakSelf, didOutputSampleBuffer: pixelBuffer,
    |                                                  |- warning: sending 'pixelBuffer' risks causing data races; this is an error in the Swift 6 language mode
    |                                                  `- note: task-isolated 'pixelBuffer' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
253 |                 rotation: imgRot, timeStamp: time
254 |             )
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-2F0A5646E1D333AE.txt
[2/10] Compiling AgoraAppGroupDataHelper AgoraAppGroupDataHelper.swift
[3/10] Emitting module AgoraAppGroupDataHelper
[4/10] Emitting module AgoraRtmControl
[5/10] Compiling AgoraRtmControl AgoraRtmController+AgoraRtmDelegate.swift
[6/10] Compiling AgoraRtmControl AgoraRtmController+Tokens.swift
[7/10] Compiling AgoraRtmControl AgoraRtmController+RtmDelegateOverflows.swift
[8/10] Compiling AgoraRtmControl AgoraRtmController+MuteRequests.swift
[9/10] Compiling AgoraRtmControl AgoraRtmController.swift
[10/10] Compiling AgoraRtmControl AgoraRtmController+SendHelpers.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[11/36] Emitting module AgoraUIKit
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraVideoViewer+Ordering.swift:84:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
 82 |     }
 83 |
 84 |     open override func layoutSubviews() {
    |     `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
 85 |         super.layoutSubviews()
 86 |         self.reorganiseVideos()
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraVideoViewer+Ordering.swift:84:24: error: method does not override any method from its superclass
 82 |     }
 83 |
 84 |     open override func layoutSubviews() {
    |                        `- error: method does not override any method from its superclass
 85 |         super.layoutSubviews()
 86 |         self.reorganiseVideos()
[12/38] Compiling AgoraUIKit AgoraSettings.swift
[13/38] Compiling AgoraUIKit AgoraSingleVideoView+RtmDelegate.swift
[14/38] Compiling AgoraUIKit AgoraSingleVideoView+RtmOptions.swift
[15/38] Compiling AgoraUIKit UIButton+Extensions.swift
[16/38] Compiling AgoraUIKit iOS+macOS+typealiases.swift
[17/38] Compiling AgoraUIKit AgoraVideoViewer.swift
[18/38] Compiling AgoraUIKit AgoraViewer.swift
[19/38] Compiling AgoraUIKit AgoraVideoViewer+Permissions.swift
[20/38] Compiling AgoraUIKit AgoraVideoViewer+RtcEngineDelegateOverflow.swift
[21/38] Compiling AgoraUIKit AgoraVideoViewer+Token.swift
[22/38] Compiling AgoraUIKit AgoraUIKit+AgoraRtmController+SendHelpers.swift
[23/38] Compiling AgoraUIKit AgoraUIKit+MD5.swift
[24/38] Compiling AgoraUIKit AgoraUIKit.swift
[25/38] Compiling AgoraUIKit AgoraVideoViewer+Utilities.swift
[26/38] Compiling AgoraUIKit AgoraVideoViewer+VideoControl.swift
[27/38] Compiling AgoraUIKit AgoraCameraSourcePush.swift
[28/38] Compiling AgoraUIKit AgoraCollectionViewer.swift
[29/38] Compiling AgoraUIKit AgoraConnectionData.swift
[30/38] Compiling AgoraUIKit AgoraVideoViewer+JoinChannel.swift
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraVideoViewer+Ordering.swift:84:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
 82 |     }
 83 |
 84 |     open override func layoutSubviews() {
    |     `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
 85 |         super.layoutSubviews()
 86 |         self.reorganiseVideos()
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraVideoViewer+Ordering.swift:84:24: error: method does not override any method from its superclass
 82 |     }
 83 |
 84 |     open override func layoutSubviews() {
    |                        `- error: method does not override any method from its superclass
 85 |         super.layoutSubviews()
 86 |         self.reorganiseVideos()
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraVideoViewer+Ordering.swift:85:15: error: value of type 'MPView' (aka 'NSView') has no member 'layoutSubviews'
 83 |
 84 |     open override func layoutSubviews() {
 85 |         super.layoutSubviews()
    |               `- error: value of type 'MPView' (aka 'NSView') has no member 'layoutSubviews'
 86 |         self.reorganiseVideos()
 87 |     }
[31/38] Compiling AgoraUIKit AgoraVideoViewer+LocalVideo.swift
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraVideoViewer+Ordering.swift:84:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
 82 |     }
 83 |
 84 |     open override func layoutSubviews() {
    |     `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
 85 |         super.layoutSubviews()
 86 |         self.reorganiseVideos()
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraVideoViewer+Ordering.swift:84:24: error: method does not override any method from its superclass
 82 |     }
 83 |
 84 |     open override func layoutSubviews() {
    |                        `- error: method does not override any method from its superclass
 85 |         super.layoutSubviews()
 86 |         self.reorganiseVideos()
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraVideoViewer+Ordering.swift:85:15: error: value of type 'MPView' (aka 'NSView') has no member 'layoutSubviews'
 83 |
 84 |     open override func layoutSubviews() {
 85 |         super.layoutSubviews()
    |               `- error: value of type 'MPView' (aka 'NSView') has no member 'layoutSubviews'
 86 |         self.reorganiseVideos()
 87 |     }
[32/38] Compiling AgoraUIKit AgoraVideoViewer+Ordering.swift
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraVideoViewer+Ordering.swift:84:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
 82 |     }
 83 |
 84 |     open override func layoutSubviews() {
    |     `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
 85 |         super.layoutSubviews()
 86 |         self.reorganiseVideos()
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraVideoViewer+Ordering.swift:84:24: error: method does not override any method from its superclass
 82 |     }
 83 |
 84 |     open override func layoutSubviews() {
    |                        `- error: method does not override any method from its superclass
 85 |         super.layoutSubviews()
 86 |         self.reorganiseVideos()
/Users/admin/builder/spi-builder-workspace/Sources/Agora-Video-UIKit/AgoraVideoViewer+Ordering.swift:85:15: error: value of type 'MPView' (aka 'NSView') has no member 'layoutSubviews'
 83 |
 84 |     open override func layoutSubviews() {
 85 |         super.layoutSubviews()
    |               `- error: value of type 'MPView' (aka 'NSView') has no member 'layoutSubviews'
 86 |         self.reorganiseVideos()
 87 |     }
[33/38] Compiling AgoraUIKit AgoraVideoViewer+AgoraExtensions.swift
[34/38] Compiling AgoraUIKit AgoraVideoViewer+AgoraRtcEngineDelegate.swift
[35/38] Compiling AgoraUIKit AgoraVideoViewer+Buttons.swift
[36/38] Compiling AgoraUIKit AgoraSingleVideoView.swift
[37/38] Compiling AgoraUIKit AgoraUIKit+AgoraRtmController+Extensions.swift
[38/38] Compiling AgoraUIKit AgoraUIKit+AgoraRtmController+MuteRequests.swift
BUILD FAILURE 6.1 macosSpm