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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T18:47:55+00:00 2026-06-03T18:47:55+00:00

I recently found a problem in my Compile Sources Build Phase, it was compiling

  • 0

I recently found a problem in my Compile Sources Build Phase, it was compiling MyDB.xcdatamodeld and MyDB.xcdatamodel into the build (probably left over from some migration between Xcode versions or something). This wasn’t a problem until I recently started using a library that uses:

[NSManagedObjectModel mergedModelFromBundles:nil]

Which goes and finds both of the MyDB files and throws an error that it can’t merge duplicate entities, similar to this issue Core Data: Error, "Can't Merge Models With Two Different Entities Named 'foo' ". The problem w/their solution though is that it involves deleting the app 🙂

I fixed the problem in my Build Phase (I removed the MyDB.xcdatamodel line) and if I do a fresh install of the app it works fine, but if I install the app over an existing install (ie an update) then I still get the same DB error about duplicate entities. I imagine this is because the MyDB.xcdatamodel file is still hanging out in the user’s bundle.

So my question is: how can I remove this file from existing install’s bundles?

  • 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-03T18:47:57+00:00Added an answer on June 3, 2026 at 6:47 pm

    I believe old files get left behind only when you install an application during development through Xcode. Try testing an upgrade done through ad hoc distribution instead, you shouldn’t see this problem.

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

Sidebar

Related Questions

recently found an article in http://hashtwo.com/blog/integrating-a-file-browser-into-ckeditor-cakephp to integrate a file browser into ckeditor (file
I recently found a problem, which can add to technology of calender A user
I recently found myself using the same pattern over and over in my code.
I am using threads in a python program and recently found a problem where
I've recently found the need to check at compile-time whether either: a) a certain
Recently I've found one problem which I can't solve out. I've made shopping cart
I recently found a 6 part article series on logging in MVC over at
I recently found myself writing a piece of code that executed a Core Data
I recently found an article online that told me about this: RewriteRule ^mock-up/([^/]+)/([^/]+) /mock-up/index.php?page=$1&section=$2
I recently found out about C# extension methods and wrote this one: /// <summary>

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.