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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T23:19:04+00:00 2026-06-09T23:19:04+00:00

What is the best approach to handle syncing when the user can choose to

  • 0

What is the best approach to handle syncing when the user can choose to enable or disable syncing whenever he wants?

Specifically I am currently having the problem that Simperium crashes after its instance have been deallocated. Consider the following scenario:

  1. Create database and insert some objects
  2. Create Simperium instance, sign in and sync all offline created objects
  3. Sign out (meaning releases the Simperium instance)
  4. Create some more objects

App now crashes with:

-[__NSCFString objectsShouldSync]: unrecognized selector sent to instance

where __NSCFString is some former object that already got released

I am using the current master branch.

  • 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-09T23:19:05+00:00Added an answer on June 9, 2026 at 11:19 pm

    This is a common request, and the “iosupdate” branch has some changes that will help. You can see this GitHub issue for some guidance. To summarize (quoting the author of this question):

    When initializing the simperium instance set the following properties:

    self.simperium.authenticationOptional = YES;
    

    This make a cancel button appear.

    self.simperium.authenticationEnabled = NO;
    

    This prevents the authentication dialog from popping up.

    self.simperium.loginViewControllerClass = [LoginViewController class];
    This drops in a custom subclass of SPLoginViewController to overwrite the cancel: message, otherwise you would not get feedback that the user canceled the dialog.

    When the user hits a sign “Sign in” button, I set

    self.simperium.authenticationEnabled = YES;
    

    which causes the login controller to show up.

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

Sidebar

Related Questions

Can someone explain the best way to handle this approach. I am using TinyMCE
I can't seem to figure out the best way to handle this. When user
What is the best approach to handle authentication on a bunch of Javascript actions
i'm looking for a best approach to the following problem. I have an array
Is there a best approach to handle no data with JqPlot? Assuming that I'm
Is this the best approach to handle both cases ? public static class Program
I want to know the best approach to handle the dialog boxes to be
What's the best approach to update an /etc/rc.conf configuration file programmatically ? Specifically, on
What's the best approach to import multiple lines from a text_area in a form?
What is the best approach for mocking out a static class in c#. For

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.