Followed all the setup steps and working find on debug builds and on the emulator but on release builds get the following errors on compilation:
▸ Compiling CrispChatSdk.swift
❌ /Users/ankur/Documents/Code/company/node_modules/react-native-crisp-chat-sdk/ios/CrispChatSdk.swift:8:18: type 'CrispSDK' has no member 'setTokenID'
CrispSDK.setTokenID(tokenID: id)
^
❌ /Users/ankur/Documents/Code/company/node_modules/react-native-crisp-chat-sdk/ios/CrispChatSdk.swift:13:18: type 'CrispSDK' has no member 'user'
CrispSDK.user.email = email
~~~~~~~~ ^~~~~~~~~~
❌ /Users/ankur/Documents/Code/company/node_modules/react-native-crisp-chat-sdk/ios/CrispChatSdk.swift:18:18: type 'CrispSDK' has no member 'user'
CrispSDK.user.nickname = nickname
~~~~~~~~ ^~~~
❌ /Users/ankur/Documents/Code/company/node_modules/react-native-crisp-chat-sdk/ios/CrispChatSdk.swift:22:18: type 'CrispSDK' has no member 'user'
CrispSDK.user.phone = phone
~~~~~~~~ ^~~~
❌ /Users/ankur/Documents/Code/company/node_modules/react-native-crisp-chat-sdk/ios/CrispChatSdk.swift:27:18: type 'CrispSDK' has no member 'user'
CrispSDK.user.avatar = URL(string: url)
~~~~~~~~ ^~~~
❌ /Users/ankur/Documents/Code/company/node_modules/react-native-crisp-chat-sdk/ios/CrispChatSdk.swift:32:18: type 'CrispSDK' has no member 'session'
CrispSDK.session.segment = segment
~~~~~~~~ ^~~~
❌ /Users/ankur/Documents/Code/company/node_modules/react-native-crisp-chat-sdk/ios/CrispChatSdk.swift:37:18: type 'CrispSDK' has no member 'session'
CrispSDK.session.setString(value, forKey: key)
~~~~~~~~ ^~~~~~~
❌ /Users/ankur/Documents/Code/company/node_modules/react-native-crisp-chat-sdk/ios/CrispChatSdk.swift:42:18: type 'CrispSDK' has no member 'session'
CrispSDK.session.setString(String(value), forKey: key)
~~~~~~~~ ^~~~~~~
❌ /Users/ankur/Documents/Code/company/node_modules/react-native-crisp-chat-sdk/ios/CrispChatSdk.swift:47:18: type 'CrispSDK' has no member 'session'
CrispSDK.session.setInt(value, forKey: key)
~~~~~~~~ ^~~~~~~
❌ /Users/ankur/Documents/Code/company/node_modules/react-native-crisp-chat-sdk/ios/CrispChatSdk.swift:52:18: type 'CrispSDK' has no member 'session'
CrispSDK.session.pushEvent(Crisp.SessionEvent(name: eventName, color: color))
~~~~~~~~ ^~~~~~~
❌ /Users/ankur/Documents/Code/company/node_modules/react-native-crisp-chat-sdk/ios/CrispChatSdk.swift:52:54: argument passed to call that takes no arguments
CrispSDK.session.pushEvent(Crisp.SessionEvent(name: eventName, color: color))
~~~~~~~~ ^~~~~~~
❌ /Users/ankur/Documents/Code/company/node_modules/react-native-crisp-chat-sdk/ios/CrispChatSdk.swift:57:18: type 'CrispSDK' has no member 'session'
CrispSDK.session.reset()
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
❌ /Users/ankur/Documents/Code/company/node_modules/react-native-crisp-chat-sdk/ios/CrispChatSdk.swift:63:77: 'ChatViewController' is unavailable: cannot find Swift declaration for this class
UIApplication.shared.windows.first?.rootViewController?.present(ChatViewController(), animated: true)
~~~~~~~~ ^~~~~~~
▸ Compiling CrispChatSdk.swift
Followed all the setup steps and working find on debug builds and on the emulator but on release builds get the following errors on compilation: