skip to Main Content

I recently updated android studio to Flamingo | 2022.2.1 Patch 2 and the followed by updating Flutter and all of its packages.
previously, when I ran flutter build ipa in the terminal in android studio, it would build my apps .ipa without any trouble. now that I’ve updated android studio I’m getting the below error when i run flutter build ipa.

`development@NC-MBP my_app % flutter build ipa

Archiving com.crossfiregames.my_app…
Signing iOS app for device deployment using developer identity: "Apple Development: NC (XKJ4653QSG)"
Running pod install… 299ms
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`.

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

Error running pod install`

I tried searching for the error that it is giving me, [!] Unable to find a target named RunnerTests in project Runner.xcodeproj, did find Runner.

but cannot find much info about it. has anyone had this trouble before? and if so, how do i go ahead and fix it please? I’m new to flutter and this is beyond me.

thanks so much

2

Answers


  1. As a workaround, I typically flutter clean.

    If that doesn’t work, rm -r ios and flutter create --platforms=ios, which recreates the iOS directory. If you still can’t build, please file an issue at github.com/flutter/flutter/issues/new/choose

    Login or Signup to reply.
  2. According to the error message, it seems that there is an issue with the project CocoaPods configuration. In this case, let’s try the following steps:

    • From the terminal, in the root directory of the project run

      pod repo update
      

      In case of not having CocoaPods installed, run sudo gem install cocoapods.

    • Next, reinstall the CocoaPods dependencies, by running the following commands:

      rm ios/Podfile.lock
      rm -rf ios/Pods
      pod install --project-directory=ios
      

    They remove the existing Podfile.lock file, the "Pods" directory thus reinstalling the CocoaPods dependencies.

    Finally, run flutter build ipa.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search