On Sep 2, 2015, at 15:38 , David Durkee <da...@dwdurkee.com> wrote:
> 
> I just tried it and a couple of things went wrong. The name in the build 
> settings was what appeared in the about box (when I ran in debug). And the 
> program (the one that I archived and then exported) crashed on launch, 
> apparently because the bundle identifier doesn’t match what it thinks is the 
> product name. 

I’m not sure what’s in the about box is during testing is significant. I 
suspect it always shows the localized app name, so it should be fine eventually.

The problem with your bundle ID is an error in your build settings or 
info.plist or something, but it’s hard to say what. By default, Xcode used to 
create targets where the bundle ID depends partially on a build setting (the 
product name, I think, something like that), so that changing names changed the 
bundle ID. This could be a problem if you’ve committed *other* things (such as 
push notifications, iTunes Connect metadata) to the original bundle ID.

But, Xcode has recently changed in this area, I believe, and there is now an 
explicit bundle ID build setting. Now, the info.plist bundle ID is a 
settings-variable reference to the bundle ID, which perhaps itself defaults to 
the older compound value. (Sorry, I’m hand-waving a bit here, because I don’t 
know exactly how it works, since this depends on the ever-changing world of 
default Xcode settings. What you’ve got may depend on which version of Xcode 
you originally created the targets with.)

The point is, having previously created targets according to some convention, 
you may have to do a bit of sleuthing to figure out what else to change when 
you change product names, module names, target names, bundle names, etc, etc.

My guess is that your sandboxed target has an entitlements file which has a 
container ID that was originally set from the bundle ID before you tried 
renaming things. Either you need to edit the entitlements file to match your 
current settings, or there really is no bundle ID in your built info.plist.



_______________________________________________

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