“No visible @interface for 'NSData' declares the selector 'base64EncodedString” error in MKStoreKit

后端 未结 2 583
無奈伤痛
無奈伤痛 2021-01-20 03:44

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 t

相关标签:
2条回答
  • 2021-01-20 04:02

    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".

    0 讨论(0)
  • 2021-01-20 04:20

    First add NSData+Base64.h and NSData+Base64.m in your project and in the class where you are getting the error import #import NSData+Base64.h and you will get out of that error.

    0 讨论(0)
提交回复
热议问题