微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

添加SwiftyStoreKit后AppleConnect拒绝

如何解决添加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)
        }
    }
}

所以问题是:

  1. outlined destroy of Purchase是什么错误,如何避免?
  2. 为什么我们不能得到这个错误,而appleconnect测试人员却做到了?

谢谢。

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐


Selenium Web驱动程序和Java。元素在(x,y)点处不可单击。其他元素将获得点击?
Python-如何使用点“。” 访问字典成员?
Java 字符串是不可变的。到底是什么意思?
Java中的“ final”关键字如何工作?(我仍然可以修改对象。)
“loop:”在Java代码中。这是什么,为什么要编译?
java.lang.ClassNotFoundException:sun.jdbc.odbc.JdbcOdbcDriver发生异常。为什么?
这是用Java进行XML解析的最佳库。
Java的PriorityQueue的内置迭代器不会以任何特定顺序遍历数据结构。为什么?
如何在Java中聆听按键时移动图像。
Java“Program to an interface”。这是什么意思?