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 7446295
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T12:16:47+00:00 2026-05-29T12:16:47+00:00

According Mac App Store rules 2.30: Program may write only to allowed locations. My

  • 0

According Mac App Store rules 2.30:
“Program may write only to allowed locations.”

My app (com.SomeApp) contains bundled app with own ID (com.SomeHelper).
This helper app, unfortunately, can write own preferences (~/Library/Preferences/com.SomeHelper.plist) and cache files (~/Library/Caches/com.SomeHelper).
Reviewers rejected entire app! There is no way to discuss about this stupid rule.
Developer can register only one ID for MAS app in iTC, and I can’t use the same ID for bundled apps (to prevent conflicts and pass iTC meta-information validation).
Cache file generated by network services (on URL requests).

How to solve this puzzle?
Is there a way to disable plist and cache at all?
Or maybe there is a way to change location for preferences and cache file?
Is there a better solution?

  • 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-05-29T12:16:49+00:00Added an answer on May 29, 2026 at 12:16 pm

    Here is my final solution (partially in pseudocode, sorry):

    // in the helper’s main.m:

    @implementation NSUserDefaults (Forwarder)
    
    -(void)setObject:(id)value forKey:(NSString *)defaultName
    {
    [[MainAppServer sharedPrefsServer]/* some IPC to parent process*/ setObject:value forKey:defaultName];// I still use distributed objects available before sandboxing rules, next we can use XPC, I hope…
    }
    
    @end
    
    
    int main(int argc,char* argv[])
    {
    …
    
    NSAutoreleasePool * arp = [NSAutoreleasePool new];
    [NSURLCache setSharedURLCache:[[[NSURLCache alloc] initWithMemoryCapacity:0 diskCapacity:0 diskPath:@"/dev/null"] autorelease]];
    [[NSUserDefaults standardUserDefaults] addSuiteNamed:@"your.main.app.plist-domain.here"];
    [arp drain];
    …
    return NSApplicationMain(argc,  (const char **) argv);
    }
    

    Summary:

    1. We disabled cache
    2. We made user defaults read via suite, and write via forwarding by some IPC way…

    I checked – no cache and plist files are producing now.
    The puzzle is solved!

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

Sidebar

Related Questions

According to http://docs.python.org/dev/library/plistlib.html , plistlib is available to non-Mac platforms only since 2.6, but
I have a question regarding the Mac App Store. I am planning to release
According to Cocoa Programming for Mac OS X, 3rd Edition, on page 202 (chapter
According to Cocoa Programming for Mac OS X, 3rd Edition , on page 245
I want to create a Java application bundle for Mac without using Mac. According
Actually I have read about that I can write Objective-C app on Linux (using
I have MAC OS 10.6 (Snow Leopard) and according to Apple's guide on HTTP
According to the Mac OS X ABI Mach-O File Format Reference , __DATA,__const holds
According to the Mac Dev Center docs, you should be able to set the
I'm looking to skin my web app according to different themes. So I guess

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.