From 7cfcedaa5c3dcb78c7f99407cdf3057d419f41b7 Mon Sep 17 00:00:00 2001 From: rustdesk Date: Sat, 22 Apr 2023 13:21:06 +0800 Subject: [PATCH] build ipa with given profile: https://jtmuller5.medium.com/flutter-build-an-ipa-90520e813a96 --- flutter/ios/Runner.xcodeproj/project.pbxproj | 6 +++--- flutter/ios/Runner/Info.plist | 4 +++- flutter/ios/exportOptions.plist | 15 +++++++++++++++ flutter/ios_arm64.sh | 2 +- flutter/ios_x64.sh | 2 +- 5 files changed, 23 insertions(+), 6 deletions(-) create mode 100644 flutter/ios/exportOptions.plist diff --git a/flutter/ios/Runner.xcodeproj/project.pbxproj b/flutter/ios/Runner.xcodeproj/project.pbxproj index 022c186c7..a3bc7d43d 100644 --- a/flutter/ios/Runner.xcodeproj/project.pbxproj +++ b/flutter/ios/Runner.xcodeproj/project.pbxproj @@ -363,7 +363,7 @@ CLANG_ENABLE_MODULES = YES; CODE_SIGN_ENTITLEMENTS = Runner/Runner.entitlements; CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; - DEVELOPMENT_TEAM = ""; + DEVELOPMENT_TEAM = HZF9JMC8YN; ENABLE_BITCODE = NO; INFOPLIST_FILE = Runner/Info.plist; LD_RUNPATH_SEARCH_PATHS = ( @@ -560,7 +560,7 @@ CLANG_ENABLE_MODULES = YES; CODE_SIGN_ENTITLEMENTS = Runner/Runner.entitlements; CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; - DEVELOPMENT_TEAM = ""; + DEVELOPMENT_TEAM = HZF9JMC8YN; ENABLE_BITCODE = NO; INFOPLIST_FILE = Runner/Info.plist; LD_RUNPATH_SEARCH_PATHS = ( @@ -649,7 +649,7 @@ CLANG_ENABLE_MODULES = YES; CODE_SIGN_ENTITLEMENTS = Runner/Runner.entitlements; CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; - DEVELOPMENT_TEAM = ""; + DEVELOPMENT_TEAM = HZF9JMC8YN; ENABLE_BITCODE = NO; INFOPLIST_FILE = Runner/Info.plist; LD_RUNPATH_SEARCH_PATHS = ( diff --git a/flutter/ios/Runner/Info.plist b/flutter/ios/Runner/Info.plist index db6f74b8a..892561ae7 100644 --- a/flutter/ios/Runner/Info.plist +++ b/flutter/ios/Runner/Info.plist @@ -6,12 +6,14 @@ CFBundleDevelopmentRegion $(DEVELOPMENT_LANGUAGE) + CFBundleDisplayName + RustDesk CFBundleExecutable $(EXECUTABLE_NAME) CFBundleIdentifier $(PRODUCT_BUNDLE_IDENTIFIER) CFBundleInfoDictionaryVersion - 6.0 + 6.0 CFBundleName RustDesk CFBundlePackageType diff --git a/flutter/ios/exportOptions.plist b/flutter/ios/exportOptions.plist new file mode 100644 index 000000000..6ceb2ac74 --- /dev/null +++ b/flutter/ios/exportOptions.plist @@ -0,0 +1,15 @@ + + + + + method + app-store + teamID + HZF9JMC8YN + provisioningProfiles + + com.carriez.flutterHbb + rustdesk-ios-prod-app-store + + + diff --git a/flutter/ios_arm64.sh b/flutter/ios_arm64.sh index 01a09a4b4..5a6291755 100755 --- a/flutter/ios_arm64.sh +++ b/flutter/ios_arm64.sh @@ -1,2 +1,2 @@ #!/usr/bin/env bash -cargo build --release --target aarch64-apple-ios +cargo build --features flutter --release --target aarch64-apple-ios --lib diff --git a/flutter/ios_x64.sh b/flutter/ios_x64.sh index 455ef4199..04b999313 100755 --- a/flutter/ios_x64.sh +++ b/flutter/ios_x64.sh @@ -1,2 +1,2 @@ #!/usr/bin/env bash -cargo build --release --target x86_64-apple-ios +cargo build --features flutter --release --target x86_64-apple-ios --lib