我正在try 为iOS在Ffltter中创建方案.我遵循了很多教程.每个人都做了不同的事情.

收到这个错误,因为我没有iOS的经验,不知道如何修复:

Launching lib/main_dev.dart on iPhone 14 Pro in debug mode...
Running pod install...
CocoaPods' output:
↳
      Preparing

    Analyzing dependencies

    Inspecting targets to integrate
      Using `ARCHS` setting to build architectures of target `Pods-Runner`: (``)
    [!] Unable to find a target named `RunnerTests` in project `Runner.xcodeproj`, did find `Runner`.

    /usr/local/Cellar/cocoapods/1.12.0/libexec/gems/cocoapods-1.12.0/lib/cocoapods/installer/analyzer/target_inspector.rb:108:in `compute_targets'
    /usr/local/Cellar/cocoapods/1.12.0/libexec/gems/cocoapods-1.12.0/lib/cocoapods/installer/analyzer/target_inspector.rb:40:in `compute_results'
    /usr/local/Cellar/cocoapods/1.12.0/libexec/gems/cocoapods-1.12.0/lib/cocoapods/installer/analyzer.rb:1197:in `block (3 levels) in inspect_targets_to_integrate'
    /usr/local/Cellar/cocoapods/1.12.0/libexec/gems/cocoapods-1.12.0/lib/cocoapods/installer/analyzer.rb:1195:in `each'
    /usr/local/Cellar/cocoapods/1.12.0/libexec/gems/cocoapods-1.12.0/lib/cocoapods/installer/analyzer.rb:1195:in `block (2 levels) in inspect_targets_to_integrate'
    /usr/local/Cellar/cocoapods/1.12.0/libexec/gems/cocoapods-1.12.0/lib/cocoapods/installer/analyzer.rb:1193:in `each'
    /usr/local/Cellar/cocoapods/1.12.0/libexec/gems/cocoapods-1.12.0/lib/cocoapods/installer/analyzer.rb:1193:in `block in inspect_targets_to_integrate'
    /usr/local/Cellar/cocoapods/1.12.0/libexec/gems/cocoapods-1.12.0/lib/cocoapods/user_interface.rb:64:in `section'
    /usr/local/Cellar/cocoapods/1.12.0/libexec/gems/cocoapods-1.12.0/lib/cocoapods/installer/analyzer.rb:1188:in `inspect_targets_to_integrate'
    /usr/local/Cellar/cocoapods/1.12.0/libexec/gems/cocoapods-1.12.0/lib/cocoapods/installer/analyzer.rb:107:in `analyze'
    /usr/local/Cellar/cocoapods/1.12.0/libexec/gems/cocoapods-1.12.0/lib/cocoapods/installer.rb:422:in `analyze'
    /usr/local/Cellar/cocoapods/1.12.0/libexec/gems/cocoapods-1.12.0/lib/cocoapods/installer.rb:244:in `block in resolve_dependencies'
    /usr/local/Cellar/cocoapods/1.12.0/libexec/gems/cocoapods-1.12.0/lib/cocoapods/user_interface.rb:64:in `section'
    /usr/local/Cellar/cocoapods/1.12.0/libexec/gems/cocoapods-1.12.0/lib/cocoapods/installer.rb:243:in `resolve_dependencies'
    /usr/local/Cellar/cocoapods/1.12.0/libexec/gems/cocoapods-1.12.0/lib/cocoapods/installer.rb:162:in `install!'
    /usr/local/Cellar/cocoapods/1.12.0/libexec/gems/cocoapods-1.12.0/lib/cocoapods/command/install.rb:52:in `run'
    /usr/local/Cellar/cocoapods/1.12.0/libexec/gems/claide-1.1.0/lib/claide/command.rb:334:in `run'
    /usr/local/Cellar/cocoapods/1.12.0/libexec/gems/cocoapods-1.12.0/lib/cocoapods/command.rb:52:in `run'
    /usr/local/Cellar/cocoapods/1.12.0/libexec/gems/cocoapods-1.12.0/bin/pod:55:in `<top (required)>'
    /usr/local/Cellar/cocoapods/1.12.0/libexec/bin/pod:25:in `load'
    /usr/local/Cellar/cocoapods/1.12.0/libexec/bin/pod:25:in `<main>'

Error running pod install
Error launching application on iPhone 14 Pro.

我已经创造了2种口味的方式prod和dev,在Android上工作得很好.已经遵循了一些堆栈溢出解决方案.什么都没有用.

推荐答案

只需在info.plist中注释代码

target 'RunnerTests' do     
    inherit! :search_paths   
  end

或任何与info.plist中的RunnerTest相关的代码

Ios相关问答推荐

构建iOS项目失败.我们运行了";xcodeBuild";命令,但它退出并返回错误代码65-expo reaction ative

在SwiftUI中为圆角矩形创建均匀分布的点轮廓

在SwiftUI中插入绘制重复形状

如何从Windows PC在iPhone上安装Flutter 应用程序

自定义UIControl不适用于UITapGestureRecognizer

SwiftData在获取值时应用程序崩溃:线程1:EXC_BREAKPOINT(代码=1,子代码=0x101e8303c)

flutter中实现自定义底部导航栏

无法向委托发送数据

无法在 CollectionView 中禁用部分弹跳 - 组合布局

iOS - 判断开发者模式是否开启 (Swift)

Swift Combine 防止初始值触发接收器并同时防止重复?

在 Swift 中从 Objective C 集合调用块

通过 Rosetta 打开模拟器 xcode 14 以修复滚动

TextField 重复输入 SwiftUI

iOS,Swift 5,AppDelegate open url / .onOpenUrl - 如何找到调用我的自定义方案的调用应用程序

在 iOS 编程中使用 Storyboard 代替 xib 文件有什么好处?

SwiftUI NavigationView navigationBarTitle LayoutConstraints 问题

使用 swift 3 在 UIView 上添加阴影

SwiftUI 应用生命周期 iOS14 AppDelegate 代码放哪里?

我可以在 UIScrollView 中使用 UIRefreshControl 吗?