惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

有赞技术团队
有赞技术团队
Martin Fowler
Martin Fowler
N
Netflix TechBlog - Medium
WordPress大学
WordPress大学
罗磊的独立博客
H
Help Net Security
MongoDB | Blog
MongoDB | Blog
A
About on SuperTechFans
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
D
Docker
云风的 BLOG
云风的 BLOG
Microsoft Security Blog
Microsoft Security Blog
Blog — PlanetScale
Blog — PlanetScale
P
Proofpoint News Feed
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
I
InfoQ
J
Java Code Geeks
博客园 - 聂微东
大猫的无限游戏
大猫的无限游戏
Engineering at Meta
Engineering at Meta
美团技术团队
小众软件
小众软件
Stack Overflow Blog
Stack Overflow Blog
C
Check Point Blog

Flutter

开源了一个 Flutter 多链钱包 - V2EX # 用 GPT-5 完成 Flutter/Dart 的 LoongArch 全栈移植:从 Dart VM 到 Flutter Engine 与 eLinux - V2EX 开源一个 flutter 开发的 web3 钱包 app - V2EX kkRepo 只用 1 天就支持了 Futter / Dart / Pub 仓库私服搭建、支持代理 pub.dev、支持聚合私服和 Proxy flutter 开发的鸿蒙应用上架应用商店了 flutter 现在开发最佳的库用什么?或者有什么好用的脚手架吗? USB 摄像头求助。 flutter 引入 aar 包,运行报错,版本 3.38.9 用 Flutter 做了一个 Redis Desktop Manager flutter 生态这么差?写个 demo 两天都没调通 由于开发 flutter 然后测试是黑盒测试只会手点,开发了个插件 求助, flutter 项目混合式搭建问题 求助大神,为什么用 flutter 开发的安卓笔记软件卡顿、掉帧 写了一个 flutter 的状态管理库,大家参谋参谋。 开源一套 flutter UI 组件库,方便各位大佬快速进行跨平台开发,欢迎各位大佬 start Flutter 的学习曲线高吗?对于个人开发者来说是否值得 闲着没事开发一款网文写作应用—— Letter Studio 请教 flutter-windows 客户端白屏问题。 最简单的状态管理库 view_model 第一次写 flutter app 有个疑问 Flutter in_app_purchase 内购在 iOS 上的应用总结 另一个视角看 Flutter 的思维 招 flutter 工程师 兼职! 求推荐一个基础框架 Ubuntu 团队为什么无偿给 Flutter 写桌面多窗口功能? 请教: flutter 或 Android 更新、热更新方案 求一份 iOS 或者 Flutter 兼职 求助贴!关于 Flutter 接入 in_app_purchase 内购服务端部分二次验证的 flutter 是不是要升级所有的 widget 了? 上架 Play store 的问题...
flutter 启动 ios 项目失败 n 次,求大神帮忙
avenhen · 2025-01-08 · via Flutter

我已经被这个破报错折腾了俩晚上了,google 上各种方法都尝试了,就是绕不过去。求大神解答。
## 启动报错内容
```txt
Failed to build iOS app
Error output from Xcode build:

--- xcodebuild: WARNING: Using the first of multiple matching destinations:
{ platform:iOS Simulator, id:16524F90-A508-4F0D-9091-F0CF7A5A6686, OS:17.5, name:iPhone 14 Pro }
{ platform:iOS Simulator, id:16524F90-A508-4F0D-9091-F0CF7A5A6686, OS:17.5, name:iPhone 14 Pro }
** BUILD FAILED **
Xcode's output:

Writing result bundle at path:
/var/folders/fq/2051nhxx5rs4svtvnsd_hvjr0000gn/T/flutter_tools.mEnGAj/flutter_ios_build_temp_dirENnESM/temporary_xcresult_bundle
/Users/cloud_prg/.pub-cache/hosted/pub.flutter-io.cn/wakelock-0.5.3+3/ios/Classes/messages.m:4:9: fatal error: 'Flutter/Flutter.h' file not found
#import
^~~~~~~~~~~~~~~~~~~
1 error generated.
In file included from /Users/cloud_prg/.pub-cache/hosted/pub.flutter-io.cn/wakelock-0.5.3+3/ios/Classes/WakelockPlugin.m:1:
/Users/cloud_prg/.pub-cache/hosted/pub.flutter-io.cn/wakelock-0.5.3+3/ios/Classes/WakelockPlugin.h:1:9: fatal error: 'Flutter/Flutter.h' file not
found
#import
^~~~~~~~~~~~~~~~~~~
1 error generated.
/Users/cloud_prg/.pub-cache/hosted/pub.flutter-io.cn/video_player-2.1.15/ios/Classes/messages.m:8:9: fatal error: 'Flutter/Flutter.h' file not
found
#import
^~~~~~~~~~~~~~~~~~~
1 error generated.
Command SwiftEmitModule failed with a nonzero exit code
/Users/cloud_prg/Documents/project/github/FLUTTER/flutter_bolg_manage/ios/Runner.xcodeproj: warning: The iOS Simulator deployment target
'IPHONEOS_DEPLOYMENT_TARGET' is set to 11.0, but the range of supported deployment target versions is 12.0 to 17.5.99. (in target 'Runner' from
project 'Runner')
warning: Run script build phase 'Thin Binary' will be run during every build because it does not specify any outputs. To address this warning,
either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the
script phase. (in target 'Runner' from project 'Runner')
warning: Run script build phase 'Run Script' will be run during every build because it does not specify any outputs. To address this warning,
either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the
script phase. (in target 'Runner' from project 'Runner')
Lexical or Preprocessor Issue (Xcode): 'Flutter/Flutter.h' file not found
/Users/cloud_prg/.pub-cache/hosted/pub.flutter-io.cn/wakelock-0.5.3+3/ios/Classes/messages.m:3:8
Lexical or Preprocessor Issue (Xcode): 'Flutter/Flutter.h' file not found
/Users/cloud_prg/.pub-cache/hosted/pub.flutter-io.cn/wakelock-0.5.3+3/ios/Classes/WakelockPlugin.h:0:8
Lexical or Preprocessor Issue (Xcode): 'Flutter/Flutter.h' file not found
/Users/cloud_prg/.pub-cache/hosted/pub.flutter-io.cn/video_player-2.1.15/ios/Classes/messages.m:7:8
Uncategorized (Xcode): Command SwiftEmitModule failed with a nonzero exit code
Could not build the application for the simulator.
Error launching application on iPhone 14 Pro.
```
## podFile 内容
```Podfile
# Uncomment this line to define a global platform for your project
platform :ios, "14.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!
use_modular_headers!
flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
end
post_install do |installer|
installer.pods_project.targets.each do |target|
flutter_additional_macos_build_settings(target)
target.build_configurations.each do |config|
config.build_settings["IPHONEOS_DEPLOYMENT_TARGET"] = "14.0"
end
end
end
```