Parse-Problem (Xcode): Modul „audio_session“ nicht gefundenIOS

Programmierung für iOS
Anonymous
 Parse-Problem (Xcode): Modul „audio_session“ nicht gefunden

Post by Anonymous »

Ich verwende einen Mac mit Apple m4-Chip

Code: Select all

Flutter / ios
Ich verwende den Iphone 17-Simulator
Fehlerausgabe:
Image

Flutter Doctor

Code: Select all

[✓] 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!
meine Pod-Datei:

Code: Select all

# 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-ios-sdk-frameworks.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
Ich habe viele ähnliche Fragen wie meine gefunden, aber sie waren alle alt (aus dem Jahr 2021) und keine davon hat mein Problem behoben. Ich habe sie alle ausprobiert.
Ich habe diese Frage gelesen und alle Antworten ausprobiert, aber nichts hat funktioniert: Modul „audio_session“ nicht gefunden
Dies ist der zweite Monat, in dem ich damit zu kämpfen habe, dieses Problem zu lösen, ohne Ergebnisse. Ich bin sehr frustriert.

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post