From 0df3733d6c870dd1ea4730eedd6c1fd3b8449132 Mon Sep 17 00:00:00 2001 From: Marco Bavagnoli Date: Wed, 13 May 2026 14:29:56 +0200 Subject: [PATCH] removed hardcoded `-flto` compile arg in `Package.swift` --- .../xcshareddata/swiftpm/Package.resolved | 59 ------------------- .../xcshareddata/swiftpm/Package.resolved | 59 ------------------- example/macos/Podfile.lock | 32 ---------- .../macos/Runner.xcodeproj/project.pbxproj | 18 ------ ios/flutter_soloud/Package.swift | 4 +- macos/flutter_soloud/Package.swift | 4 +- 6 files changed, 4 insertions(+), 172 deletions(-) delete mode 100644 example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved delete mode 100644 example/ios/Runner.xcworkspace/xcshareddata/swiftpm/Package.resolved diff --git a/example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved b/example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved deleted file mode 100644 index 4d7193ee..00000000 --- a/example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved +++ /dev/null @@ -1,59 +0,0 @@ -{ - "pins" : [ - { - "identity" : "dkcamera", - "kind" : "remoteSourceControl", - "location" : "https://github.com/zhangao0086/DKCamera", - "state" : { - "branch" : "master", - "revision" : "5c691d11014b910aff69f960475d70e65d9dcc96" - } - }, - { - "identity" : "dkimagepickercontroller", - "kind" : "remoteSourceControl", - "location" : "https://github.com/zhangao0086/DKImagePickerController", - "state" : { - "branch" : "4.3.9", - "revision" : "0bdfeacefa308545adde07bef86e349186335915" - } - }, - { - "identity" : "dkphotogallery", - "kind" : "remoteSourceControl", - "location" : "https://github.com/zhangao0086/DKPhotoGallery", - "state" : { - "branch" : "master", - "revision" : "311c1bc7a94f1538f82773a79c84374b12a2ef3d" - } - }, - { - "identity" : "sdwebimage", - "kind" : "remoteSourceControl", - "location" : "https://github.com/SDWebImage/SDWebImage", - "state" : { - "revision" : "2de3a496eaf6df9a1312862adcfd54acd73c39c0", - "version" : "5.21.7" - } - }, - { - "identity" : "swiftygif", - "kind" : "remoteSourceControl", - "location" : "https://github.com/kirualex/SwiftyGif.git", - "state" : { - "revision" : "4430cbc148baa3907651d40562d96325426f409a", - "version" : "5.4.5" - } - }, - { - "identity" : "tocropviewcontroller", - "kind" : "remoteSourceControl", - "location" : "https://github.com/TimOliver/TOCropViewController", - "state" : { - "revision" : "d4a6d8100f4b886fdbc8ae399bf144ff3e9afb7e", - "version" : "2.8.0" - } - } - ], - "version" : 2 -} diff --git a/example/ios/Runner.xcworkspace/xcshareddata/swiftpm/Package.resolved b/example/ios/Runner.xcworkspace/xcshareddata/swiftpm/Package.resolved deleted file mode 100644 index 4d7193ee..00000000 --- a/example/ios/Runner.xcworkspace/xcshareddata/swiftpm/Package.resolved +++ /dev/null @@ -1,59 +0,0 @@ -{ - "pins" : [ - { - "identity" : "dkcamera", - "kind" : "remoteSourceControl", - "location" : "https://github.com/zhangao0086/DKCamera", - "state" : { - "branch" : "master", - "revision" : "5c691d11014b910aff69f960475d70e65d9dcc96" - } - }, - { - "identity" : "dkimagepickercontroller", - "kind" : "remoteSourceControl", - "location" : "https://github.com/zhangao0086/DKImagePickerController", - "state" : { - "branch" : "4.3.9", - "revision" : "0bdfeacefa308545adde07bef86e349186335915" - } - }, - { - "identity" : "dkphotogallery", - "kind" : "remoteSourceControl", - "location" : "https://github.com/zhangao0086/DKPhotoGallery", - "state" : { - "branch" : "master", - "revision" : "311c1bc7a94f1538f82773a79c84374b12a2ef3d" - } - }, - { - "identity" : "sdwebimage", - "kind" : "remoteSourceControl", - "location" : "https://github.com/SDWebImage/SDWebImage", - "state" : { - "revision" : "2de3a496eaf6df9a1312862adcfd54acd73c39c0", - "version" : "5.21.7" - } - }, - { - "identity" : "swiftygif", - "kind" : "remoteSourceControl", - "location" : "https://github.com/kirualex/SwiftyGif.git", - "state" : { - "revision" : "4430cbc148baa3907651d40562d96325426f409a", - "version" : "5.4.5" - } - }, - { - "identity" : "tocropviewcontroller", - "kind" : "remoteSourceControl", - "location" : "https://github.com/TimOliver/TOCropViewController", - "state" : { - "revision" : "d4a6d8100f4b886fdbc8ae399bf144ff3e9afb7e", - "version" : "2.8.0" - } - } - ], - "version" : 2 -} diff --git a/example/macos/Podfile.lock b/example/macos/Podfile.lock index c8211077..1c7111b5 100644 --- a/example/macos/Podfile.lock +++ b/example/macos/Podfile.lock @@ -1,47 +1,15 @@ PODS: - - audio_service (0.0.1): - - Flutter - - FlutterMacOS - - audio_session (0.0.1): - - FlutterMacOS - - file_picker (0.0.1): - - FlutterMacOS - - flutter_soloud (0.0.1): - - FlutterMacOS - FlutterMacOS (1.0.0) - - sqflite_darwin (0.0.4): - - Flutter - - FlutterMacOS DEPENDENCIES: - - audio_service (from `Flutter/ephemeral/.symlinks/plugins/audio_service/darwin`) - - audio_session (from `Flutter/ephemeral/.symlinks/plugins/audio_session/macos`) - - file_picker (from `Flutter/ephemeral/.symlinks/plugins/file_picker/macos`) - - flutter_soloud (from `Flutter/ephemeral/.symlinks/plugins/flutter_soloud/macos`) - FlutterMacOS (from `Flutter/ephemeral`) - - sqflite_darwin (from `Flutter/ephemeral/.symlinks/plugins/sqflite_darwin/darwin`) EXTERNAL SOURCES: - audio_service: - :path: Flutter/ephemeral/.symlinks/plugins/audio_service/darwin - audio_session: - :path: Flutter/ephemeral/.symlinks/plugins/audio_session/macos - file_picker: - :path: Flutter/ephemeral/.symlinks/plugins/file_picker/macos - flutter_soloud: - :path: Flutter/ephemeral/.symlinks/plugins/flutter_soloud/macos FlutterMacOS: :path: Flutter/ephemeral - sqflite_darwin: - :path: Flutter/ephemeral/.symlinks/plugins/sqflite_darwin/darwin SPEC CHECKSUMS: - audio_service: aa99a6ba2ae7565996015322b0bb024e1d25c6fd - audio_session: eaca2512cf2b39212d724f35d11f46180ad3a33e - file_picker: 7584aae6fa07a041af2b36a2655122d42f578c1a - flutter_soloud: 4a7acd4c038bbcd58d290d47294d3b01c8beac7f FlutterMacOS: d0db08ddef1a9af05a5ec4b724367152bb0500b1 - sqflite_darwin: 20b2a3a3b70e43edae938624ce550a3cbf66a3d0 PODFILE CHECKSUM: 79e0db88ae71eb624677a707542cb15bdc7d34b6 diff --git a/example/macos/Runner.xcodeproj/project.pbxproj b/example/macos/Runner.xcodeproj/project.pbxproj index 6790ee55..3cdd8daa 100644 --- a/example/macos/Runner.xcodeproj/project.pbxproj +++ b/example/macos/Runner.xcodeproj/project.pbxproj @@ -243,7 +243,6 @@ 33CC10EB2044A3C60003C045 /* Resources */, 33CC110E2044A8840003C045 /* Bundle Framework */, 3399D490228B24CF009A79C7 /* ShellScript */, - 868F72F22EFA1C47BC2B777A /* [CP] Embed Pods Frameworks */, ); buildRules = ( ); @@ -413,23 +412,6 @@ shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; showEnvVarsInLog = 0; }; - 868F72F22EFA1C47BC2B777A /* [CP] Embed Pods Frameworks */ = { - isa = PBXShellScriptBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - inputFileListPaths = ( - "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-input-files.xcfilelist", - ); - name = "[CP] Embed Pods Frameworks"; - outputFileListPaths = ( - "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-output-files.xcfilelist", - ); - runOnlyForDeploymentPostprocessing = 0; - shellPath = /bin/sh; - shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh\"\n"; - showEnvVarsInLog = 0; - }; /* End PBXShellScriptBuildPhase section */ /* Begin PBXSourcesBuildPhase section */ diff --git a/ios/flutter_soloud/Package.swift b/ios/flutter_soloud/Package.swift index 5f30ae62..79274ca8 100644 --- a/ios/flutter_soloud/Package.swift +++ b/ios/flutter_soloud/Package.swift @@ -30,14 +30,14 @@ var baseCSettings: [CSetting] = [ .headerSearchPath("../../include"), .headerSearchPath("src"), .headerSearchPath("src/soloud/include"), - .unsafeFlags(["-O3", "-ffast-math", "-flto"]), + .unsafeFlags(["-O3", "-ffast-math"]), ] var baseCXXSettings: [CXXSetting] = [ .headerSearchPath("../../include"), .headerSearchPath("src"), .headerSearchPath("src/soloud/include"), - .unsafeFlags(["-O3", "-ffast-math", "-flto"]), + .unsafeFlags(["-O3", "-ffast-math"]), ] // Add Xiph include paths only when not disabled diff --git a/macos/flutter_soloud/Package.swift b/macos/flutter_soloud/Package.swift index f4c70db9..a5a901e9 100644 --- a/macos/flutter_soloud/Package.swift +++ b/macos/flutter_soloud/Package.swift @@ -30,14 +30,14 @@ var baseCSettings: [CSetting] = [ .headerSearchPath("../../include"), .headerSearchPath("src"), .headerSearchPath("src/soloud/include"), - .unsafeFlags(["-O3", "-ffast-math", "-flto"]), + .unsafeFlags(["-O3", "-ffast-math"]), ] var baseCXXSettings: [CXXSetting] = [ .headerSearchPath("../../include"), .headerSearchPath("src"), .headerSearchPath("src/soloud/include"), - .unsafeFlags(["-O3", "-ffast-math", "-flto"]), + .unsafeFlags(["-O3", "-ffast-math"]), ] // Add Xiph include paths only when not disabled