获取沙箱用户的App Store收据失败,密码错误

编程入门 行业动态 更新时间:2024-10-24 02:01:46
本文介绍了获取沙箱用户的App Store收据失败,密码错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我有一个商业macOS应用程序,我在Mac App Store中分发.现在在启动时,我检查App Store收据,如果不存在,则返回代码173.这将打开App Store登录对话框以获取收据.

I have a commercial macOS app I distribute in the Mac App Store. Now at startup I check for the App Store receipt and exit with code 173 if it is not present. This brings up the App Store sign in dialog in order to get a receipt.

我一直使用沙盒帐户对此进行测试,但是现在,当我尝试使用沙盒帐户(或我的真实Apple ID)登录时,只会收到错误消息.

I have always tested this with sandbox accounts but now I only get errors when I try to sign in with a sandbox account (or my real Apple ID).

当我从XCode开始以及将应用程序导出为开发版本时,就会出现问题.

The issue emerges when I start from XCode as well as when I export the app as a development build.

我有以下设置:

  • macOS 10.15.1
  • XCode 11.2
  • 使用有效的开发证书签名的应用

我尝试了以下操作:

  • 退出App Store应用
  • 重新启动Mac
  • 三重验证的电子邮件和密码
  • 在App Store Connect中创建新的沙箱用户
  • 运行 codesign -vvvv 报告一切正常
  • Sign out of App Store app
  • Restart Mac
  • Tripple verified email and password
  • Create new sandbox user in App Store Connect
  • Ran codesign -vvvv which reports everything is fine

但是,我确实在控制台上看到以下错误,但无法弄清楚它的含义:

I do, however, see the following error on the Console, but could not figure out what it is supposed to mean:

StoreLegacy: Failed to perform in-line receipt renewal for application at path /Users/me/Library/Developer/Xcode/DerivedData/MyApp-alwjuasqcasdfaufnnxhqeoo/Build/Products/Debug/MyApp.app : 'Error Domain=com.applemerce.client Code=600 "(null)"'

以前有人看过吗?

更新

它在Mojave上可以正常使用.所以我认为这是Catalina的问题.

It works as expected on Mojave. So I assume this is an issue with Catalina.

推荐答案

@ codingFriend1-谢谢.我应该已经发布了解决方法.看来问题出在我在英国,而我的测试帐户却在英国应用商店中.我在美国应用商店创建了一个新的测试仪,并且可以正常工作.

@codingFriend1 - Thanks. I should have posted the workaround. It seems the problem was that I'm in the UK and my test account was with the UK app store. I created a new tester with the US app store and that worked.

由此产生的证书可与UK测试人员一起使用.我不认为它曾经是这样,但是嘿!

The resulting certificate works with UK tester. I don't think it used to be like this, but hey ho!

正是这样终于使它对我有用,但是可能还有其他问题.

It was this that finally got it working for me but there may be other problems.

更多推荐

获取沙箱用户的App Store收据失败,密码错误

本文发布于:2023-10-23 02:01:26,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1519408.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:收据   错误   密码   用户   Store

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!