Flutter не может построить iOS на XCode 15.2 - Пробое понижение инструмента SDK Firebase SDKIOS

Программируем под IOS
Ответить Пред. темаСлед. тема
Anonymous
 Flutter не может построить iOS на XCode 15.2 - Пробое понижение инструмента SDK Firebase SDK

Сообщение Anonymous »

Я борелся с этим в течение недели, но я не могу обойти это. I have a MacBook 2017, so Xcode 15.2 is the most recent I can use.
I tried everything:

[*]reinstalling pods
[*]reconfiguring firebase
[*]downgraded firebasesdk
increased ios Target < /li>
и все остальные вещи, которые были актуальны из аналогичных запросов.

Код: Выделить всё

# Uncomment this line to define a global platform for your project
platform :ios, '15.0'
#$FirebaseSDKVersion = '10.22.0'

pod 'Firebase/Analytics', :modular_headers => true
pod 'Firebase/Crashlytics', :modular_headers => true
pod 'Firebase/Messaging', :modular_headers => true
pod 'GoogleMaps', :modular_headers => true
pod 'GoogleUtilities', :modular_headers => true
pod 'FirebaseCore', :modular_headers => true
pod 'FirebaseCoreExtension', :modular_headers => true
pod 'FirebaseInstallations', :modular_headers => true
pod 'GoogleDataTransport', :modular_headers => true
pod 'nanopb', :modular_headers => true

# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
ENV['COCOAPODS_DISABLE_STATS'] = 'true'

project 'Runner', {
'Debug' => :debug,
'Profile' => :release,
'Release' => :release,
}

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}. Try deleting Generated.xcconfig, then run flutter pub get"
end

require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root)

flutter_ios_podfile_setup

target 'Runner' do
use_frameworks!
use_modular_headers!
#pod 'FirebaseFirestore', :git => 'https://github.com/invertase/firestore-ios-sdk-frameworks.git', :tag => '10.22.0'

flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
target 'RunnerTests' do
inherit! :search_paths
end
end

post_install do |installer|
installer.pods_project.targets.each do |target|
flutter_additional_ios_build_settings(target)
end
#installer.pods_project.build_configuration_list.build_configurations.each do |configuration|
#  configuration.build_settings['CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES'] = 'YES'
#end
end
< /code>
Ошибки: < /p>
Swift Compiler Error (Xcode): Expressions are not allowed at the top level /FirebaseDataEncoder.swift:2613:0

Swift Compiler Error (Xcode): Consecutive statements on a line must be separated by ';'FirebaseDataEncoder.swift:2613:19

Swift Compiler Error (Xcode): Consecutive declarations on a line must be separated by ';'
/FirebaseDataEncoder.swift:288:63

Swift Compiler Error (Xcode): Expected declaration
FirebaseDataEncoder/FirebaseDataEncoder.swift:288:64

Swift Compiler Error (Xcode): Cannot find type 'sending' in scope
/FirebaseDataEncoder.swift:288:56

Swift Compiler Error (Xcode): Cannot find 'nonisolated' in scope
/FirebaseDataEncoder.swift:2613:0

Swift Compiler Error (Xcode): Cannot find 'unsafe' in scope
/FirebaseDataEncoder.swift:2613:12

Uncategorized (Xcode): Command SwiftEmitModule failed with a nonzero exit code
Любой совет, пожалуйста?

Подробнее здесь: https://stackoverflow.com/questions/796 ... asesdk-too
Реклама
Ответить Пред. темаСлед. тема

Быстрый ответ

Изменение регистра текста: 
Смайлики
:) :( :oops: :roll: :wink: :muza: :clever: :sorry: :angel: :read: *x)
Ещё смайлики…
   
К этому ответу прикреплено по крайней мере одно вложение.

Если вы не хотите добавлять вложения, оставьте поля пустыми.

Максимально разрешённый размер вложения: 15 МБ.

  • Похожие темы
    Ответы
    Просмотры
    Последнее сообщение

Вернуться в «IOS»