I am getting this error when attempting to run pod set up after including a Share Extension to my Flutter iOS mission:
CopyArgumentError - [Xcodeproj] Unable to seek out compatibility model string for object model `70`.
Setting:
- CocoaPods: 1.16.2
- Xcode: 16.1
- macOS: 15.0.1
- Flutter mission
My Podfile:
rubyCopyENV['COCOAPODS_DISABLE_STATS'] = 'true'
def flutter_root
generated_xcode_build_settings_path = File.expand_path(File.be part of('..', 'Flutter', 'Generated.xcconfig'), __FILE__)
until File.exist?(generated_xcode_build_settings_path)
elevate "#{generated_xcode_build_settings_path} should exist. When you're working pod set up manually, be certain that flutter pub get is executed first"
finish
File.foreach(generated_xcode_build_settings_path) do |line|
matches = line.match(/FLUTTER_ROOT=(.*)/)
return matches[1].strip if matches
finish
elevate "FLUTTER_ROOT not present in #{generated_xcode_build_settings_path}"
finish
require File.expand_path(File.be part of('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root)
platform :ios, '13.0'
flutter_ios_podfile_setup
goal 'Runner' do
use_frameworks!
flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
finish
goal 'Share Extension' do
use_frameworks!
flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
finish
Steps to breed:
- Working Flutter iOS mission with pods put in
- Added Share Extension goal in Xcode
- Added Share Extension goal to Podfile
- Run pod set up -> Error happens
Issues tried:
- Deleting Pods/, Podfile.lock, Runner.xcworkspace
- Totally different Podfile configurations
- pod deintegrate and reinstall
- Eradicating and re-adding Share Extension
- Downgrading CocoaPods
The mission works positive with out Share Extension, I’ve eliminated it and added it a number of tiles. Any concepts find out how to resolve this?