In preparing my application for the Mac App Store, I've hit a roadblock that I 
can't seem to get past.

Originally, my app was written for 10.5 and up, for both Intel and PPC 
machines. Obviously, for submission it needs to be built for 10.6 and Intel 
only. So I made the required changes to the build settings, changing the Base 
SDK to 10.6 and the deployment target to 10.6, and removing all build 
references to PPC. The compiler stayed at GCC 4.2.

I compiled and noticed some depreciated NSFileManager methods, so I went and 
fixed those. Now when I build and run, before the app finishes launching, I get:

Program received signal:  “EXC_BAD_ACCESS”.

Looking at the stack, I see:

#0      0x902a1a76 in _PFFastEntityRangesByType
#1      0x902e3028 in _PF_ManagedObject_WillChangeValueForKeyIndex
#2      0x902e59d6 in -[NSManagedObject willChangeValueForKey:]
#3      0x927ca985 in -[NSNibOutletConnector establishConnection]
#4      0x927c90df in -[NSIBObjectData nibInstantiateWithOwner:topLevelObjects:]
#5      0x927c71f4 in loadNib
#6      0x927c65ed in +[NSBundle(NSNibLoading) 
_loadNibFile:nameTable:withZone:ownerBundle:]
#7      0x927c64fe in +[NSBundle(NSNibLoading) 
loadNibFile:externalNameTable:withZone:]
#8      0x927c6449 in +[NSBundle(NSNibLoading) loadNibNamed:owner:]
#9      0x927c324d in NSApplicationMain
#10     0x000028dc in main at main.m:13

The fact that #10 was black tells me that it's blowing up in main when the nib 
loads... To track down the problem I tried the following:
- Turn on NSZombies
- Add objc_exception_throw and [NSException raise] to the project breakpoints
- In IB, delete all object connections
- In IB, delete all object bindings
- Delete all objects from the nib (objects, NSArrayControllers, windows, 
menus... everything, one at a time)
- Try different compilers
- Roll back to a previous commit and start over

At this point I'm stumped. Any and all advice would be appreciated.
- Mike

_______________________________________________

Cocoa-dev mailing list ([email protected])

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to