Я сталкиваюсь с проблемой во время создания моего приложения Flutter iOS. The build fails with the following error message:
PrecompileModule
/path/to/project/build/ios/framework/Debug/iphoneos/ExplicitPrecompiledModules/ObjectiveC-XXXXXXXXXXXXXXX.scan
cd /path/to/project/.ios/pods
buildin-precompilemodule
/path/to/project/build/ios/framework/debug/iphoneos/explicitpercompiledmodules/objectivec-xxxxxxxxxxxx.scan Пикбр />/Applications/xcode.app/contents/developer/toolchains/xcodedefault.xctoolchain/usr/bin/clang
-cc1
...shipameters опущено) ...
/> fmodule-map-file=/applications/xcode.app/contents/developer/platforms/iphoneos.platform/developer/sdks/iphoneos.sdk/usr/include/objectivec.modulemap
...s.pparameters omatid /Applications/xcode.app/contents/developer/platforms/iphoneos.platform/developer/sdks/iphoneos.sdk
.. /var/folders/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/c/com.apple.developertools/16.2-16c5032a /Xcode/sdkstatcaches.noindex/iphoneos18.2-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.sdkstatcache
.. />'/VAR/FOLDERS/XXX/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/com.apple.developertools/16.2-16c5032 A/XCODE/SDKSTATCACHES.NOINDEX/iPhoneOS18.2-XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.SDKSTATCACHE '
Не найдена
1 сгенерирована ошибкой. < /p>
** BUILD FAILED **
The following build commands failed:
PrecompileModule
/path/to/project/build/ios/framework/Debug/iphoneos/ExplicitPrecompiledModules/ObjectiveC-XXXXXXXXXXXXXXX.scan
(1 failure)
#0 throptoolexit (пакет: flutter_tools/src/base/common.dart: 10: 3)
#1 buildiosframe). Buildiosframeworkcommand.runcommand (пакет: flutter_tools/src/commands/build_ios_framework.dart: 268: 9)
#3 fluttercommand.run. (Пакет: Flutter_tools/src/runner/flutter_command.dart: 1257: 27)
#4 appcontext.run. (Пакет: Flutter_tools/src/base/context.dart: 150: 19)
#5 CommandRunner.RunCommand (пакет: args/command_runner.dart: 209: 13)
#6 fluttercommandrunner.runcommand. (Пакет: Flutter_tools/src/runner/flutter_command_runner.dart: 283: 9)
#7 appcontext.run. (Пакет: Flutter_tools/src/base/context.dart: 150: 19)
#8 fluttercommandrunner.runcommand (пакет: flutter_tools/src/runner/flutter_command_runner.dart: 229: 5)
#9 Run. />#10 appcontext.run. (Пакет: Flutter_tools/src/base/context.dart: 150: 19)
#11 Main (пакет: flutter_tools/executive.dart: 91: 3)
podfile:
platform :ios, '13.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!
flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
pod 'FlutterPluginRegistrant', :path => File.join('Flutter', 'FlutterPluginRegistrant'), :inhibit_warnings => true
end
post_install do |installer|
installer.pods_project.targets.each do |target|
flutter_additional_ios_build_settings(target)
target.build_configurations.each do |config|
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '13.0'
end
end
end
Подробнее здесь: https://stackoverflow.com/questions/796 ... ild-failed
Flutter Build IOS: неудачная сборка PrecompileModule ⇐ IOS
-
- Похожие темы
- Ответы
- Просмотры
- Последнее сообщение