diff --git a/.gitignore b/.gitignore index 3590938dc..a0897a360 100644 --- a/.gitignore +++ b/.gitignore @@ -156,6 +156,7 @@ assets/images/app_logo.png macos/Runner/Info.plist macos/Runner/DebugProfile.entitlements macos/Runner/Release.entitlements +macos/Runner/Runner.entitlements lib/core/secure_storage.dart macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_16.png diff --git a/macos/Runner/Runner.entitlements b/macos/Runner/RunnerBase.entitlements similarity index 76% rename from macos/Runner/Runner.entitlements rename to macos/Runner/RunnerBase.entitlements index 7a2230dc3..2003d2c2b 100644 --- a/macos/Runner/Runner.entitlements +++ b/macos/Runner/RunnerBase.entitlements @@ -8,5 +8,9 @@ com.apple.security.network.server + keychain-access-groups + + $(AppIdentifierPrefix)${BUNDLE_ID} + diff --git a/scripts/macos/app_config.sh b/scripts/macos/app_config.sh index a526d1be2..d42fc2f6d 100755 --- a/scripts/macos/app_config.sh +++ b/scripts/macos/app_config.sh @@ -22,9 +22,11 @@ cp -rf ./macos/Runner/InfoBase.plist ./macos/Runner/Info.plist # Fill entitlements Bundle ID cp -rf ./macos/Runner/DebugProfileBase.entitlements ./macos/Runner/DebugProfile.entitlements cp -rf ./macos/Runner/ReleaseBase.entitlements ./macos/Runner/Release.entitlements +cp -rf ./macos/Runner/RunnerBase.entitlements ./macos/Runner/Runner.entitlements cp -rf ./macos/Runner/Configs/AppInfoBase.xcconfig ./macos/Runner/Configs/AppInfo.xcconfig sed -i '' "s/\${BUNDLE_ID}/${APP_MACOS_BUNDLE_ID}/g" ./macos/Runner/DebugProfile.entitlements sed -i '' "s/\${BUNDLE_ID}/${APP_MACOS_BUNDLE_ID}/g" ./macos/Runner/Release.entitlements +sed -i '' "s/\${BUNDLE_ID}/${APP_MACOS_BUNDLE_ID}/g" ./macos/Runner/Runner.entitlements sed -i '' "s/\${PRODUCT_NAME}/${APP_MACOS_NAME}/g" ./macos/Runner/Configs/AppInfo.xcconfig sed -i '' "s/\${PRODUCT_BUNDLE_IDENTIFIER}/${APP_MACOS_BUNDLE_ID}/g" ./macos/Runner/Configs/AppInfo.xcconfig CONFIG_ARGS=""