CopyArgumentError - [Xcodeproj] Невозможно найти строку версии совместимости для объекта версии 70.
Среда:
- CocoaPods: 1.16.2
- Xcode: 16.1
- macOS: 15.0.1
- Проект Flutter
Код: Выделить всё
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
- Рабочий проект Flutter iOS с установленными модулями
- Добавлена цель Share Extension в Xcode
- Добавлена цель Share Extension в Podfile
- Запустите установку модуля -> Возникает ошибка
- Удаление Pods/, Podfile.lock, Runner.xcworkspace
- Различные конфигурации Podfile
- деинтеграция и переустановка модуля
- Удаление и повторное добавление Share Расширение
- Понижение версии CocoaPods
Подробнее здесь: https://stackoverflow.com/questions/792 ... ct-version
Мобильная версия