【发布时间】:2022-02-24 22:35:43
【问题描述】:
我正在使用 MongoDB 和 Stitch SDK(StitchSDK 版本 6.4.0)。 我的 iPhone 应用程序在调试模式下运行,但是当我将它构建为发行版并通过 TestFlight 安装它时,它崩溃了。 我尝试在构建设置中更改优化级别,但没有成功。
设备日志中引用崩溃线程的部分如下:
Thread 8 name: Dispatch queue: com.apple.root.default-qos
Thread 8 Crashed:
0 bson 0x105f72748 bson_append_array + 120
1 MongoSwift 0x105829db0 Array.encode(to:forKey:) + 1388
2 MongoSwift 0x105829db0 Array.encode(to:forKey:) + 1388
3 MongoSwift 0x10582c484 protocol witness for BSONValue.encode(to:forKey:) in conformance [A] + 24
4 MongoSwift 0x10583ff50 specialized Document.init(dictionaryLiteral:) + 668
5 MongoSwift 0x10583c6b8 Document.init(dictionaryLiteral:) + 24
6 StitchCoreSDK 0x105d27788 CoreStitchServiceClientImpl.getCallServiceFunctionRequest(withName:withArgs:withTimeout:) + 220
7 StitchCoreSDK 0x105d27db0 CoreStitchServiceClientImpl.callFunction<A>(withName:withArgs:withRequestTimeout:) + 120
8 StitchCoreSDK 0x105d28414 protocol witness for CoreStitchServiceClient.callFunction<A>(withName:withArgs:withRequestTimeout:) in conformance CoreStitchServiceClientImpl + 16
9 StitchCoreRemoteMongoDBService 0x105bd06d0 CoreRemoteMongoReadOperation.executeRead() + 232
10 StitchCoreRemoteMongoDBService 0x105bd05cc CoreRemoteMongoReadOperation.toArray() + 12
11 StitchRemoteMongoDBService 0x105e8598c partial apply for closure #1 in RemoteMongoReadOperation.toArray(_:) + 28
12 StitchRemoteMongoDBService 0x105e859b0 partial apply for thunk for @escaping @callee_guaranteed () -> (@owned [A], @error @owned Error) + 24
13 StitchCore 0x105ae410c closure #1 in OperationDispatcher.run<A>(withCompletionHandler:_:) + 136
14 StitchCore 0x105ae3e44 thunk for @escaping @callee_guaranteed () -> () + 20
15 libdispatch.dylib 0x1844f91a4 _dispatch_call_block_and_release + 24
16 libdispatch.dylib 0x1844fa1a8 _dispatch_client_callout + 16
17 libdispatch.dylib 0x18449c1fc _dispatch_queue_override_invoke + 728
18 libdispatch.dylib 0x1844a943c _dispatch_root_queue_drain + 340
19 libdispatch.dylib 0x1844a9c38 _dispatch_worker_thread2 + 172
20 libsystem_pthread.dylib 0x1def1fe48 _pthread_wqthread + 224
21 libsystem_pthread.dylib 0x1def1f9f0 start_wqthread + 8
希望有人能帮帮我!
【问题讨论】:
-
一年前我也遇到过同样的问题,可惜没有时间解决。似乎问题仍然存在......
-
似乎是一个已知问题(我认为它是一样的?)但他们不会修复它,因为您必须通过同步升级到 REALM 应用程序...github.com/mongodb/stitch-ios-sdk/issues/206
标签: swift crash release mongodb-stitch