Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7977655
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T09:15:54+00:00 2026-06-04T09:15:54+00:00

My Xcode project imported MKStoreKit. And I followed to this. http://blog.mugunthkumar.com/coding/using-mkstorekit-in-your-apps/ But it has

  • 0

My Xcode project imported MKStoreKit.
And I followed to this.
http://blog.mugunthkumar.com/coding/using-mkstorekit-in-your-apps/
But it has many error.

SFHFKeychainUtils.m
,ARC Casting Rules
,Semantic issue
,ARC Restrictions

Total 39 bugs.

I linked StoreKit.framework,Security.framework.

-I write this Initialize code in application didFinishLaunchingWithOptions.
Initialize code is [MKStoreManager sharedManager];

However Bugs appears.
Why?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T09:15:56+00:00Added an answer on June 4, 2026 at 9:15 am

    You need to disable ARC on all of the MKStoreKit files—including JSONKit, SFHFKeychainUtils, and NSData+Base64. Details are in this post

    Disable Automatic Reference Counting for Some Files

    Then comment out all of the the error message lines

    /*
    #if ! __has_feature(objc_arc)
    #error MKStoreKit is ARC only. Either turn on ARC for the project or use -fobjc-arc flag
    #endif
    */
    

    That gets rid of all but one error in this method. But he just forgot to declare it in the .h

    +(id) receiptForKey:(NSString*) key {
    
      NSData *receipt = [MKStoreManager objectForKey:key];
      if(!receipt)
        receipt = [MKStoreManager objectForKey:[NSString stringWithFormat:@"%@-receipt", key]];
    
      return receipt;               
    }
    

    Add this line in your .h

    +(id) objectForKey:(NSString*) key;
    

    The code will now compile. Don’t know if it works, but at least it compiles.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

My Xcode project builds to variations of the same product using two targets. The
A minimal illustrative Xcode project for this is available on github . On my
Now I have a Xcode project which is built for iOS 5, but now
I have a Cocoa project that I recently imported into Xcode 4. I notice
The Xcode project generates Prefix.pch file automatically. When I deleted this file and tried
In my Xcode project I need to rename my ViewController.m in ViewController.mm , but
I had a program that worked fine in Xcode 3 but when I imported
I've imported another programmer's project into Xcode and get the error UIKit/UIKit.h file not
I am using Xcode 4.1, on iOS Simulator 4.3 I have imported the ZXing
I have an XCode project with 2 targets (both are iPhone apps sharing 95%

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.