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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T15:49:57+00:00 2026-06-02T15:49:57+00:00

I have an app that has been running fine on the iPhone simulator for

  • 0

I have an app that has been running fine on the iPhone simulator for some time. Recently, I decided I wanted to re-use the data model and related classes in another project – so I dragged them from this project window to the other then told Xcode not to copy, just to make references. At first this didn’t work so I jumped through a number of hoops to try to fix it (I may be asking more about that in another post). After all this, I re-compiled and tried to run the original app — and it’s not working any more. On further investigation, I discovered that when I re-compile the original app, I end up with a bundle that contains a .momd package but it contains only a Versioninfo.plist file – no .mom file, no .omo file like I’m expecting to see. I don’t recall making any changes to the original app. I don’t get any warnings. I just get an incomplete .momd package (and, not surprisingly, my app now crashes).

What’s going on here?

BTW, the app now crashes with this message:
Terminating app due to uncaught exception ‘NSInvalidArgumentException’, reason: ‘* -[__NSArrayM insertObject:atIndex:]: object cannot be nil’

Which I get when executing this line of code:

self.productRegistry = [[UIManagedDocument alloc] initWithFileURL:self.productRegistryURL];
  • 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-02T15:49:59+00:00Added an answer on June 2, 2026 at 3:49 pm

    I figured this out by looking more closely at the file locations in the project directory using Finder. In the Xcode window, everything looks normal but in the actual project directory I found that the .datamodeld package had ended up at the top level of the project directory — at the same level as the project package itself. Xcode apparently did not like this but unfortunately it did not complain — it just created a partial build output. Once I moved the .datamodeld package into the same folder as the rest of the project’s code, everything worked just fine.

    This would appear to be just a quirk. I would expect that Xcode would either see that all is well and build correctly OR it would see that things weren’t quite as they should be and fail. In this case, it did not build correctly but was silent about it.

    Hope this answer helps someone else someday.

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

Sidebar

Related Questions

My app has been running fine on iPhone simulator. I have hit an issue
I have a 3.1 xcode project that has been running my app just fine
I have a Rails app that has been running fine for months. The other
I have an application that has been running fine since its launch over a
I have an app that has a TableView, NavigationView and TabBar running together. There
I have an app that has some configuration settings stored in SharedPreference. Now I
I have an existing iPhone project that has been tested, submitted, and approved, compiled
I have an application that runs in fullscreen mode and has been working fine.
We have a WinForms app that runs fine on x86, but has many third-party
I have an ASP/C#(4.0) app that was been running on my machine for several

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.