I am wondering how Google Calendar is able to maintain a space in it's display name on iOS. While my app cannot.
The issue I am about to describe below only occurs if the app is archived and uploaded to testflight and installed on a physical device via the Testflight app
I am trying to call my app Toronto Ponic with a single white space character.
Here is what I've tried so far:
Product name is "Toronto Ponic" i.e CFBundleName
Bundle display name is "Toronto Ponic" CFBundleDisplayName
I've tried to add Toronto Ponic for both CFBundleName and CFBundleDisplayName
I've tried to add Toronto Ponic for both CFBundleName and CFBundleDisplayName
I've tried to build my app in UIKit with Legacy build system + steps 1, 2, 3 & 4 mentioned above.
Nothing works. This issue occurs on every version of iOS 14+ and every recent version of Xcode 13.2.1 -> 13.3.1
The documentation says 30 characters max. It says nothing about stripping spaces from names with > 12 characters.
Any ideas?
Related
I'd like to switch app names (bundle display name) via build config. So that way if I build by "dev" scheme I get an app on my home screen that is called "App Dev" and when I build my "stage" scheme I get an app called "App Stage" and so on.
So up until now this worked really good. I have a custom build setting entry in my project called APP_DISPLAY_NAME and I use that variable in my Info.plist to set the CFBundleDisplayName with $(APP_DISPLAY_NAME).
Now the app should be renamed to "My App". Two words, separated by space and for some reason Xcode drops the spaces. The app now get's called "MyApp", even though the value in the build settings contains a space.
I have tried adding , , \U00A0 and funnily enough all these characters end up in the app name. I end up with "My App"... apparently the only character that doesn't work is space.
So how do I get my space back? Ideally without switching out the whole Info.plist for each build config.
OK, very strange but the answer is simple. The app name was simply just a tiny bit too long so iOS just decided to throw away the spaces...
So on iPhone SE and 6/7/8 the name just got changed from "My Appname Dev" to "MyAppNam...". On the XR for example it just works as it should.
Strange that Apple just drops the spaces.
When I give Bundle display name with space as "my app display name", I get the app name as ("myappdisplay..."). This happens only on the iOS 11 , in iOS 10 and below(<) it is showing properly as ("my app displa...") .
I tried to override name "CFBundleDisplayName" in my Info.Plist with unicode character ,working fine at iOS 11 but it is showing double space in iOS 9 and 10.
Another question is this a feature or a bug ? If it is feature , Can you provide me apple official link.
Open info.plist as Source code(right click, open as...)
Find CFBundleDisplayName
Replace normal space with unicode
works only when typed in *.plist. Can't be inserted in Display name in Xcode project settings;
From: Bundle display name missing space characters
Developer apple: https://forums.developer.apple.com/thread/77832
You could check other answers for this post, they explain the reason.
I have two targets in my Project.
BINS LIVE and BINS DEMO
I've set "Bundle display name" and "Bundle name" inside Bins Demo-Info.plist to "Bins Demo"
Also I set "Product name" in Packaging section of the Build Settings to "Bins Demo"
In BINS LIVE target I made similar changed but instead "Bins Demo" I have set only "Bins".
What I tried so far:
Restart app from xCode. The name on the iOS device remain "BINS"
Restart xCode, clear the build directory. The name stays "BINS" on iOS device.
I created special entry with APP id with name (Bins Demo), separate bundle identifier and provisioning. Set new provisioning profile in xCode and rebuild. Still the same name "BINS".
The funny thing is that project is named Bins but not BINS.
How can I change name of the application under app icon in iOS device? I'm working on xCode 7 and iPhone 6 with iOS 9 onboard.
Try reseting the simulator, with the simulator open click on:
Simulator --> Reset Content and Settings..
Hope this helps.
It was problem with localization. I removed InfoPlist.strings file and now changes in targets seems to work. I spend 3 hours on that shit :)
I have developed an iOS app in FireMonkey XE5 (Update 2) and am deploying this on an actual device. Is it possible to have the app name as two words with a space in between eg. "My App"
One cannot include spaces in the project name in Delphi.
I cannot see any options to set this, and in the Deployment options I have changed the "Remote Name" of my project output file, but that does not work.
The name that appears under the icon on the IOS screen is in:
Project - Options - Version Info - CFBundleDisplayName.
You can change that to anything you want.
From iOS 11 - iOS system will delete simple spaces from a CFBundleDisplayName name.
So insert Unicode Character 'FIGURE SPACE'. Press Alt + 2007 - this will create this char: ╫ . Now recompile project - and you will see space in iOS project.
E.g.: My╫Project
I was following one of Ray Wenderlich's tutorials on localization but I can't seem to get it working.
I've set my project up for localization in English and French and I have a locaziable.strings file for each:
The French file has the correct (well as far as Google translate goes) French versions of my string:
I'm setting the strings by calling the correct key from the localizable.strings file:
NSString* strTitle = [NSString stringWithFormat:NSLocalizedString(#"Title", Nil)];
And I have the simulator set to French (BTW: Whenever I do a language change the simulator crashes).
But it is not pulling from the correct localizable.strings file. It's still displaying in English:
Am I doing something wrong?
If you are using xcode 6.1.1 and iOS sdk 8.1,try this workaround.
It seems localization does not work with xCode 6.1 and 8.1 simulator.
Workaround:
Go to "edit schemes" >> "Run" (side bar) >> "Options" tab >> "Application Language"
Select the language you wish to run the app on the simulator.
I got this workaround from Workaround by natanavra
Thanks to him.
However I read on developer forum,that it is working in 6.2 beta version of Xcode. Hope it do.
Maybe you have run the app at some time where the file Localizable.strings already existed but has not been localized yet. If this is the case, this unlocalized file still resides in the resources folder in the application bundle in the simulator (when you build an run a new version of your app in the simulator or in the device, unused files will not be deleted). This can lead to problems.
Try to delete the app completely from the simulator and build an run again.
I have experienced similar issues (IB localization in my case) on device. So general answer would be
Device - Uninstall app and clean project by Shift+CMD+K
Simulator - Go iOS simulator > Reset Content and Settings and clean project by Shift+CMD+K
These problems are really annoying. Along with poor ability to update localized strings is localization one of the biggest drawback of iOS development.
Another problem that could cause localization not work is the encoding of the strings file. Localizable.strings's encoding must be UTF-16. The default encoding of text file in xcode is UTF-8, that cause me spending a whole day to check why the localization not work.
In Xcode 6.0 and later, Localization not work by changing language in Simulator not working.
You have to edit scheme before running your application.
Go to Edit Scheme -> Run -> Options, change language here.
Now, Run Your Application. It will Work.
For more details, check this answer : Changing language on iOS 8.1 simulator does not work
My problem for this was an incorrectly encoded character in the localization file.