Я пытаюсь запустить проект Flutter на симуляторе iOS или реальном устройстве, но не могу. Он работает на другом Mac, но по какой-то причине не на этом, Listen_sharing_intent не вызывает проблем на этом другом Mac, только на моем. Намерение поделиться работает как в производстве, так и в разработке. Я пробовал несколько вещей, но некоторые из них:
Продукт > Очистить папку сборки
удалена папка Pod и PodFile.lock и обновление репозитория pod - установка pod
Удалить все содержимое и настройки в симуляторе iOS
очистить flutter, получить Flutter pub
внутри файла pod
:config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '15.0' // или
в любую цель
Xcode build done. 352.8s
Failed to build iOS app
Swift Compiler Error (Xcode): Clang dependency scanner failure: While building module 'listen_sharing_intent' imported from listen_sharing_intent-46583bb1.input:1:
In file included from :1:
In file included from /Users/grandmagus/Documents/development/bauBob/build/ios/Debug-dev-iphonesimulator/listen_sharing_intent/listen_sharing_intent.framework/Headers/listen_sharing_intent-umbrella.h:13:
/Users/grandmagus/Documents/development/bauBob/build/ios/Debug-dev-iphonesimulator/listen_sharing_intent/listen_sharing_intent.framework/Headers/ListenSharingIntentPlugin.h:1:9: fatal error: 'Flutter/Flutter.h' file not found
listen_sharing_intent-46583bb1.input:1:1: fatal error: could not build module 'listen_sharing_intent'
Swift Compiler Error (Xcode): Clang dependency scanner failure: While building module 'listen_sharing_intent' imported from listen_sharing_intent-ce67146f.input:1:
In file included from :1:
In file included from /Users/grandmagus/Documents/development/bauBob/build/ios/Debug-dev-iphonesimulator/listen_sharing_intent/listen_sharing_intent.framework/Headers/listen_sharing_intent-umbrella.h:13:
/Users/grandmagus/Documents/development/bauBob/build/ios/Debug-dev-iphonesimulator/listen_sharing_intent/listen_sharing_intent.framework/Headers/ListenSharingIntentPlugin.h:1:9: fatal error: 'Flutter/Flutter.h' file not found
listen_sharing_intent-ce67146f.input:1:1: fatal error: could not build module 'listen_sharing_intent'
Swift Compiler Error (Xcode): Unable to find module dependency: 'Flutter'
Swift Compiler Error (Xcode): Compilation search paths unable to resolve module dependency: 'listen_sharing_intent'
Could not build the application for the simulator.
Error launching application on iPhone 17.
Я пытаюсь запустить проект Flutter на симуляторе iOS или реальном устройстве, но не могу. Он работает на другом Mac, но по какой-то причине не на этом, Listen_sharing_intent не вызывает проблем на этом другом Mac, только на моем. Намерение поделиться работает как в производстве, так и в разработке. Я пробовал несколько вещей, но некоторые из них: [list] [*]Продукт > Очистить папку сборки [*]удалена папка Pod и PodFile.lock и обновление репозитория pod - установка pod [*]Удалить все содержимое и настройки в симуляторе iOS [*]очистить flutter, получить Flutter pub [*]внутри файла pod :config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '15.0' // или в любую цель [/list] ОШИБКА: [code]Xcode build done. 352.8s Failed to build iOS app Swift Compiler Error (Xcode): Clang dependency scanner failure: While building module 'listen_sharing_intent' imported from listen_sharing_intent-46583bb1.input:1: In file included from :1: In file included from /Users/grandmagus/Documents/development/bauBob/build/ios/Debug-dev-iphonesimulator/listen_sharing_intent/listen_sharing_intent.framework/Headers/listen_sharing_intent-umbrella.h:13: /Users/grandmagus/Documents/development/bauBob/build/ios/Debug-dev-iphonesimulator/listen_sharing_intent/listen_sharing_intent.framework/Headers/ListenSharingIntentPlugin.h:1:9: fatal error: 'Flutter/Flutter.h' file not found listen_sharing_intent-46583bb1.input:1:1: fatal error: could not build module 'listen_sharing_intent'
Swift Compiler Error (Xcode): Clang dependency scanner failure: While building module 'listen_sharing_intent' imported from listen_sharing_intent-ce67146f.input:1: In file included from :1: In file included from /Users/grandmagus/Documents/development/bauBob/build/ios/Debug-dev-iphonesimulator/listen_sharing_intent/listen_sharing_intent.framework/Headers/listen_sharing_intent-umbrella.h:13: /Users/grandmagus/Documents/development/bauBob/build/ios/Debug-dev-iphonesimulator/listen_sharing_intent/listen_sharing_intent.framework/Headers/ListenSharingIntentPlugin.h:1:9: fatal error: 'Flutter/Flutter.h' file not found listen_sharing_intent-ce67146f.input:1:1: fatal error: could not build module 'listen_sharing_intent'
Swift Compiler Error (Xcode): Unable to find module dependency: 'Flutter'
Swift Compiler Error (Xcode): Compilation search paths unable to resolve module dependency: 'listen_sharing_intent'
Could not build the application for the simulator. Error launching application on iPhone 17. [/code] Подфайл: [code]# Uncomment this line to define a global platform for your project platform :ios, '15.0'
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