使用StoreKit的未记录的NSURLErrorDomain错误代码(

编程入门 行业动态 更新时间:2024-10-18 14:18:58
本文介绍了使用StoreKit的未记录的NSURLErrorDomain错误代码(-1001,-1003和-1004)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我正在编写与StoreKit相关的代码,当我尝试将购买添加到队列时,我得到一些相当麻烦的错误代码。

I'm writing StoreKit-related code, and I'm getting some rather troubling error codes when I try to add a purchase to the queue.

到目前为止,我遇到错误代码-1003和-1004,我在互联网上找不到关于这些代码的任何内容。

So far, I've experienced error codes -1003 and -1004 and I can't find anything about those codes on the internet.

运行产品请求会返回有效的产品编号,所以我不知道为什么要调用 [[SKPaymentQueue defaultQueue] addPayment:aPayment]; 会因为这个未记录的问题而失败。

Running a product request returns valid product numbers, so I don't know why calls to [[SKPaymentQueue defaultQueue] addPayment:aPayment]; would fail with this undocumented problem.

相同的代码也可以在一台设备上没有错误但在另一台设备上没有错误。

The same code also works without the errors on one device but not on another.

我所遇到的问题尚未得到解答:

The questions I have are, as of yet, unanswered:

这些代码是什么意思? 如何缓解此问题? 为什么他们发生了购买尝试而不是产品请求?

What do these codes mean? How can I mitigate this problem? Why are they happening for purchase attempts and not for product requests?

我已完成的故障排除包括重新生成签名证书和配置文件,更改WiFi网络,清理,构建和重新安装所有相关的软件和组件,这些东西都不能单独或一起帮助解决问题。

Troubleshooting I've done includes regenerating a signing certificate and provisioning profile, changing WiFi networks, cleaning and building and reinstalling all related software and components, and none of these things individually or together have helped fix the problem.

编辑:

在Apple开发论坛上发现了关于此问题的讨论,但Apple没有人回复: devforums.apple/thread/107121?tstart=75 (需要查看的iOS开发者帐户)

Found a discussion about this on the Apple dev forums, but no one from Apple has responded: devforums.apple/thread/107121?tstart=75 (iOS developer account required to view)

编辑:

我今天遇到错误代码-1001,添加到这个无法解释和间歇性问题的列表中。仍然没有Apple的责任,我可以找到。

I was hit with error code -1001 today, to add to this list of inexplicable and intermittent problems. Still no accountability from Apple, that I can find.

编辑:

我怀疑这些错误代码是随机生成的,实际上只表示沙盒已关闭。其他人遇到此问题?

I have a suspicion that these error codes are randomly generated and really only indicate that the Sandbox is down. Anyone else experience this problem?

推荐答案

所有错误代码都在文档上的CFNetwork错误代码参考中( link )

All error codes are on "CFNetwork Errors Codes References" on the documentation (link)

CFURL的小提取和CFURLConnection错误:

A small extraction for CFURL and CFURLConnection Errors:

kCFURLErrorUnknown = -998, kCFURLErrorCancelled = -999, kCFURLErrorBadURL = -1000, kCFURLErrorTimedOut = -1001, kCFURLErrorUnsupportedURL = -1002, kCFURLErrorCannotFindHost = -1003, kCFURLErrorCannotConnectToHost = -1004, kCFURLErrorNetworkConnectionLost = -1005, kCFURLErrorDNSLookupFailed = -1006, kCFURLErrorHTTPTooManyRedirects = -1007, kCFURLErrorResourceUnavailable = -1008, kCFURLErrorNotConnectedToInternet = -1009, kCFURLErrorRedirectToNonExistentLocation = -1010, kCFURLErrorBadServerResponse = -1011, kCFURLErrorUserCancelledAuthentication = -1012, kCFURLErrorUserAuthenticationRequired = -1013, kCFURLErrorZeroByteResource = -1014, kCFURLErrorCannotDecodeRawData = -1015, kCFURLErrorCannotDecodeContentData = -1016, kCFURLErrorCannotParseResponse = -1017, kCFURLErrorInternationalRoamingOff = -1018, kCFURLErrorCallIsActive = -1019, kCFURLErrorDataNotAllowed = -1020, kCFURLErrorRequestBodyStreamExhausted = -1021, kCFURLErrorFileDoesNotExist = -1100, kCFURLErrorFileIsDirectory = -1101, kCFURLErrorNoPermissionsToReadFile = -1102, kCFURLErrorDataLengthExceedsMaximum = -1103,

更多推荐

使用StoreKit的未记录的NSURLErrorDomain错误代码(

本文发布于:2023-11-26 18:13:20,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1634644.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:未记录   错误代码   StoreKit   NSURLErrorDomain

发布评论

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

>www.elefans.com

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