views:

345

answers:

1

Hi all,

I am having problem with the XCode->Project->Edit Active Target "projectname" setting

I am trying to set the "Product Name" as "My App" , but while running the app in the device. I am getting an error as Illegal Character present in Product Name.

I even tried with - and _ (My-App , My_App) but none of these works.

However it works fine in the simulator.

What may be the reason?

Thanks.

+3  A: 

By default Xcode used the Product Name as part of the "Bundle identifier". "Bundle identifier" must conform to URL rules and be composed of only characters allowed in URLs. The legal characters are letters, numbers, "-", ".". In short remove the space in the "Bundle identifier": "MyApp".

zaph