detectIOSSigning function
Implementation
Future<void> detectIOSSigning(String projectPath) async {
final iosDir = Directory(p.join(projectPath, 'ios'));
if (!iosDir.existsSync()) return;
final projectFile =
File(p.join(projectPath, 'ios', 'Runner.xcodeproj', 'project.pbxproj'));
if (!projectFile.existsSync()) return;
final content = projectFile.readAsStringSync();
if (content.contains("CODE_SIGN_STYLE = Manual")) {
print("🔐 Manual iOS signing detected in Xcode project.");
print("👉 CI will respect existing signing configuration.");
} else if (content.contains("CODE_SIGN_STYLE = Automatic")) {
print("🔐 Automatic iOS signing enabled.");
} else {
print("⚠ Could not detect iOS signing style.");
}
}