“没有可见的@interface for'NSData'声明了选择器'base64EncodedString'错误在MKStoreKit [英] "No visible @interface for 'NSData' declares the selector 'base64EncodedString" error in MKStoreKit

查看:150
本文介绍了“没有可见的@interface for'NSData'声明了选择器'base64EncodedString'错误在MKStoreKit的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图在我的应用程序中将我的MKStoreKit升级到4.0版本,以便我可以在应用程序中包含恢复在应用程序购买功能。苹果想拒绝我的应用程序,由于这个缺少的功能。我已经能够解决所有我的ARC问题,到目前为止,但我被卡住了没有可见的@interface为'NSData'声明选择器'base64EncodedString错误。从我可以告诉,这个错误与需要服务器功能,让审阅者运行应用程序内购买,而不实际购买。我对这个功能不感兴趣,并希望知道如何绕过它。我已经无法找到如何做到这一点。

I'm trying to upgrade my MKStoreKit to version 4.0 in my app so I can incorporate the "restore in app purchase" feature into my app. Apple wants to reject my app due to this missing feature. I've been able to solve all of my "ARC" issues so far but I'm stuck with the "No visible @interface for 'NSData' declares the selector 'base64EncodedString" error. From what I can tell, this error is related to the server functionality required to let reviewers run your in app purchase without actually purchasing it. I'm uninterested in this feature and would love to know how to bypass it. I've been unable to find out how to do this. Does anyone know how I can disable this?

推荐答案

p>看起来你在某个地方使用 base64EncodedString 方法,但是你忘记了包含一个标题类型声明它。如果您使用 iOS的热门base-64编码库,标题名称为NSData + Base64.h

It looks like you are using base64EncodedString method somewhere, but you have forgotten to include a header with the category declaring it. If you are using a popular base-64 encoding library for iOS, the header name is "NSData+Base64.h".

这篇关于“没有可见的@interface for'NSData'声明了选择器'base64EncodedString'错误在MKStoreKit的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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