Проблема анализа (Xcode): модуль audio_session не найденIOS

Программируем под IOS
Ответить
Anonymous
 Проблема анализа (Xcode): модуль audio_session не найден

Сообщение Anonymous »

я использую Mac с чипом Apple m4
Flutter / ios

я использую симулятор Iphone 17
вывод ошибки:
Изображение

Flutter Doctor
[✓] Flutter (Channel stable, 3.38.5, on macOS 26.2 25C56 darwin-arm64 (Rosetta), locale en-TR)
[✓] Android toolchain - develop for Android devices (Android SDK version 36.1.0)
[✓] Xcode - develop for iOS and macOS (Xcode 26.2)
[✓] Chrome - develop for the web
[✓] Connected device (3 available)
[✓] Network resources

• No issues found!

мой файл pod:
# Uncomment this line to define a global platform for your project
platform :ios, '15.5.0'

# 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!:linkage => :static
use_modular_headers!

pod 'FirebaseFirestore', :git => 'https://github.com/invertase/firestore- ... .git',:tag => '12.6.0'

flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))

# target 'RunnerTests' do
# inherit! :search_paths
# end

end

# QR plugin
$iOSVersion = '15.5.0'

post_install do |installer|

# QR plugin
installer.pods_project.build_configurations.each do |config|

config.build_settings["EXCLUDED_ARCHS[sdk=*]"] = "armv7"

# ✅ الحل لمشكلة ffmpeg_kit_flutter_new (مهم)remove maybe when i use real device
config.build_settings["EXCLUDED_ARCHS[sdk=iphonesimulator*]"] = "arm64"

config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = $iOSVersion

end

installer.pods_project.targets.each do |target|
flutter_additional_ios_build_settings(target)

# QR plugin
target.build_configurations.each do |config|
if Gem::Version.new($iOSVersion) > Gem::Version.new(config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'])
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = $iOSVersion
end
end

# geolocator prevent update in background
installer.pods_project.targets.each do |target|
if target.name == "geolocator_apple"
target.build_configurations.each do |config|
config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] ||= ['$(inherited)', 'BYPASS_PERMISSION_LOCATION_ALWAYS=1']
end
end
end

end

# Permissions configuration
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] ||= [
'$(inherited)',

# Location permission
'PERMISSION_LOCATION_WHENINUSE=1',

# Photo Library permission
'PERMISSION_PHOTOS=1',
'PERMISSION_PHOTOS_ADD=1',

# Microphone permission
'PERMISSION_MICROPHONE=1',

# Camera permission
'PERMISSION_CAMERA=1',

# Apple Music permission
'PERMISSION_APPLE_MUSIC=1'
]
end
end
end

Я нашел много вопросов, похожих на мой, но все они были старыми (с 2021 года), и ни один из них не решил мою проблему. Я попробовал все из них.
Я прочитал этот вопрос и попробовал все ответы, но ничего не помогло: модуль «audio_session» не найден
Я уже второй месяц пытаюсь решить эту проблему, но безрезультатно. Я очень расстроен.
Обновление:
удаление строки дурака из моего файла pod:
**config.build_settings["EXCLUDED_ARCHS[sdk=iphonesimulator*]"] = "arm64"**

устраните проблему, но появится новая ошибка:
Parse Issue (Xcode): Module 'ffmpeg_kit_flutter_new' not found


Подробнее здесь: https://stackoverflow.com/questions/798 ... -not-found
Ответить

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

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

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

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

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