Home>

I'm having trouble building an app with flutter.
https://pub.dev/packages/video_player_360
I'm using this library
It worked fine on Android, but when I tested it on iOS, it got stuck with the following error.

Launching lib/main.dart on iPhone SE (2nd generation) in debug mode ...
Running pod install ... 1.9s
CocoaPods' output:
↳
      Preparing
    Analyzing dependencies
    Inspecting targets to integrate
      Using `ARCHS` setting to build architectures of target` Pods-Runner`: (``)
    Fetching external sources
    ->Fetching podspec for `Flutter` from` Flutter`
    ->Fetching podspec for `video_player_360` from` .symlinks/plugins/video_player_360/ios`
    Resolving dependencies of `Podfile`
      CDN: trunk Relative path: CocoaPods-version.yml exists! Returning local because checking is only perfomed in repo update
      CDN: trunk Relative path: all_pods_versions_7_3_e.txt exists! Returning local because checking is only perfomed in repo
      update
      CDN: trunk Relative path: Specs/7/3/e/GVRKit/1.170.0/GVRKit.podspec.json exists! Returning local because checking is only
      perfomed in repo update
      CDN: trunk Relative path: Specs/7/3/e/GVRKit/1.170.0/GVRKit.podspec.json exists! Returning local because checking is only
      perfomed in repo update
      CDN: trunk Relative path: all_pods_versions_3_7_9.txt exists! Returning local because checking is only perfomed in repo
      update
      CDN: trunk Relative path: Specs/3/7/9/GVRSDK/1.170.0/GVRSDK.podspec.json exists! Returning local because checking is only
      perfomed in repo update
      CDN: trunk Relative path: Specs/3/7/9/GVRSDK/1.170.0/GVRSDK.podspec.json exists! Returning local because checking is only
      perfomed in repo update
      CDN: trunk Relative path: all_pods_versions_c_e_3.txt exists! Returning local because checking is only perfomed in repo
      update
      CDN: trunk Relative path: Specs/c/e/3/GTMSessionFetcher/1.3.1/GTMSessionFetcher.podspec.json exists! Returning local
      because checking is only perfomed in repo update
      CDN: trunk Relative path: Specs/c/e/3/GTMSessionFetcher/1.1.0/GTMSessionFetcher.podspec.json exists! Returning local
      because checking is only perfomed in repo update
      CDN: trunk Relative path: Specs/c/e/3/GTMSessionFetcher/1.1.1/GTMSessionFetcher.podspec.json exists! Returning local
      because checking is only perfomed in repo update
      CDN: trunk Relative path: Specs/c/e/3/GTMSessionFetcher/1.1.2/GTMSessionFetcher.podspec.json exists! Returning localbecause checking is only perfomed in repo update
      CDN: trunk Relative path: Specs/c/e/3/GTMSessionFetcher/1.1.3/GTMSessionFetcher.podspec.json exists! Returning local
      because checking is only perfomed in repo update
      CDN: trunk Relative path: Specs/c/e/3/GTMSessionFetcher/1.1.4/GTMSessionFetcher.podspec.json exists! Returning local
      because checking is only perfomed in repo update
      CDN: trunk Relative path: Specs/c/e/3/GTMSessionFetcher/1.1.5/GTMSessionFetcher.podspec.json exists! Returning local
      because checking is only perfomed in repo update
      CDN: trunk Relative path: Specs/c/e/3/GTMSessionFetcher/1.1.6/GTMSessionFetcher.podspec.json exists! Returning local
      because checking is only perfomed in repo update
      CDN: trunk Relative path: Specs/c/e/3/GTMSessionFetcher/1.1.7/GTMSessionFetcher.podspec.json exists! Returning local
      because checking is only perfomed in repo update
      CDN: trunk Relative path: Specs/c/e/3/GTMSessionFetcher/1.1.8/GTMSessionFetcher.podspec.json exists! Returning local
      because checking is only perfomed in repo update
      CDN: trunk Relative path: Specs/c/e/3/GTMSessionFetcher/1.1.9/GTMSessionFetcher.podspec.json exists! Returning local
      because checking is only perfomed in repo update
      CDN: trunk Relative path: Specs/c/e/3/GTMSessionFetcher /1.1.10/GTMSessionFetcher.podspec.json exists! Returning local
      because checking is only perfomed in repo update
      CDN: trunk Relative path: Specs/c/e/3/GTMSessionFetcher/11.11/GTMSessionFetcher.podspec.json exists! Returning local
      because checking is only perfomed in repo update
      CDN: trunk Relative path: Specs/c/e/3/GTMSessionFetcher/11.12/GTMSessionFetcher.podspec.json exists! Returning local
      because checking is only perfomed in repo update
      CDN: trunk Relative path: Specs/c/e/3/GTMSessionFetcher/1.1.13/GTMSessionFetcher.podspec.json exists! Returning local
      because checking is only perfomed in repo update
      CDN: trunk Relative path: Specs/c/e/3/GTMSessionFetcher/1.1.14/GTMSessionFetcher.podspec.json exists! Returning local
      because checking is only perfomed in repo update
      CDN: trunk Relative path: Specs/c/e/3/GTMSessionFetcher/1.1.15/GTMSessionFetcher.podspec.json exists! Returning local
      because checking is only perfomed in repo update
      CDN: trunk Relative path: Specs/c/e/3/GTMSessionFetcher/1.2.0/GTMSessionFetcher.podspec.json exists! Returning local
      because checking is only perfomed in repo update
      CDN: trunk Relative path: Specs/c/e/3/GTMSessionFetcher/1.2.1/GTMSessionFetcher.podspec.json exists! Returning local
      because checking is only perfomed in repo update
      CDN: trunk Relative path: Specs/c/e/3/GTMSessionFetcher/1.2.2/GTMSessionFetcher.podspec.json exists! Returning local
      because checking is only perfomed in repo update
      CDN: trunk Relative path: Specs/c/e/3/GTMSessionFetcher/1.3.0/GTMSessionFetcher.podspec.json exists! Returning local
      because checking is only perfomed in repo update
      CDN: trunk Relative path: Specs/c/e/3/GTMSessionFetcher/1.3.1/GTMSessionFetcher.podspec.json exists! Returning local
      because checking is only perfomed in repo update
      CDN: trunk Relative path: all_pods_versions_7_4_b.txt exists! Returning local because checking is only perfomed in repoupdate
      CDN: trunk Relative path: Specs/7/4/b/GoogleToolboxForMac/2.2.2/GoogleToolboxForMac.podspec.json exists! Returning local
      because checking is only perfomed in repo update
      CDN: trunk Relative path: Specs/7/4/b/GoogleToolboxForMac/2.1.0/GoogleToolboxForMac.podspec.json exists! Returning local
      because checking is only perfomed in repo update
      CDN: trunk Relative path: Specs/7/4/b/GoogleToolboxForMac/2.1.1/GoogleToolboxForMac.podspec.json exists! Returning local
      because checking is only perfomed in repo update
      CDN: trunk Relative path: Specs/7/4/b/GoogleToolboxForMac/2.1.2/GoogleToolboxForMac.podspec.json exists! Returning local
      because checking is only perfomed in repo update
      CDN: trunk Relative path: Specs/7/4/b/GoogleToolboxForMac/2.1.3/GoogleToolboxForMac.podspec.json exists! Returning local
      because checking is only perfomed in repo update
      CDN: trunk Relative path: Specs/7/4/b/GoogleToolboxForMac/2.1.4/GoogleToolboxForMac.podspec.json exists! Returning local
      because checking is only perfomed in repo update
      CDN: trunk Relative path: Specs/7/4/b/GoogleToolboxForMac/2.2.0/GoogleToolboxForMac.podspec.json exists! Returning local
      because checking is only perfomed in repo update
      CDN: trunk Relative path: Specs/7/4/b/GoogleToolboxForMac/2.2.1/GoogleToolboxForMac.podspec.json exists! Returning local
      because checking is only perfomed in repo update
      CDN: trunk Relative path: Specs/7/4/b/GoogleToolboxForMac/2.2.2/GoogleToolboxForMac.podspec.json exists! Returning local
      because checking is only perfomed in repo update
      CDN: trunk Relative path: Specs/7/4/b/GoogleToolboxForMac/2.2.2/GoogleToolboxForMac.podspec.json exists! Returning local
      because checking is only perfomed in repo update
    Comparing resolved specification to the sandbox manifest
      A Flutter
      A GTMSessionFetcher
      A GVRKit
      A GVR SDK
      A GoogleToolboxForMac
      A video_player_360
    Downloading dependencies
Omitted below due to character limit
Error running pod install

As a countermeasure currently tried
https://stackoverflow.com/questions/54912188/flutter-plugin-ios-build-fail

We are implementing this solution.
I would appreciate it if you could tell me if i am stuck in a similar place.

Postscript
https://github.com/flutter/flutter/issues/20045
I tried, but it didn't work.

  • Answer # 1

    When I checked the README of the package, I found the following description at the bottom.
    -i swiftI meanflutter createIt's the default value for the command, so I suspect this is the cause.

    This plugin will not work if the flutter project was created with -i swift flag.


    If you try to create a project in Objective-C with the following command, it should work normally.

    flutter create -i objc<project_name>