打开macos/Runner/Configs/AppInfo.xcconfig文件,修改内容如下:

  • PRODUCT_NAME:应用名称
  • PRODUCT_BUNDLE_IDENTIFIER:应用包名
// Application-level settings for the Runner target.
//
// This may be replaced with something auto-generated from metadata (e.g., pubspec.yaml) in the
// future. If not, the values below would default to using the project name when this becomes a
// 'flutter create' template.

// The application's name. By default this is also the title of the Flutter window.
PRODUCT_NAME = 软件名称

// The application's bundle identifier
PRODUCT_BUNDLE_IDENTIFIER = com.swx.video

// The copyright displayed in application information
PRODUCT_COPYRIGHT = Copyright © 2024 com.swx.video. All rights reserved.