From 75c59343c7aba44f09f2501eb8ec3971cddb8a6d Mon Sep 17 00:00:00 2001 From: Frank Gregor Date: Wed, 1 Apr 2020 23:08:00 +0200 Subject: [PATCH] HOTFIX: Adds support for Xcode 11.4 Xcode 11.4 changed the way frameworks are linked and embedded. So it was necessary to migrate the Xcode project manually since we are prior to Flutter 1.15 (which will do the project migration automatically). For more informations have a look here: https://flutter.dev/docs/development/ios-project-migration --- ios/Runner.xcodeproj/project.pbxproj | 428 +++++++++++++++++- .../xcshareddata/xcschemes/Runner.xcscheme | 2 +- .../xcschemes/development.xcscheme | 2 +- .../xcshareddata/xcschemes/stable.xcscheme | 2 +- 4 files changed, 416 insertions(+), 18 deletions(-) diff --git a/ios/Runner.xcodeproj/project.pbxproj b/ios/Runner.xcodeproj/project.pbxproj index 3625dfe7..136dcb04 100644 --- a/ios/Runner.xcodeproj/project.pbxproj +++ b/ios/Runner.xcodeproj/project.pbxproj @@ -11,10 +11,6 @@ 2AB5BDA32396A33B005FDB10 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 2AB5BDA22396A33B005FDB10 /* GeneratedPluginRegistrant.m */; }; 374E43D3FB49E295AE9799DD /* Pods_Runner.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 899B7188477F2A02FA10829E /* Pods_Runner.framework */; }; 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; }; - 3B80C3941E831B6300D905FE /* App.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3B80C3931E831B6300D905FE /* App.framework */; }; - 3B80C3951E831B6300D905FE /* App.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 3B80C3931E831B6300D905FE /* App.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; - 9705A1C61CF904A100538489 /* Flutter.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9740EEBA1CF902C7004384FC /* Flutter.framework */; }; - 9705A1C71CF904A300538489 /* Flutter.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 9740EEBA1CF902C7004384FC /* Flutter.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; }; 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; }; 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; }; @@ -37,8 +33,6 @@ dstPath = ""; dstSubfolderSpec = 10; files = ( - 3B80C3951E831B6300D905FE /* App.framework in Embed Frameworks */, - 9705A1C71CF904A300538489 /* Flutter.framework in Embed Frameworks */, ); name = "Embed Frameworks"; runOnlyForDeploymentPostprocessing = 0; @@ -56,7 +50,6 @@ 2AB5BDA12396A33B005FDB10 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = GeneratedPluginRegistrant.h; path = ../../Runner/GeneratedPluginRegistrant.h; sourceTree = ""; }; 2AB5BDA22396A33B005FDB10 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = GeneratedPluginRegistrant.m; path = ../../Runner/GeneratedPluginRegistrant.m; sourceTree = ""; }; 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; }; - 3B80C3931E831B6300D905FE /* App.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = App.framework; path = Flutter/App.framework; sourceTree = ""; }; 646BAA6623D890B7004295B1 /* cs-CZ */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = "cs-CZ"; path = "cs-CZ.lproj/InfoPlist.strings"; sourceTree = ""; }; 646BAA6723D890D8004295B1 /* da-DK */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = "da-DK"; path = "da-DK.lproj/InfoPlist.strings"; sourceTree = ""; }; 646BAA6823D89139004295B1 /* en-US */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = "en-US"; path = "en-US.lproj/InfoPlist.strings"; sourceTree = ""; }; @@ -79,7 +72,6 @@ 81A3BCC8525B6F2D0510F16F /* Pods-Runner.stable.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.stable.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.stable.xcconfig"; sourceTree = ""; }; 899B7188477F2A02FA10829E /* Pods_Runner.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Runner.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; }; - 9740EEBA1CF902C7004384FC /* Flutter.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Flutter.framework; path = Flutter/Flutter.framework; sourceTree = ""; }; 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; }; 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; @@ -112,8 +104,6 @@ isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( - 9705A1C61CF904A100538489 /* Flutter.framework in Frameworks */, - 3B80C3941E831B6300D905FE /* App.framework in Frameworks */, 374E43D3FB49E295AE9799DD /* Pods_Runner.framework in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; @@ -139,8 +129,6 @@ 9740EEB11CF90186004384FC /* Flutter */ = { isa = PBXGroup; children = ( - 3B80C3931E831B6300D905FE /* App.framework */, - 9740EEBA1CF902C7004384FC /* Flutter.framework */, 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */, 2421A2132375A7CE00BBE6C8 /* Debug-development.xcconfig */, 9740EEB31CF90195004384FC /* Generated.xcconfig */, @@ -301,7 +289,7 @@ 97C146E61CF9000F007C117D /* Project object */ = { isa = PBXProject; attributes = { - LastUpgradeCheck = 1130; + LastUpgradeCheck = 1140; ORGANIZATIONNAME = "OX Software GmbH"; TargetAttributes = { 97C146ED1CF9000F007C117D = { @@ -424,7 +412,7 @@ ); runOnlyForDeploymentPostprocessing = 0; shellPath = /bin/sh; - shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" thin\n"; + shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed\n/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" thin\n"; }; 9740EEB61CF901F6004384FC /* Run Script */ = { isa = PBXShellScriptBuildPhase; @@ -634,10 +622,146 @@ ); MARKETING_VERSION = "$(FLUTTER_BUILD_NAME)"; MTL_ENABLE_DEBUG_INFO = YES; + OTHER_LDFLAGS = ( + "$(inherited)", + "-ObjC", + "-l\"c++\"", + "-l\"sqlite3\"", + "-l\"z\"", + "-framework", + "\"AVFoundation\"", + "-framework", + "\"Accelerate\"", + "-framework", + "\"BarcodeDetector\"", + "-framework", + "\"CoreGraphics\"", + "-framework", + "\"CoreImage\"", + "-framework", + "\"CoreMedia\"", + "-framework", + "\"CoreTelephony\"", + "-framework", + "\"CoreVideo\"", + "-framework", + "\"FBLPromises\"", + "-framework", + "\"FIRAnalyticsConnector\"", + "-framework", + "\"FMDB\"", + "-framework", + "\"FirebaseAnalytics\"", + "-framework", + "\"FirebaseCore\"", + "-framework", + "\"FirebaseCoreDiagnostics\"", + "-framework", + "\"FirebaseInstallations\"", + "-framework", + "\"FirebaseInstanceID\"", + "-framework", + "\"FirebaseMessaging\"", + "-framework", + "\"Flutter\"", + "-framework", + "\"Foundation\"", + "-framework", + "\"GTMSessionFetcher\"", + "-framework", + "\"GoogleAppMeasurement\"", + "-framework", + "\"GoogleDataTransport\"", + "-framework", + "\"GoogleDataTransportCCTSupport\"", + "-framework", + "\"GoogleMobileVision\"", + "-framework", + "\"GoogleToolboxForMac\"", + "-framework", + "\"GoogleUtilities\"", + "-framework", + "\"InputBarAccessoryView\"", + "-framework", + "\"LocalAuthentication\"", + "-framework", + "\"MessageKit\"", + "-framework", + "\"Security\"", + "-framework", + "\"StoreKit\"", + "-framework", + "\"SwiftyBeaver\"", + "-framework", + "\"SystemConfiguration\"", + "-framework", + "\"TOCropViewController\"", + "-framework", + "\"UIKit\"", + "-framework", + "\"app_settings\"", + "-framework", + "\"background_fetch\"", + "-framework", + "\"contacts_service\"", + "-framework", + "\"delta_chat_core\"", + "-framework", + "\"device_info\"", + "-framework", + "\"file_picker\"", + "-framework", + "\"firebase_messaging\"", + "-framework", + "\"flutter_local_notifications\"", + "-framework", + "\"flutter_plugin_android_lifecycle\"", + "-framework", + "\"flutter_sound\"", + "-framework", + "\"fluttertoast\"", + "-framework", + "\"image_cropper\"", + "-framework", + "\"image_picker\"", + "-framework", + "\"libwebp\"", + "-framework", + "\"nanopb\"", + "-framework", + "\"native_device_orientation\"", + "-framework", + "\"open_file\"", + "-framework", + "\"package_info\"", + "-framework", + "\"path_provider\"", + "-framework", + "\"permission_handler\"", + "-framework", + "\"protobuf\"", + "-framework", + "\"qr_mobile_vision\"", + "-framework", + "\"shared_preferences\"", + "-framework", + "\"sqflite\"", + "-framework", + "\"url_launcher\"", + "-framework", + "\"vibrate\"", + "-framework", + "\"video_player\"", + "-framework", + "\"video_thumbnail\"", + "-weak_framework", + "\"UserNotifications\"", + "-framework", + Flutter, + ); PRODUCT_BUNDLE_IDENTIFIER = "${PRODUCT_BUNDLE_IDENTIFIER}"; PRODUCT_NAME = "${PRODUCT_NAME}"; PROVISIONING_PROFILE_SPECIFIER = ""; - SWIFT_COMPILATION_MODE = wholemodule; SWIFT_OBJC_BRIDGING_HEADER = "OX Coi/Application/Runner-Bridging-Header.h"; SWIFT_OPTIMIZATION_LEVEL = "-Onone"; SWIFT_VERSION = 5.0; @@ -729,6 +853,143 @@ "$(PROJECT_DIR)/Flutter", ); MARKETING_VERSION = "$(FLUTTER_BUILD_NAME)"; + OTHER_LDFLAGS = ( + "$(inherited)", + "-ObjC", + "-l\"c++\"", + "-l\"sqlite3\"", + "-l\"z\"", + "-framework", + "\"AVFoundation\"", + "-framework", + "\"Accelerate\"", + "-framework", + "\"BarcodeDetector\"", + "-framework", + "\"CoreGraphics\"", + "-framework", + "\"CoreImage\"", + "-framework", + "\"CoreMedia\"", + "-framework", + "\"CoreTelephony\"", + "-framework", + "\"CoreVideo\"", + "-framework", + "\"FBLPromises\"", + "-framework", + "\"FIRAnalyticsConnector\"", + "-framework", + "\"FMDB\"", + "-framework", + "\"FirebaseAnalytics\"", + "-framework", + "\"FirebaseCore\"", + "-framework", + "\"FirebaseCoreDiagnostics\"", + "-framework", + "\"FirebaseInstallations\"", + "-framework", + "\"FirebaseInstanceID\"", + "-framework", + "\"FirebaseMessaging\"", + "-framework", + "\"Flutter\"", + "-framework", + "\"Foundation\"", + "-framework", + "\"GTMSessionFetcher\"", + "-framework", + "\"GoogleAppMeasurement\"", + "-framework", + "\"GoogleDataTransport\"", + "-framework", + "\"GoogleDataTransportCCTSupport\"", + "-framework", + "\"GoogleMobileVision\"", + "-framework", + "\"GoogleToolboxForMac\"", + "-framework", + "\"GoogleUtilities\"", + "-framework", + "\"InputBarAccessoryView\"", + "-framework", + "\"LocalAuthentication\"", + "-framework", + "\"MessageKit\"", + "-framework", + "\"Security\"", + "-framework", + "\"StoreKit\"", + "-framework", + "\"SwiftyBeaver\"", + "-framework", + "\"SystemConfiguration\"", + "-framework", + "\"TOCropViewController\"", + "-framework", + "\"UIKit\"", + "-framework", + "\"app_settings\"", + "-framework", + "\"background_fetch\"", + "-framework", + "\"contacts_service\"", + "-framework", + "\"delta_chat_core\"", + "-framework", + "\"device_info\"", + "-framework", + "\"file_picker\"", + "-framework", + "\"firebase_messaging\"", + "-framework", + "\"flutter_local_notifications\"", + "-framework", + "\"flutter_plugin_android_lifecycle\"", + "-framework", + "\"flutter_sound\"", + "-framework", + "\"fluttertoast\"", + "-framework", + "\"image_cropper\"", + "-framework", + "\"image_picker\"", + "-framework", + "\"libwebp\"", + "-framework", + "\"nanopb\"", + "-framework", + "\"native_device_orientation\"", + "-framework", + "\"open_file\"", + "-framework", + "\"package_info\"", + "-framework", + "\"path_provider\"", + "-framework", + "\"permission_handler\"", + "-framework", + "\"protobuf\"", + "-framework", + "\"qr_mobile_vision\"", + "-framework", + "\"shared_preferences\"", + "-framework", + "\"sqflite\"", + "-framework", + "\"url_launcher\"", + "-framework", + "\"vibrate\"", + "-framework", + "\"video_player\"", + "-framework", + "\"video_thumbnail\"", + "-weak_framework", + "\"UserNotifications\"", + "-framework", + Flutter, + ); PRODUCT_BUNDLE_IDENTIFIER = "${PRODUCT_BUNDLE_IDENTIFIER}"; PRODUCT_NAME = "${PRODUCT_NAME}"; PROVISIONING_PROFILE_SPECIFIER = "OX COI Messenger"; @@ -823,6 +1084,143 @@ "$(PROJECT_DIR)/Flutter", ); MARKETING_VERSION = "$(FLUTTER_BUILD_NAME)"; + OTHER_LDFLAGS = ( + "$(inherited)", + "-ObjC", + "-l\"c++\"", + "-l\"sqlite3\"", + "-l\"z\"", + "-framework", + "\"AVFoundation\"", + "-framework", + "\"Accelerate\"", + "-framework", + "\"BarcodeDetector\"", + "-framework", + "\"CoreGraphics\"", + "-framework", + "\"CoreImage\"", + "-framework", + "\"CoreMedia\"", + "-framework", + "\"CoreTelephony\"", + "-framework", + "\"CoreVideo\"", + "-framework", + "\"FBLPromises\"", + "-framework", + "\"FIRAnalyticsConnector\"", + "-framework", + "\"FMDB\"", + "-framework", + "\"FirebaseAnalytics\"", + "-framework", + "\"FirebaseCore\"", + "-framework", + "\"FirebaseCoreDiagnostics\"", + "-framework", + "\"FirebaseInstallations\"", + "-framework", + "\"FirebaseInstanceID\"", + "-framework", + "\"FirebaseMessaging\"", + "-framework", + "\"Flutter\"", + "-framework", + "\"Foundation\"", + "-framework", + "\"GTMSessionFetcher\"", + "-framework", + "\"GoogleAppMeasurement\"", + "-framework", + "\"GoogleDataTransport\"", + "-framework", + "\"GoogleDataTransportCCTSupport\"", + "-framework", + "\"GoogleMobileVision\"", + "-framework", + "\"GoogleToolboxForMac\"", + "-framework", + "\"GoogleUtilities\"", + "-framework", + "\"InputBarAccessoryView\"", + "-framework", + "\"LocalAuthentication\"", + "-framework", + "\"MessageKit\"", + "-framework", + "\"Security\"", + "-framework", + "\"StoreKit\"", + "-framework", + "\"SwiftyBeaver\"", + "-framework", + "\"SystemConfiguration\"", + "-framework", + "\"TOCropViewController\"", + "-framework", + "\"UIKit\"", + "-framework", + "\"app_settings\"", + "-framework", + "\"background_fetch\"", + "-framework", + "\"contacts_service\"", + "-framework", + "\"delta_chat_core\"", + "-framework", + "\"device_info\"", + "-framework", + "\"file_picker\"", + "-framework", + "\"firebase_messaging\"", + "-framework", + "\"flutter_local_notifications\"", + "-framework", + "\"flutter_plugin_android_lifecycle\"", + "-framework", + "\"flutter_sound\"", + "-framework", + "\"fluttertoast\"", + "-framework", + "\"image_cropper\"", + "-framework", + "\"image_picker\"", + "-framework", + "\"libwebp\"", + "-framework", + "\"nanopb\"", + "-framework", + "\"native_device_orientation\"", + "-framework", + "\"open_file\"", + "-framework", + "\"package_info\"", + "-framework", + "\"path_provider\"", + "-framework", + "\"permission_handler\"", + "-framework", + "\"protobuf\"", + "-framework", + "\"qr_mobile_vision\"", + "-framework", + "\"shared_preferences\"", + "-framework", + "\"sqflite\"", + "-framework", + "\"url_launcher\"", + "-framework", + "\"vibrate\"", + "-framework", + "\"video_player\"", + "-framework", + "\"video_thumbnail\"", + "-weak_framework", + "\"UserNotifications\"", + "-framework", + Flutter, + ); PRODUCT_BUNDLE_IDENTIFIER = "${PRODUCT_BUNDLE_IDENTIFIER}"; PRODUCT_NAME = "${PRODUCT_NAME}"; PROVISIONING_PROFILE_SPECIFIER = ""; diff --git a/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme b/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme index eff2bca0..78193027 100644 --- a/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme +++ b/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme @@ -1,6 +1,6 @@