我正在向我的iOS应用程序中添加应用内购买,该应用程序可以解锁以更高分辨率渲染图像的功能。为了实现这一目标,我想利用Apple的内容托管功能进行应用内购买。
我找到了有关该主题(1)的许多指南,所有指南都表明需要在类型的“应用内购买内容”类型中创建一个单独的项目或目标。但是,在XCode中创建新项目或目标时,我并没有将其视为一个选项。
这是我希望看到的“应用内购买内容”选项:
这是我在xcode中在xcode中看到的唯一选项。其他选项卡,它也不存在于其他任何选项卡中:
<< img src =“ https://i.sstatic.net/m5t04.png” alt =“在此处输入图像说明”>
在App Store Connect中,该应用程序已配置为In-App购买,内容托管均为打开,我可以为该不清理产品进行测试(没有内容下载)。我也正在使用最新版本的Xcode。
在搜索网络时,我找不到任何迹象表明为什么在Xcode中可能会缺少该选项。有人看到我可能缺少在XCode中启用此步骤的步骤吗?
(1)我引用的一些指南:
I am adding an in-app purchase to my iOS application that unlocks a feature to render images at a higher resolution. To achieve this, I would like to leverage Apple's Content Hosting feature for in-app purchases.
I found a number of guides on the topic (1), and all indicate the need to create a separate project or target in XCode of type "In-App Purchase Content". However, I am not seeing that as an option when creating a new project or target in XCode.
Here is the "In-App Purchase Content" option I would expect to see:
Here are the only options I see in XCode under the Multiplatform & Other tabs, it is not present in any of the other tabs either:
In App Store Connect, the app is configured with the in-app purchase, Content Hosting is turned on, and I can make a test purchase for that non-consumable product (without the content download). I also am working with the latest version of XCode.
When searching the web, I can't find any indication why that option may be missing for me in XCode. Does anyone see a step I might be missing to enable this in XCode?
(1) Some of the guides I am referencing:
发布评论
评论(1)
我相信,根据以下版本注释,这可能已在Xcode 13.3中删除:
I believe this may have been removed in Xcode 13.3, per the following release note:
https://developer.apple.com/documentation/Xcode-Release-Notes/xcode-13_3-release-notes