create method
Creates Runner.entitlements with aps-environment set to development.
Does nothing if the file already exists.
Implementation
String create() {
final file = File(_entitlementsPath);
if (file.existsSync()) {
return '⚠️ Runner.entitlements already exists, skipped';
}
try {
file.writeAsStringSync(_content);
return '✅ Created Runner.entitlements';
} catch (e) {
return '❌ Failed to create Runner.entitlements: $e\n'
'Please open an issue: https://github.com/MohsenBahaj/flutter_ios_capabilities_setup/issues';
}
}