crisp-im / crisp-sdk-ios

:package: Crisp iOS SDK, add a chat in any iOS app and communicate with your users.
https://docs.crisp.chat/guides/chatbox-sdks/ios-sdk/
Other
44 stars 19 forks source link

Crisp: The module file format is too old to be used by this version of the debugger #74

Closed abmomen closed 2 years ago

abmomen commented 2 years ago

I was trying to integrate Crisp in our live app, everything went well but after updating Xcode we are getting this error and app crashes. Searched a lot but didn't find any way out.

Podfile:

pod 'Crisp'

Podfile.lock:

Crisp (1.1.0)

Swift Version:

swift-driver version: 1.45.2 Apple Swift version 5.6.1 (swiftlang-5.6.0.323.66 clang-1316.0.20.12)
Target: x86_64-apple-macosx12.0

Xcode Version:

Version 13.4.1 (13F100)

Error Message:

Crisp was compiled with optimization - stepping may behave oddly; variables may not be available.
Crisp was compiled with a different Swift compiler (version '1205.0.28.2') than the Swift compiler integrated into LLDB (version '5.6.0.323'). Swift expression evaluation requires a matching compiler and debugger from the same toolchain./Users/st-ios/Library/Developer/Xcode/DerivedData/ShareTrip-ctopprgauhoevkfydquztanwhsfi/Build/Products/Release-iphoneos/ShareTrip.app/Frameworks/Crisp.framework/Crisp: Cannot load Swift type information; AST validation error in "Crisp": The module file format is too old to be used by this version of the debugger.

Crash shows:

Crisp`SocketIOClientConfiguration.init(arrayLiteral:):
->  0x102d2e354 <+0>: str    x0, [x8]
    0x102d2e358 <+4>: ret    

By the way we use SocketIO from earlier.

MannaICT13 commented 2 years ago

Integrate CRISP Through SPM Then Its Works Fine.

eliottvincent commented 2 years ago

SPM would be the preferred method of installation indeed.