使用Fastlane重命名移动项目吗?

时间:2018-08-22 10:10:26

标签: android ios android-studio fastlane xcode-project

我有一个用例,我需要使用特定的程序包名称(Android)或捆绑包标识符(iOS)“生成”移动应用程序。

因为这应该能够在所有操作系统(macOS,Windows,Linux)上运行,只需使用例如Xcode命令行工具不是一个选择。所以我虽然要使用fastlane。

我曾经使用Android Studio和Xcode创建模板项目,然后将结果作为“模板”签入版本控制。

如何使用 fastlane 重命名这些iOS和Android项目?

1 个答案:

答案 0 :(得分:3)

Android

I have an Android plugin that renames package names and moves around the directory structure to "work" (but this might not be the best/cleanest solution) - https://github.com/joshdholtz/fastlane-plugin-rename_android_package

iOS

For iOS, you can simply change the bundle identifier in the Info.plist file. This is all that is really needed to make the app new/unique. You can use the update_app_identifier action that fastlane provides.
Then you will have to create this new app in the iOS Developer Portal and create new provisioning profiles (all of which can be done with fastlane actions produce and match/sigh).