On Nov 14, 2013, at 7:09 AM, Martin Hewitson <martin.hewit...@aei.mpg.de> wrote:

> Continuing the discussion with only myself, so far….
> 
> I had the idea to make a trivial test app which just has a PDFView and a 
> “Load” button. 
> 
> So I created the app on 10.9 with Xcode 5.0.2. It’s just a vanilla NSDocument 
> app with a PDFView and a button. Compiles and runs fine on 10.9.
> 
> So then I thought I will change the Deployment Target to 10.6.8, the Base SDK 
> to 10.8, and I switched off auto layout for both the document nib and the 
> main menu nib, and also set them to build for 10.6 and later.
> 
> Archived the app and distributed as just an unsigned application.
> 
> Copied to the 10.6.8 test machine, and the app won’t run. I get the console 
> error:
> 
> "unable to load nib file: MainMenu, exiting”
> 
> I then dug through the build settings of the main app that’s giving me these 
> PDFView problems, but I don’t see anything different there. Clearly I’m 
> missing something, can someone spot what it is?

For the vanilla NSDocument app (created on 10.9 with Xcode 5.0.2), did you 
remove the Base localization of your xib files (MainMenu and document)? If I 
build without doing so, I get warnings of the form:

"Internationalization of <xib file path> is not available when compiling for 
targets before Mac OS X 10.8”

Trying to run the built application on 10.6.8 produces the results you reported 
above. Once I removed the Base localization of each xib file, the built 
application runs without problem on 10.6.8.




_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to