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
Eric Nelson
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
Bastien Levasseur
Hello,
Indeed, i forgot to mention the versions of the libraries i'm using.
Thanks
0