I’m going through some errors when I’m making an attempt to to archive iOS app for importing to AppStore join. I chosen the Archive choice from Product tab in Xcode. The pod set up completes with none error however the construct failed. The precise error is proven within the picture beneath.
I’ve additionally tried flutter construct ios --release
command from terminal. However that additionally ended with an error. The error could be very lengthy. However begins with traces as proven within the beneath picture.
I attempted a number of methods like flutter clear
, pod disintegrate
, and pod set up
however nothing works.
For higher understanding I’m attaching the podfile right here:
# Uncomment this line to outline a world platform on your mission
# platform :ios, '12.0'
# CocoaPods analytics sends community stats synchronously affecting flutter construct latency.
ENV['COCOAPODS_DISABLE_STATS'] = 'true'
mission 'Runner', {
'Debug' => :debug,
'Profile' => :launch,
'Launch' => :launch,
}
def flutter_root
generated_xcode_build_settings_path = File.expand_path(File.be part of('..', 'Flutter', 'Generated.xcconfig'), __FILE__)
except File.exist?(generated_xcode_build_settings_path)
elevate "#{generated_xcode_build_settings_path} should exist. Should you're working pod set up manually, be sure 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}. Attempt deleting Generated.xcconfig, then run flutter pub get"
finish
require File.expand_path(File.be part of('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root)
flutter_ios_podfile_setup
goal 'Runner' do
use_frameworks!
use_modular_headers!
flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
goal 'RunnerTests' do
inherit! :search_paths
finish
finish
post_install do |installer|
installer.pods_project.targets.every do |goal|
goal.build_configurations.every do |config|
config.build_settings.delete 'IPHONEOS_DEPLOYMENT_TARGET'
finish
finish
finish