xcode - 在应用程序购买 ios 中找不到产品

标签 xcode swift in-app-purchase app-store-connect

我尝试了 StackOverflow 中找到的很多解决方案,但它们对我没有帮助。

我正在尝试使用产品 ID 获取产品信息

func requestProductInfo() {
   if SKPaymentQueue.canMakePayments() {

     let productIdentifiers = NSSet(objects: "acces_all_tests_without_ads")
     let productRequest = SKProductsRequest(productIdentifiers:productIdentifiers as! Set<String>)
     productRequest.delegate = self
     productRequest.start()
   }
   else {
     print("Cannot perform In App Purchases.")
   }
} 
func productsRequest(request: SKProductsRequest, didReceiveResponse response: SKProductsResponse) {
    if response.products.count != 0 {
        for product in response.products {
            productsArray.append(product )
        }
        tblProducts.reloadData()
    }
    else {
        print("There are no products.")
    }
    if response.invalidProductIdentifiers.count != 0 {
        print(response.invalidProductIdentifiers.description)
    }
 }

我总是收到“没有产品”。

我的产品 id = "access_all_tests_without_ads" 已在 iTunes Connect 中,且具有良好的应用程序 ID,我已在以下位置激活应用内购买功能: XCode。

enter image description here

我尝试从模拟器/设备中卸载该应用程序,但这对我不起作用。

我 32 小时前在 iTunes Connect 中创建了该产品。

我还输入了所有信息银行契约(Contract)税等,我1小时前这样做enter image description here ...

任何帮助将不胜感激。

最佳答案

我在这里找到了解决方案:

iOS in app purchase - no products received

我为我的应用程序创建了一个新的配置文件,它现在就像一个魅力

关于xcode - 在应用程序购买 ios 中找不到产品,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34799876/

相关文章:

ios - 体系结构 x86_64 的 undefined symbol : for libTYCommonLib. a

swift - 何时在 SWIFT 中使用线程进行 UI 更新

ios - 应用内购买错误 "This is not a Test User account"

ios - 首次运行时无需登录即可下载 Apple 托管的免费产品内容(应用内购买)

ios - x1、x2 和 x3 的 UIImageView 大小

ios - 构建在 iTunes Connect 中不可见

xcode - 将 JSON 从 AlamoFire/SwiftyJSON 转换为 Swift/Xcode 中的字典

swift - 从现有的 SwiftUI @States 派生绑定(bind)

ios - 将项目从 ObjC 移植到 Swift 后应用程序无法启动

ios - IAP的一次性消耗品是否仅限于游戏?