Re: Xcode creates silly Bundle identifier
Re: Xcode creates silly Bundle identifier
- Subject: Re: Xcode creates silly Bundle identifier
- From: Jens Alfke <email@hidden>
- Date: Sun, 03 Aug 2014 23:31:35 -0700
On Aug 3, 2014, at 11:04 PM, Gerriet M. Denkmann < email@hidden> wrote:
Bundle identifier (aka. CFBundleIdentifier) = de.mdenkmann.${PRODUCT_NAME:rfc1034identifier} But the resulting Info.plist contains: Bundle identifier = de.mdenkmann.--------
What’s the target’s Product Name? I’m guessing something in a non-Roman script, or at least not containing any ASCII characters?
rfc1034 seems to mean: "convert everything which an Englishman might not understand into a dash-hyphen”.
RFC 1034 defines domain names, and dates from 1987. Character sets are hard; you should know that since you seem to work with non-Roman languages a lot. ASCII was established pretty early on, but there wasn’t any good standard extension of it until Unicode came out in the ‘90s. So yeah, pretty much all the infrastructure from before then just punts and only supports ASCII.
(Of course subsequent extensions of DNS added support for Unicode. And I have no idea whether Apple’s bundle identifiers support Unicode, but I’d be mildly surprised if they don’t.)
But the real question is: can I set my own Bundle identifier, or would that confuse Xcode?
Sure, just replace the definition with your own. It should be in reverse-DNS form, hopefully corresponding to a domain name that you own. Is this Bundle identifier used in other places than ~/Library/Preferences ?
It’s used all over the place (primarily Launch Services) to identify the app.
—Jens |
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden