问题描述
我们得到了一个应用程序,并与发布者团队进行了测试,并在修复了所有错误之后,通过本地测试和testflight测试,我们决定将SwiftyStoreKit的新版本提交给AppStore
因此,Apple拒绝了它,并显示消息“我们在启动时崩溃,我们无法对其进行审核”,并为此提供了崩溃报告
这是我在将负载崩溃日志记录到XCode之后得到的
0 MyAppName 0x000000010252a080 closure #1 in AfterInterstitialModal.calcLocalePrice() + 417920 (<compiler-generated>:0)
1 SwiftyStoreKit 0x00000001031f40c4 partial apply for thunk for @escaping @callee_guaranteed (@guaranteed RetrieveResults) -> () + 98500 (<compiler-generated>:0)
2 SwiftyStoreKit 0x00000001031f3cb8 closure #1 in ProductsInfoController.retrieveProductsInfo(_:completion:) + 97464 (<compiler-generated>:0)
3 SwiftyStoreKit 0x00000001031e6010 partial apply for closure #1 in InAppProductQueryRequest.performCallback(_:) + 40976 (<compiler-generated>:0)
4 SwiftyStoreKit 0x00000001031ee800 thunk for @escaping @callee_guaranteed () -> () + 75776 (<compiler-generated>:0)
但是如果我使用atos
命令并检查我得到的第一行
0 outlined destroy of Purchase (in MyAppName) (<compiler-generated>:0)
1 partial apply for thunk for @escaping @callee_guaranteed (@guaranteed RetrieveResults) -> () (in SwiftyStoreKit) (<compiler-generated>:0)
2 closure #1 in ProductsInfoController.retrieveProductsInfo(_:completion:) (in SwiftyStoreKit) (<compiler-generated>:0)
3 partial apply for closure #1 in InAppProductQueryRequest.performCallback(_:) (in SwiftyStoreKit) (<compiler-generated>:0)
4 thunk for @escaping @callee_guaranteed () -> () (in SwiftyStoreKit) (<compiler-generated>:0)
功能calcLocalPrice
func calcLocalePrice() {
SwiftyStoreKit.retrieveProductsInfo(["com.example.MyAppName.noAdsMode"]) { result in
if let product = result.retrievedProducts.first {
let priceString = product.localizedPrice!
let priceStringArr = priceString.components(separatedBy: .whitespaces)
// params for appmetrica
productPrice = (priceStringArr[0] as Nsstring).floatValue
productCurrency = priceStringArr[1]
self.price_text.text = "for " + String(priceString)
}
}
}
所以问题是:
谢谢。
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)