Сбой в методе didReceive в запросах продукта подписки, в процессе проверки в магазине приложений - PullRequest
0 голосов
/ 14 февраля 2019

Я отправил свое приложение на рассмотрение в магазин приложений.Приложение содержит встроенные покупки автоматически обновляемых подписок.Он был отклонен с отчетом о сбое, как показано ниже:

#0. Crashed: com.apple.main-thread
0  TradeHub                       0x10224fcf4 $S8TradeHub9PremiumVCC15productsRequest_10didReceiveySo010SKProductsF0C_So0I8ResponseCtFTf4dnn_n (<compiler-generated>)
1  TradeHub                       0x10224c268 $S8TradeHub9PremiumVCC15productsRequest_10didReceiveySo010SKProductsF0C_So0I8ResponseCtFTo (<compiler-generated>)
2  StoreKit                       0x1a027cf1c __34-[SKProductsRequest _handleReply:]_block_invoke + 504
3  libdispatch.dylib              0x18bbcd6c8 _dispatch_call_block_and_release + 24
4  libdispatch.dylib              0x18bbce484 _dispatch_client_callout + 16
5  libdispatch.dylib              0x18bb7a9a4 _dispatch_main_queue_callback_4CF$VARIANT$mp + 1068
6  CoreFoundation                 0x18c124df4 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 12
7  CoreFoundation                 0x18c11fcbc __CFRunLoopRun + 1964
8  CoreFoundation                 0x18c11f1f0 CFRunLoopRunSpecific + 436
9  GraphicsServices               0x18e398584 GSEventRunModal + 100
10 UIKitCore                      0x1b90acc00 UIApplicationMain + 212
11 TradeHub                       0x102183af8 main (BlockedUsersTable.swift:19)
12 libdyld.dylib                  0x18bbdebb4 start + 4

--

#0. Crashed: com.apple.main-thread
0  TradeHub                       0x10224fcf4 $S8TradeHub9PremiumVCC15productsRequest_10didReceiveySo010SKProductsF0C_So0I8ResponseCtFTf4dnn_n (<compiler-generated>)
1  TradeHub                       0x10224c268 $S8TradeHub9PremiumVCC15productsRequest_10didReceiveySo010SKProductsF0C_So0I8ResponseCtFTo (<compiler-generated>)
2  StoreKit                       0x1a027cf1c __34-[SKProductsRequest _handleReply:]_block_invoke + 504
3  libdispatch.dylib              0x18bbcd6c8 _dispatch_call_block_and_release + 24
4  libdispatch.dylib              0x18bbce484 _dispatch_client_callout + 16
5  libdispatch.dylib              0x18bb7a9a4 _dispatch_main_queue_callback_4CF$VARIANT$mp + 1068
6  CoreFoundation                 0x18c124df4 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 12
7  CoreFoundation                 0x18c11fcbc __CFRunLoopRun + 1964
8  CoreFoundation                 0x18c11f1f0 CFRunLoopRunSpecific + 436
9  GraphicsServices               0x18e398584 GSEventRunModal + 100
10 UIKitCore                      0x1b90acc00 UIApplicationMain + 212
11 TradeHub                       0x102183af8 main (BlockedUsersTable.swift:19)
12 libdyld.dylib                  0x18bbdebb4 start + 4

#1. Thread
0  libsystem_kernel.dylib         0x18bd2bb9c __workq_kernreturn + 8
1  libsystem_pthread.dylib        0x18bdb1100 _pthread_wqthread + 348
2  libsystem_pthread.dylib        0x18bdb3cec start_wqthread + 4

#2. Thread
0  libsystem_kernel.dylib         0x18bd2bb9c __workq_kernreturn + 8
1  libsystem_pthread.dylib        0x18bdb1100 _pthread_wqthread + 348
2  libsystem_pthread.dylib        0x18bdb3cec start_wqthread + 4

#3. com.apple.uikit.eventfetch-thread
0  libsystem_kernel.dylib         0x18bd1fea4 mach_msg_trap + 8
1  libsystem_kernel.dylib         0x18bd1f37c mach_msg + 72
2  CoreFoundation                 0x18c124be8 __CFRunLoopServiceMachPort + 236
3  CoreFoundation                 0x18c11fa84 __CFRunLoopRun + 1396
4  CoreFoundation                 0x18c11f1f0 CFRunLoopRunSpecific + 436
5  Foundation                     0x18cb15494 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 300
6  Foundation                     0x18cb15340 -[NSRunLoop(NSRunLoop) runUntilDate:] + 148
7  UIKitCore                      0x1b919d0c4 -[UIEventFetcher threadMain] + 136
8  Foundation                     0x18cc4823c __NSThread__start__ + 1040
9  libsystem_pthread.dylib        0x18bdb025c _pthread_body + 128
10 libsystem_pthread.dylib        0x18bdb01bc _pthread_start + 48
11 libsystem_pthread.dylib        0x18bdb3cf4 thread_start + 4

#4. Thread
0  libsystem_kernel.dylib         0x18bd2bb9c __workq_kernreturn + 8
1  libsystem_pthread.dylib        0x18bdb11c0 _pthread_wqthread + 540
2  libsystem_pthread.dylib        0x18bdb3cec start_wqthread + 4

#5. Thread
0  libsystem_kernel.dylib         0x18bd2bb9c __workq_kernreturn + 8
1  libsystem_pthread.dylib        0x18bdb1100 _pthread_wqthread + 348
2  libsystem_pthread.dylib        0x18bdb3cec start_wqthread + 4

#6. com.twitter.crashlytics.ios.MachExceptionServer
0  TradeHub                       0x1022adab8 CLSProcessRecordAllThreads (CLSProcess.c:376)
1  TradeHub                       0x1022adea0 CLSProcessRecordAllThreads (CLSProcess.c:407)
2  TradeHub                       0x10229d7c8 CLSHandler (CLSHandler.m:26)
3  TradeHub                       0x102298ba8 CLSMachExceptionServer (CLSMachException.c:446)
4  libsystem_pthread.dylib        0x18bdb025c _pthread_body + 128
5  libsystem_pthread.dylib        0x18bdb01bc _pthread_start + 48
6  libsystem_pthread.dylib        0x18bdb3cf4 thread_start + 4

#7. com.apple.NSURLConnectionLoader
0  libsystem_kernel.dylib         0x18bd1fea4 mach_msg_trap + 8
1  libsystem_kernel.dylib         0x18bd1f37c mach_msg + 72
2  CoreFoundation                 0x18c124be8 __CFRunLoopServiceMachPort + 236
3  CoreFoundation                 0x18c11fa84 __CFRunLoopRun + 1396
4  CoreFoundation                 0x18c11f1f0 CFRunLoopRunSpecific + 436
5  CFNetwork                      0x18c74200c -[__CoreSchedulingSetRunnable runForever] + 212
6  Foundation                     0x18cc4823c __NSThread__start__ + 1040
7  libsystem_pthread.dylib        0x18bdb025c _pthread_body + 128
8  libsystem_pthread.dylib        0x18bdb01bc _pthread_start + 48
9  libsystem_pthread.dylib        0x18bdb3cf4 thread_start + 4

#8. com.apple.CoreMotion.MotionThread
0  libsystem_kernel.dylib         0x18bd1fea4 mach_msg_trap + 8
1  libsystem_kernel.dylib         0x18bd1f37c mach_msg + 72
2  CoreFoundation                 0x18c124be8 __CFRunLoopServiceMachPort + 236
3  CoreFoundation                 0x18c11fa84 __CFRunLoopRun + 1396
4  CoreFoundation                 0x18c11f1f0 CFRunLoopRunSpecific + 436
5  CoreFoundation                 0x18c11ff8c CFRunLoopRun + 80
6  CoreMotion                     0x191b74c58 (Missing)
7  libsystem_pthread.dylib        0x18bdb025c _pthread_body + 128
8  libsystem_pthread.dylib        0x18bdb01bc _pthread_start + 48
9  libsystem_pthread.dylib        0x18bdb3cf4 thread_start + 4

Мне не удалось воспроизвести этот сбой при тестировании, и после того, как они отклонили двоичный файл, мой статус подписки изменился на «Требуется действие разработчика».В разделе «Локализации» IAP произошла ошибка, которой раньше не было.Красный значок исчезает при редактировании заголовка или описания.Нужно ли выполнять какие-либо действия перед отправкой приложения на рассмотрение?

Я настроил всех пользователей и налоговые соглашения

Ниже приведен мой код для получения подписок в моем приложении:

let req = SKProductsRequest(productIdentifiers: ids)
req.delegate = self
req.start()

...

func productsRequest(_ request: SKProductsRequest, didReceive response: SKProductsResponse) {
        if response.products.count == 0{
            SVProgressHUD.dismiss()
            SVProgressHUD.showError(withStatus: "No products found")
            return
        }
        print(response.products)
        SVProgressHUD.dismiss()

}
...