Code: Select all
CopyArgumentError - [Xcodeproj] Unable to find compatibility version string for object version `70`.
- CocoaPods: 1.16.2
- Xcode: 16.1
- macOS: 15.0.1
- Flutter-Projekt
Code: Select all
rubyCopyENV['COCOAPODS_DISABLE_STATS'] = 'true'
def flutter_root
generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'Generated.xcconfig'), __FILE__)
unless File.exist?(generated_xcode_build_settings_path)
raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure flutter pub get is executed first"
end
File.foreach(generated_xcode_build_settings_path) do |line|
matches = line.match(/FLUTTER_ROOT\=(.*)/)
return matches[1].strip if matches
end
raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}"
end
require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root)
platform :ios, '13.0'
flutter_ios_podfile_setup
target 'Runner' do
use_frameworks!
flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
end
target 'Share Extension' do
use_frameworks!
flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
end
- Arbeitendes Flutter-iOS-Projekt mit installierten Pods
- Share-Erweiterungsziel in Xcode hinzugefügt
- Share-Erweiterungsziel zu Podfile hinzugefügt
- Pod-Installation ausführen -> Fehler tritt auf
- Pods löschen/, Podfile.lock, Runner.xcworkspace
- Verschiedene Podfile-Konfigurationen
- Pod wird aufgelöst und neu installiert
- Share-Erweiterung entfernen und erneut hinzufügen
- CocoaPods herabstufen