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

  • SEARCH
  • Home
  • 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 8865353
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T16:29:07+00:00 2026-06-14T16:29:07+00:00

I have an app that has consumable IAP. It’s an IAP that users consumes

  • 0

I have an app that has consumable IAP. It’s an IAP that users consumes it over the time, something like the IAP has 100 points, while users may use 10 today and 50 tomorrow, so the user would have 100-10-50=40 points left for later use. The app gives out initial points of 100 to let users to try it out. I used UserDefaults to record that and it works fine, EXCEPT when user delete the app — when I tested two methods: 1, delete and reinstall, I got the initial 100 points again; 2, I reset iPhone language and got the initial 100 points again. This means users wouldn’t go thru too much trouble to get the initial 100 points, which would basically stop my IAP from selling.

I currently don’t have an external server to record/verify IAP. I don’t want a bullet-proof mechanism to prevent hack. All I want is something that can survive delete/reinstall. After reading stackoverflow pages and I learned that 1, keychain survive deletion/reinstall, 2, it’s usually used for password, 3, some developers use it to store IAP flags (bought the IAP or not), but 4, I don’t know if it’s okay to store a NSNumber (the 40 points left over in the example above). I wonder if keychain would be suitable for my case.

If keychain is okay to store NSNumber, anyone has some code to share? Thanks.

Updates with Lockbox:
why I got Apple Mach-O-Linker Error: Objc-class-ref in ViewController.o? Something related to ARC? I saw Granoff (Lockbox developer) said ARC has been taken care of automatically. What I did was add Lockbox.h and .m file into my project and import to my app. Then app doesn’t run because of the error. However when I tried Lockbox provided sample project, it works. Any insight? Thanks.

Lockbox error I got:

    Undefined symbols for architecture i386:
    "_OBJC_CLASS_$_Lockbox", referenced from:
    objc-class-ref in ViewController.o
    ld: symbol(s) not found for architecture i386
    clang: error: linker command failed with exit code 1 (use -v to see invocation)

I added “Security” framework.
After adding security framework, I copied both Lockbox.h and .m files into my app. In ViewController.m file where I plan to use lockbox methods, I added “#import “Lockbox.h””. I could run at this step, without error.
I then added the following line:
if ([Lockbox stringForKey:mylockboxstring] != nil) {}
I got error shown above.

  • 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-14T16:29:08+00:00Added an answer on June 14, 2026 at 4:29 pm

    Yes.

    Have a look at http://github.com/granoff/Lockbox. It’s a class exactly for this, although you may have to either extend it to store NSNumbers or use one of the currently supported data types, like an NSString.

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

Sidebar

Related Questions

I have an app that has Basecamp-style subdomains, that is, I have Projects, Users,
I have an app that has a ListBox of ListBoxes. I would like to
I have an app that has an about page. I would really like to
I have an app that has some consumable items, after they are used, user
I have an app that has to send bulk email to selected users. I
Have an app that has listings - think classified ads - and each listing
I have an app that has different names for different languages. How do I
I have an app that has a centre view with two views off to
I have an app that has a tabbar at the bottom. When I select
I have an app that has a TableView, NavigationView and TabBar running together. There

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.