简体   繁体   English

如何更改 iOS 移植的 macOS Catalyst 应用名称?

[英]How to change iOS ported macOS Catalyst app name?

After porting the app over to macOS using Catalyst, the window now has the correct app name;使用 Catalyst 将应用程序移植到 macOS 后,窗口现在具有正确的应用程序名称; however, app names for the actual app in the Applications folder, the menu bar, and Dock is the Xcode project Target name.但是,应用程序文件夹、菜单栏和 Dock 中实际应用程序的应用程序名称是 Xcode 项目目标名称。

How to change it to the correct product name without changing the project target name?如何在不更改项目目标名称的情况下将其更改为正确的产品名称?

In your project's Build Settings, change Product Name to whatever custom string you want it to be.在项目的构建设置中,将Product Name更改为您想要的任何自定义字符串。

There may be other settings that use $(PRODUCT_NAME) and you don't want them to change;可能还有其他使用$(PRODUCT_NAME)的设置,您不希望它们更改; if so, change them to use $(TARGET_NAME) instead.如果是这样,请将它们更改为使用$(TARGET_NAME)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM