首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >存储工具包2错误-错误Domain=ASDErrorDomain Code=509“无活动帐户”

存储工具包2错误-错误Domain=ASDErrorDomain Code=509“无活动帐户”
EN

Stack Overflow用户
提问于 2022-05-31 07:40:33
回答 2查看 541关注 0票数 1

我正在尝试实现StoreKit2 API以实现IAP,但始终获得错误Error Domain=ASDErrorDomain Code=509 "No active account"

我在网上做过研究,但找不到关于不同ASDErrorDomain错误代码的任何信息。有人知道这个错误意味着什么吗?

如果您很好奇,我的完整错误日志如下所示。

代码语言:javascript
运行
复制
2022-05-31 02:33:35.491370-0500 (app name deleted for privacy) [Default] Error enumerating unfinished transactions for first transaction listener: Error Domain=ASDErrorDomain Code=509 "No active account" UserInfo={NSLocalizedDescription=No active account}
2022-05-31 02:33:35.884686-0500 (app name deleted for privacy) [Default] [StoreKit] Failed to get products through appstored in simulator, will try using appstoreagent on host mac:
Error Domain=ASDErrorDomain Code=507 "Error decoding response" UserInfo={NSLocalizedDescription=Error decoding response, NSLocalizedFailureReason=Could not decode media products response}
2022-05-31 02:33:36.296678-0500 (app name deleted for privacy) [Default] Error enumerating monthlySubscription current transactions: Error Domain=ASDErrorDomain Code=509 "No active account" UserInfo={NSLocalizedDescription=No active account}
objc[16313]: Class _PathPoint is implemented in both /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore (0x126673338) and /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/TextInputUI.framework/TextInputUI (0x137570fe8). One of the two will be used. Which one is undefined.
objc[16313]: Class _PointQueue is implemented in both /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore (0x126673310) and /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/TextInputUI.framework/TextInputUI (0x137571010). One of the two will be used. Which one is undefined.
EN

回答 2

Stack Overflow用户

回答已采纳

发布于 2022-05-31 13:59:21

我做了一些谷歌自己,找不到什么,但遇到了这个链接https://developer.apple.com/forums/thread/660287,这告诉我,你的设备没有连接到苹果商店,因此无法继续使用StoreKit。转到设置,点击其中的第一部分,配置文件图片,并使用有效的appleid登录。我希望这能帮到你!

票数 1
EN

Stack Overflow用户

发布于 2022-11-07 14:38:03

您可以在模拟器中测试IAP,而无需连接到App。在这种情况下,默认情况下项目不会设置为这样做。您必须在构建方案的run > options选项卡下选择包含的StoreKit配置,以使SKDemo应用程序按预期运行。

通过查看这些用于测试StoreKit的通用说明,就知道了这一点。您也可以在这里找到一些有用的信息- https://developer.apple.com/documentation/xcode/setting-up-storekit-testing-in-xcode?language=objc

编辑:它实际上是在项目站点(duh) - https://developer.apple.com/documentation/storekit/in-app_purchase/implementing_a_store_in_your_app_using_the_storekit_api下面的“配置示例代码项目”下的说明中。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/72443910

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档