xcode - 如何在 Xcode 中创建 .storekit 文件?

标签 xcode macos in-app-purchase storekit

我目前正在尝试设置一个本地环境来测试 macOS 应用程序中的应用内购买。

Apple 的文档位于 https://developer.apple.com/documentation/xcode/setting_up_storekit_testing_in_xcode状态:

To create a StoreKit configuration file, launch Xcode, then choose File > New > File. In the sheet that appears, enter “storekit” in the Filter search field, select StoreKit Configuration File...

当我过滤“storekit”时,没有“StoreKit 配置文件”。

我做错了什么?我需要在 Xcode 中安装某种 SDK 或类似软件吗?

最佳答案

我在 Catalina 10.15.5 上使用 Xcode 12.0 beta (12A6159)。 找到Storekit配置文件,我可以创建和配置它。

但是Scheme -> Run -> 选项并没有显示选择选项来在macOS项目上执行本地测试,而只是在IOS项目上。

在苹果文档 StoreKit 测试框架上标记为 macOS 11.0+

Apple Dev Forum 上的评论表明,此菜单出现在 macOS 项目的 Big Sur 配置中,但 Xcode 仍然连接到 Sandbox。尚未在 Big Sur 上尝试过。

关于xcode - 如何在 Xcode 中创建 .storekit 文件?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62562998/

相关文章:

xcode - Interface Builder 文件中的未知类。 Xcode 6 和 swift

swift - JSQMessageAvatarImageFactory错误

objective-c - IOS UITableViewCell Spacer(或边距)

python - 使用 Python 在 OSX 上写入 MySQL 的设置更简单

xcode - 配置与 com.apple.developer.parent-application-identifiers 权利的权利文件值不匹配

iphone - 有没有更好的方法在 Objective-C 中序列化 plist-y 对象?

css - 选择背景白色/透明 - Chrome OSx

android - Android 上视频点播应用的计费解决方案

ios - RevenueCat - 为什么我得到 : Error Domain=SKErrorDomain Code=2 "Cannot connect to iTunes Store"

iOS - 应用程序内购买 - 恢复按钮?