如何解决添加SwiftyStoreKit后AppleConnect拒绝
我们得到了一个应用程序,并与发布者团队进行了测试,并在修复了所有错误之后,通过本地测试和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 举报,一经查实,本站将立刻删除。