I've got this more symbolicated crash report hopefully it will help.
crash report.crash
Also here is the code for the GraphClient Init method that referenced in the crash log
init(storeDomain: String, additionalHeaders: [String: String], authorisationSource: APIAuthorizationSource) {
let baseHost: String
#if DEVSTORE
baseHost = "abc.com"
#else
baseHost = "efg.com"
#endif
let url = URL(string: "https://\(storeDomain).\(baseHost)/api/graphql")!
let store = ApolloStore(cache: InMemoryNormalizedCache())
let provider = NetworkInterceptorProvider(authorisationSource, store: store)
let nt = RequestChainNetworkTransport(interceptorProvider: provider,
endpointURL: url,
additionalHeaders: additionalHeaders)
apollo = ApolloClient(networkTransport: nt, store: store)
apollo.cacheKeyForObject = { [$0["__typename"], $0["id"]] }
}
My guess is that the problem is at line let url = URL(string: "https://\(storeDomain).\(baseHost)/api/graphql")! with string interpolation. I don't think the force unwrap for of URL here is the cause here but open for any suggestions.
Topic:
Programming Languages
SubTopic:
Swift
Tags: