chore: update dependencies and configurations for iOS build
- Updated mobile_scanner dependency version to 7.0.0 in pubspec.yaml. - Adjusted versions of several packages in pubspec.lock. - Added exclusion of arm64 architecture for iOS simulator in Podfile and xcconfig files to support Apple Silicon. - Cleaned up Podfile.lock by removing unused dependencies. This update ensures compatibility with the latest mobile_scanner and improves build stability on M1/M4 devices.
This commit is contained in:
@@ -39,5 +39,10 @@ end
|
||||
post_install do |installer|
|
||||
installer.pods_project.targets.each do |target|
|
||||
flutter_additional_ios_build_settings(target)
|
||||
target.build_configurations.each do |config|
|
||||
# ML Kit исключает arm64 для симулятора → сборка только x86_64.
|
||||
# На M1 это ещё могло работать через Rosetta; на M4 симулятор только arm64.
|
||||
config.build_settings['EXCLUDED_ARCHS[sdk=iphonesimulator*]'] = 'i386'
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user