★ TouchArcade needs your help. Click here to support us on Patreon.

Can someone help me with xCode?

08-14-2012, 04:52 PM
Joined: Jun 2012
Posts: 18
Can someone help me with xCode?

So I'm beginning to develop my first iPhone app and need a bit of help.

The first is if I have a Standalone app I've built using storyboard and such, is there a simple way to combine that with a game my friend has built using a Cocos2D template? As in say on one of my View Controllers had a button, could I simply make it so when that button is pressed it loads the game?

Also, I've come across an error which I need help fixing, any advice would be really appreciated, thanks.

Here is the error I get:

GNU gdb 6.3.50-20050815 (Apple version gdb-1708) (Thu Nov  3 21:59:02 UTC 2011)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "x86_64-apple-darwin".Attaching to process 87212.
2012-08-14 14:58:40.389 Aeora[87212:fb03] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Cannot create an NSPersistentStoreCoordinator with a nil model'
*** First throw call stack:
(0x129e052 0x174fd0a 0x1a86d 0x34c7 0x315a 0x2964 0x2e29d6 0x2e38a6 0x2f2743 0x2f31f8 0x2e6aa9 0x1f57fa9 0x12721c5 0x11d7022 0x11d590a 0x11d4db4 0x11d4ccb 0x2e32a7 0x2e4a9b 0x2868 0x27c5)
terminate called throwing an exceptionsharedlibrary apply-load-rules all
Current language:  auto; currently objective-c
08-14-2012, 08:07 PM
Not sure about that error without seeing the code that caused it. Should be fairly straightforward to find. Search your code for NSPersistentStoreCoordinator. Maybe you're doing an [[NSPersistentStoreCoordinator alloc] initWithManagedObjectModel:] without passing in a valid managed object model.