projectTeam function
The DEVELOPMENT_TEAM the project's Runner target names, if any.
Implementation
String? projectTeam(String projectDir) {
final pbx = File('$projectDir/ios/Runner.xcodeproj/project.pbxproj');
if (!pbx.existsSync()) return null;
return RegExp(r'DEVELOPMENT_TEAM = ([A-Z0-9]{10});').firstMatch(pbx.readAsStringSync())?.group(1);
}