renameIOSIds function
Renames the iOS bundle identifier in the Xcode project file.
This function updates the PRODUCT_BUNDLE_IDENTIFIER in the
ios/Runner.xcodeproj/project.pbxproj file to match the provided config.iosId.
config - The configuration containing the new iOS bundle ID.
Implementation
void renameIOSIds(RenameConfig config) {
replaceInFile(
'ios/Runner.xcodeproj/project.pbxproj',
RegExp(r'PRODUCT_BUNDLE_IDENTIFIER = [^;]+;'),
'PRODUCT_BUNDLE_IDENTIFIER = ${config.iosId};',
);
Logger.success('iOS bundleId → ${config.iosId}');
}