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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T04:15:29+00:00 2026-06-02T04:15:29+00:00

I am building backend and frontend code for my iOS application. The frontend code

  • 0

I am building backend and frontend code for my iOS application. The frontend code will be build for iPhone and then iPad later. But the backend code is going to be the same. My few developers are working on backend and some on frontend. Backend, application uses CoreData. I was thinking to create backend code as static library and have it linked in frontend code. But that seems to be too complicated. Is there any other mechanism for example, Backend project say P1 is build as Empty application and frontend is build as P2. And somehow make sure P1 cannot use any of the classes/files/code from P2 (means P1 does not depend on P2) but P2 can use classes/API etc from P1. I want to enforce that P1 does not (inadvertently) uses any of P2 code to have the dependency separation clean.
Any suggestions?

  • 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-02T04:15:30+00:00Added an answer on June 2, 2026 at 4:15 am

    I think a static library is a good solution. Like you can create a helper class for fetching data from the core-data database. For example:

    + (NSArray *)fetchAllUsers;
    + (User *)fetchUserByName:(NSString *)name;
    

    the front-end developers only know that you can call these methods. The back-end developers are responsible for the working of the method.

    If you need an instantiation, consider a singelton class.

    Edit: (Example for static core-data class)

    + (void)insertNewUserWithName:(NSString *)name
    {
        NSManagedObjectContext *context = [self managedObjectContext];
    
        User *user = [NSEntityDescription insertNewObjectForEntityForName:@"Users" 
                                                     inManagedObjectContext:context];
    
        [user setName:name];
    
        NSError *error;
        if (![context save:&error]) 
        {
            NSLog(@"Whoops, couldn't save: %@", [error localizedDescription]);
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm building an application with a Silverlight frontend that communicates with a backend service
I am building the backend for an application that will work with the TFS
I'm building an iPhone application that talks to a Ruby on Rails backend. The
I am building a website in PHP & mySQL. It has frontend and backend
I am building a silverlight application using MVVM pattern but I don't understand what
I'm building an application that communicates with a django backend using json-rpc. So far
I am working on building an iPhone application that uses an external server to
I'm building an Ext.js application, and I'm planning on using rails for the backend.
I'm building a large scale web application. It will grow in the future so
I am building a web application with a back and front end, the backend

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.