Recent searches


No recent searches

iOS Crash when trying to create a request



Posted Oct 11, 2021

Hello,
I need to create a Request with the ZendeskSDK. When i try to create the request with the provider the app crash with an error that can't be parsed...

The request creation :

    let provider = ZDKRequestProvider()
    @IBAction func sendButtonTapped() {
        let request = ZDKCreateRequest()
        request.subject = "[TEST SDK ZENDESK] Test iOS"
        request.requestDescription = "Test iOS"

        print("launch request")
        self.provider.createRequest(request) { result,error in
            guard error == nil else {
                print("error")
                return
            }
            print("yeah")
        }
    }

The error on the debugger :

ZendeskCoreSDK was compiled with optimization - stepping may behave oddly; variables may not be available.

/PATH_TO/ZendeskCoreSDK.framework/ZendeskCoreSDK: Cannot load Swift type information; AST validation error in "ZendeskCoreSDK": The module file format is too old to be used by this version of the debugger.

I don't understand why but the last execution phase on XCode is :

#0	0x00000001058b0c74 in Zendesk.accountDetails.getter at /Users/runner/work/zendesk_mobile_sdks_ios/zendesk_mobile_sdks_ios/ZendeskCoreSDK/ZendeskCoreSDK/Zendesk.swift:155
#1 0x00000001055000bc in ___lldb_unnamed_symbol259$$SupportProvidersSDK ()
#6 0x0000000105506a00 in ___lldb_unnamed_symbol477$$SupportProvidersSDK ()
#7 0x00000001058e3ba4 in SettingsProvider.getSettings<τ_0_0>(_:callback:) at /Users/runner/work/zendesk_mobile_sdks_ios/zendesk_mobile_sdks_ios/ZendeskCoreSDK/ZendeskCoreSDK/Providers/SettingsProvider.swift:104
#8 0x0000000105506680 in ___lldb_unnamed_symbol459$$SupportProvidersSDK ()
#11 0x00000001054e4038 in -[ZDKRequestProvider createRequest:withCallback:] ()
#12 0x0000000104979004 in SupportRequestViewContrller.sendButtonTapped() at ...

 

I use the last versions of the libraries with carthage now

I tried to use the last versions that can be used with the integration of XCode and i got the same error.


Is there a way to know what i'm doing wrong or to avoid that crash ?


0

2

2 comments

image avatar

Eric Nelson

Zendesk Developer Advocacy

Hey Bastien,

Can you list which of our SDK's you've included in your cartfile?

Thanks!

Have a wonderful day!

Eric Nelson | Manager - Developer Advocacy

0


Hello,
Indeed, i forgot to mention the versions of the libraries i'm using.

binary "https://zendesk.jfrog.io/zendesk/libs-releases-local/ios/zendesk/CommonUISDK/CommonUISDK.json" "6.1.0"
binary "https://zendesk.jfrog.io/zendesk/libs-releases-local/ios/zendesk/MessagingAPI/MessagingAPI.json" "3.8.1"
binary "https://zendesk.jfrog.io/zendesk/libs-releases-local/ios/zendesk/MessagingSDK/MessagingSDK.json" "3.8.1"
binary "https://zendesk.jfrog.io/zendesk/libs-releases-local/ios/zendesk/SDKConfigurations/SDKConfigurations.json" "1.1.7"
binary "https://zendesk.jfrog.io/zendesk/libs-releases-local/ios/zendesk/SupportProvidersSDK/SupportProvidersSDK.json" "5.2.0"
binary "https://zendesk.jfrog.io/zendesk/libs-releases-local/ios/zendesk/SupportSDK/SupportSDK.json" "5.2.0"
binary "https://zendesk.jfrog.io/zendesk/libs-releases-local/ios/zendesk/ZendeskCoreSDK/ZendeskCoreSDK.json" "2.5.0"

 

Thanks

0


Please sign in to leave a comment.

Didn't find what you're looking for?

New post