获取沙箱用户的App Store收据失败,密码错误 [英] Getting App Store receipt for sandbox user fails with incorrect password message

查看:84
本文介绍了获取沙箱用户的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.apple.commerce.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收据失败,密码错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆