flutter 在Xcode15.2中 关于新建target后报错问题处理

在近期升级Xcode15.2的小伙伴,如果遇到了升级后原来flutter的项目无法运行,并遇到类似下面的错误信息时
Error (Xcode): Cycle inside Runner; building could produce unreliable results. This usually can be resolved by moving the shell script phase ‘Thin Binary’ so that it runs before the build phase that depends on its outputs.
Cycle details:
→ Target ‘Runner’: CodeSign /Users/xxx/…/build/ios/Debug-iphonesimulator/Runner.app
○ Target ‘Runner’ has process command with output ‘/Users/xxx/…/build/ios/Debug-iphonesimulator/Runner.app/Info.plist’
○ Target ‘Runner’ has copy command from ‘/Users/xxx/…/build/ios/Debug-iphonesimulator/serviceext.appex’ to ‘/Users/xxx/…/build/ios/Debug-iphonesimulator/Runner.app/PlugIns/serviceext.appex’
○ That command depends on command in Target ‘Runner’: script phase “Thin Binary”
Raw dependency cycle trace:

你需要进入iOS项目,点击左侧目录里的第一个Runner项目,右侧内容中找到TARGETS,点击第一个target,然后右侧选择Build Phases,将里面的内容重新排序,排序的顺序按照下面的顺序进行调整

Target Dependencies (1 item)  
Run Build Tool Plug ins (0 items)  
(CP] Check Pods Manifest.lock  
Embed Frameworks (o items)  
Embed Foundation Extensions (1 item)  
[CP] Embed Pods Frameworks  
Run Script  
Compile Sources (2 items)  
Link Binary with Libraries (1 item)  
Copy Bundle Resources (6 items)  
Thin Binary

调整后运行就可以解决上面的报错问题了

  • 11
    点赞
  • 9
    收藏
    觉得还不错? 一键收藏
  • 5
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 5
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值