AgoraIO / AgoraAudio_iOS

Agora's Audio SDK Swift Package for iOS 📦
MIT License
11 stars 5 forks source link

SDK crash when join channel call #7

Closed waseemwanologicalsolutions closed 8 months ago

waseemwanologicalsolutions commented 1 year ago

version 4.1.1 crash when join channel trying after initialization tried using package manager and cocoapods

objc[1571]: Class HWDarwinResamplerImpl is implemented in both /private/var/containers/Bundle/Application/4A951530-9363-409F-B142-FC94491571BA/testAgora.app/Frameworks/AgoraRtcKit.framework/AgoraRtcKit (0x105fb1770) and /private/var/containers/Bundle/Application/4A951530-9363-409F-B142-FC94491571BA/testAgora.app/Frameworks/AgoraAudioBeautyExtension.framework/AgoraAudioBeautyExtension (0x10318d940). One of the two will be used. Which one is undefined. objc[1571]: Class HWDarwinResamplerImpl is implemented in both /private/var/containers/Bundle/Application/4A951530-9363-409F-B142-FC94491571BA/testAgora.app/Frameworks/AgoraRtcKit.framework/AgoraRtcKit (0x105fb1770) and /private/var/containers/Bundle/Application/4A951530-9363-409F-B142-FC94491571BA/testAgora.app/Frameworks/AgoraSpatialAudioExtension.framework/AgoraSpatialAudioExtension (0x103a68d18). One of the two will be used. Which one is undefined. 2023-02-22 14:30:33.254746+0500 testAgora[1571:552834] [User Defaults] CFPrefsPlistSource<0x280bccb80> (Domain: kCFPreferencesAnyApplication, User: kCFPreferencesCurrentUser, ByHost: No, Container: (null), Contents Need Refresh: No): Value for key AppleLanguages was ( "en-PK", "ur-PK" ). Expected ( "en-AE", "ur-AE" ) (Preferences(420): 2022-08-01 17:51:31 (PKT)) AudioBeautyExtensionProvider::enumerateExtensions [extension_count:22]

Screenshot 2023-02-22 at 2 12 19 PM Screenshot 2023-02-22 at 2 15 13 PM

` func initializeAgoraEngine() { let config = AgoraRtcEngineConfig() config.appId = AgoraCredentials.appID agoraEngine = AgoraRtcEngineKit.sharedEngine(with: config, delegate: self) self.perform(#selector(joinChannel), with: nil, afterDelay: 6) }

@objc func joinChannel() async {
    if await !self.checkForPermissions() {
        showMessage(title: "Error", text: "Permissions were not granted")
        return
    }

    let option = AgoraRtcChannelMediaOptions()

    if self.userRole == .broadcaster {
        option.clientRoleType = .broadcaster
    } else {
        option.clientRoleType = .audience
    }

    option.channelProfile = .communication

    let result = agoraEngine.joinChannel(
        byToken: AgoraCredentials.token, channelId: AgoraCredentials.channelName, uid: 0, mediaOptions: option,
        joinSuccess: { (channel, uid, elapsed) in }
    )
    if (result == 0) {
        joined = true
        showMessage(title: "Success", text: "Successfully joined the channel as \(self.userRole)")
    }
}`
maxxfrazer commented 11 months ago

sorry for the delay, is this still an issue for you?