I want to define my app name in somewhere and referenced from info.plist. In Xcode, I can define this in Build Settings/User-Defined, How can I do this in Defold?
The app name is the same as Project->Title
in game.project.
You can also use a custom Info.plist. Copy from /builtins/manifests/ios/info.plist
into your project, make the changes you want and specify in iOS->Info.plist
the location to your modified file.
I know this, and I copy a info.plist from Bob, and specify in game.project.
My app name will turn up several times in info.plist, so I want to define it somewhere, not writing the app name in info.plist several times.
I’m not sure I follow, either you specify the app name in Project->Title as @britzl explained, or if you use a custom Info.plist it should just be a quick search-and-replace in your preferred text-editor to define you app name. Or are you looking for a specific tool that manages Info.plist files?
In Android I can define strings.xml in res folder in one native extension, and referenced in AndroidManifest.xml. So I wonder ios can do or not.
My app name contains Chinese, If I set the project title to Chinese, it will cause the output folder wrong when bundling

No, I believe it’s only the project title from game.project that would get injected into info.plist in all places where you find {{project.title}}
. We do not have support for injecting other values I’m afraid.
I found that setting the project title to Chinese will cause the output folder wrong when bundling android, But have no problem with ios bundles.
I use windows 7 to bundle android and macos to bundle ios
We did fix one bundling issue in the last release (specifically around exe name) but there might be other problems too. Can you tell me a bit more about the problem you mention above?
I use windows 7 to bundle android. And I set project title to one that contains Chinese, as the following:
When bundle finished.The output folder wrong:
Yes, we use the project title for the output .apk folder
Perhaps if you use a custom Info.plist and do this
- Set “Project Title” to: “somebundlename”
- In
Info.plist
set:
<key>CFBundleDisplayName</key>
<string>My Nice App Name</string>
<key>CFBundleExecutable</key>
<string>{{exe-name}}</string>
Is the .apk working?
Yes.It does work.Just the .apk file name and the folder wrong
Ok, I thought the apk didn’t work. So not really a major issue then?
Yes, the apk file bundled by defold can work in android mobile phone.So this issue isn’t so important.