ABOUT ME

-

Today
-
Yesterday
-
Total
-
  • Flutter IOS 빌드 에러 Exception: Error running pod install
    개발/flutter 2021. 1. 27. 11:54
    Launching lib/main.dart on simon의 iPad in debug mode...
     lib/main.dart
    Automatically signing iOS for device deployment using specified development team in Xcode project: 4B7YLKL5S2
    CocoaPods' output:
    ↳
          Preparing
        Analyzing dependencies
        Inspecting targets to integrate
          Using `ARCHS` setting to build architectures of target `Pods-Runner`: (``)
        Finding Podfile changes
          - Flutter
          - app_settings
          - audioplayer
          - device_info
          - firebase_analytics
          - firebase_core
          - flutter_ble_lib
          - flutter_inappwebview
          - flutter_keyboard_visibility
          - fluttertoast
          - package_info
          - path_provider
          - permission_handler
          - shared_preferences
          - sqflite
          - url_launcher
          - video_player
          - wakelock
          - webview_flutter
        Fetching external sources
        -> Fetching podspec for `Flutter` from `Flutter`
        -> Fetching podspec for `app_settings` from `.symlinks/plugins/app_settings/ios`
        -> Fetching podspec for `audioplayer` from `.symlinks/plugins/audioplayer/ios`
        -> Fetching podspec for `device_info` from `.symlinks/plugins/device_info/ios`
        -> Fetching podspec for `firebase_analytics` from `.symlinks/plugins/firebase_analytics/ios`
        firebase_analytics: Using Firebase SDK version '6.33.0' defined in 'firebase_core'
        -> Fetching podspec for `firebase_core` from `.symlinks/plugins/firebase_core/ios`
        firebase_core: Using Firebase SDK version '6.33.0' defined in 'firebase_core'
        -> Fetching podspec for `flutter_ble_lib` from `.symlinks/plugins/flutter_ble_lib/ios`
        -> Fetching podspec for `flutter_inappwebview` from `.symlinks/plugins/flutter_inappwebview/ios`
        -> Fetching podspec for `flutter_keyboard_visibility` from `.symlinks/plugins/flutter_keyboard_visibility/ios`
        -> Fetching podspec for `fluttertoast` from `.symlinks/plugins/fluttertoast/ios`
        -> Fetching podspec for `package_info` from `.symlinks/plugins/package_info/ios`
        -> Fetching podspec for `path_provider` from `.symlinks/plugins/path_provider/ios`
        -> Fetching podspec for `permission_handler` from `.symlinks/plugins/permission_handler/ios`
        -> Fetching podspec for `shared_preferences` from `.symlinks/plugins/shared_preferences/ios`
        -> Fetching podspec for `sqflite` from `.symlinks/plugins/sqflite/ios`
        -> Fetching podspec for `url_launcher` from `.symlinks/plugins/url_launcher/ios`
        -> Fetching podspec for `video_player` from `.symlinks/plugins/video_player/ios`
        -> Fetching podspec for `wakelock` from `.symlinks/plugins/wakelock/ios`
        -> Fetching podspec for `webview_flutter` from `.symlinks/plugins/webview_flutter/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_0_3_5.txt exists! Returning local because checking is only perfomed in repo update
          CDN: trunk URL couldn't be downloaded: https://cdn.cocoapods.org/Specs/0/3/5/Firebase/6.32.2/Firebase.podspec.json Response: Timeout was reached, retries: 4
          CDN: trunk URL couldn't be downloaded: https://cdn.cocoapods.org/Specs/0/3/5/Firebase/6.33.0/Firebase.podspec.json Response: Timeout was reached, retries: 4
          CDN: trunk URL couldn't be downloaded: https://cdn.cocoapods.org/Specs/0/3/5/Firebase/6.34.0/Firebase.podspec.json Response: Timeout was reached, retries: 4
          CDN: trunk URL couldn't be downloaded: https://cdn.cocoapods.org/Specs/0/3/5/Firebase/7.0.0/Firebase.podspec.json Response: Timeout was reached, retries: 4
          CDN: trunk URL couldn't be downloaded: https://cdn.cocoapods.org/Specs/0/3/5/Firebase/7.1.0/Firebase.podspec.json Response: Timeout was reached, retries: 4
          CDN: trunk URL couldn't be downloaded: https://cdn.cocoapods.org/Specs/0/3/5/Firebase/7.2.0/Firebase.podspec.json Response: Timeout was reached, retries: 4
          CDN: trunk URL couldn't be downloaded: https://cdn.cocoapods.org/Specs/0/3/5/Firebase/7.2.0-M1/Firebase.podspec.json Response: Timeout was reached, retries: 4
          CDN: trunk URL couldn't be downloaded: https://cdn.cocoapods.org/Specs/0/3/5/Firebase/7.3.0/Firebase.podspec.json Response: Timeout was reached, retries: 4
          CDN: trunk URL couldn't be downloaded: https://cdn.cocoapods.org/Specs/0/3/5/Firebase/7.3.0-M1/Firebase.podspec.json Response: Timeout was reached, retries: 4
          CDN: trunk URL couldn't be downloaded: https://cdn.cocoapods.org/Specs/0/3/5/Firebase/7.4.0/Firebase.podspec.json Response: Timeout was reached, retries: 4
          CDN: trunk URL couldn't be downloaded: https://cdn.cocoapods.org/Specs/0/3/5/Firebase/7.4.0-M1/Firebase.podspec.json Response: Timeout was reached, retries: 4
          CDN: trunk URL couldn't be downloaded: https://cdn.cocoapods.org/Specs/0/3/5/Firebase/6.32.2/Firebase.podspec.json Response: Timeout was reached, retries: 3
          CDN: trunk URL couldn't be downloaded: https://cdn.cocoapods.org/Specs/0/3/5/Firebase/6.33.0/Firebase.podspec.json Response: Timeout was reached, retries: 3
          CDN: trunk URL couldn't be downloaded: https://cdn.cocoapods.org/Specs/0/3/5/Firebase/7.2.0/Firebase.podspec.json Response: Couldn't resolve host name, retries: 3
          CDN: trunk URL couldn't be downloaded: https://cdn.cocoapods.org/Specs/0/3/5/Firebase/7.3.0/Firebase.podspec.json Response: Couldn't resolve host name, retries: 3
          CDN: trunk URL couldn't be downloaded: https://cdn.cocoapods.org/Specs/0/3/5/Firebase/6.34.0/Firebase.podspec.json Response: Timeout was reached, retries: 3
          CDN: trunk URL couldn't be downloaded: https://cdn.cocoapods.org/Specs/0/3/5/Firebase/7.0.0/Firebase.podspec.json Response: Timeout was reached, retries: 3
          CDN: trunk URL couldn't be downloaded: https://cdn.cocoapods.org/Specs/0/3/5/Firebase/7.1.0/Firebase.podspec.json Response: Timeout was reached, retries: 3
          CDN: trunk URL couldn't be downloaded: https://cdn.cocoapods.org/Specs/0/3/5/Firebase/7.2.0-M1/Firebase.podspec.json Response: Timeout was reached, retries: 3
          CDN: trunk URL couldn't be downloaded: https://cdn.cocoapods.org/Specs/0/3/5/Firebase/7.3.0-M1/Firebase.podspec.json Response: Timeout was reached, retries: 3
          CDN: trunk URL couldn't be downloaded: https://cdn.cocoapods.org/Specs/0/3/5/Firebase/7.4.0/Firebase.podspec.json Response: Timeout was reached, retries: 3
          CDN: trunk URL couldn't be downloaded: https://cdn.cocoapods.org/Specs/0/3/5/Firebase/7.4.0-M1/Firebase.podspec.json Response: Timeout was reached, retries: 3
          CDN: trunk URL couldn't be downloaded: https://cdn.cocoapods.org/Specs/0/3/5/Firebase/6.32.2/Firebase.podspec.json Response: Timeout was reached, retries: 2
          CDN: trunk URL couldn't be downloaded: https://cdn.cocoapods.org/Specs/0/3/5/Firebase/6.33.0/Firebase.podspec.json Response: Couldn't resolve host name, retries: 2
          CDN: trunk URL couldn't be downloaded: https://cdn.cocoapods.org/Specs/0/3/5/Firebase/7.2.0/Firebase.podspec.json Response: Couldn't resolve host name, retries: 2
          CDN: trunk URL couldn't be downloaded: https://cdn.cocoapods.org/Specs/0/3/5/Firebase/7.3.0/Firebase.podspec.json Response: Couldn't resolve host name, retries: 2
          CDN: trunk URL couldn't be downloaded: https://cdn.cocoapods.org/Specs/0/3/5/Firebase/6.34.0/Firebase.podspec.json Response: Couldn't resolve host name, retries: 2
          CDN: trunk URL couldn't be downloaded: https://cdn.cocoapods.org/Specs/0/3/5/Firebase/7.1.0/Firebase.podspec.json Response: Couldn't resolve host name, retries: 2
          CDN: trunk URL couldn't be downloaded: https://cdn.cocoapods.org/Specs/0/3/5/Firebase/7.2.0-M1/Firebase.podspec.json Response: Couldn't resolve host name, retries: 2
          CDN: trunk URL couldn't be downloaded: https://cdn.cocoapods.org/Specs/0/3/5/Firebase/7.3.0-M1/Firebase.podspec.json Response: Couldn't resolve host name, retries: 2
          CDN: trunk URL couldn't be downloaded: https://cdn.cocoapods.org/Specs/0/3/5/Firebase/7.4.0/Firebase.podspec.json Response: Couldn't resolve host name, retries: 2
          CDN: trunk URL couldn't be downloaded: https://cdn.cocoapods.org/Specs/0/3/5/Firebase/7.4.0-M1/Firebase.podspec.json Response: Couldn't resolve host name, retries: 2
          CDN: trunk URL couldn't be downloaded: https://cdn.cocoapods.org/Specs/0/3/5/Firebase/7.0.0/Firebase.podspec.json Response: Timeout was reached, retries: 2
          CDN: trunk URL couldn't be downloaded: https://cdn.cocoapods.org/Specs/0/3/5/Firebase/6.32.2/Firebase.podspec.json Response: Timeout was reached, retries: 1
          CDN: trunk URL couldn't be downloaded: https://cdn.cocoapods.org/Specs/0/3/5/Firebase/6.33.0/Firebase.podspec.json Response: Timeout was reached, retries: 1
          CDN: trunk URL couldn't be downloaded: https://cdn.cocoapods.org/Specs/0/3/5/Firebase/7.2.0/Firebase.podspec.json Response: Timeout was reached, retries: 1
          CDN: trunk URL couldn't be downloaded: https://cdn.cocoapods.org/Specs/0/3/5/Firebase/7.3.0/Firebase.podspec.json Response: Timeout was reached, retries: 1
          CDN: trunk URL couldn't be downloaded: https://cdn.cocoapods.org/Specs/0/3/5/Firebase/6.34.0/Firebase.podspec.json Response: Timeout was reached, retries: 1
          CDN: trunk URL couldn't be downloaded: https://cdn.cocoapods.org/Specs/0/3/5/Firebase/7.1.0/Firebase.podspec.json Response: Timeout was reached, retries: 1
          CDN: trunk URL couldn't be downloaded: https://cdn.cocoapods.org/Specs/0/3/5/Firebase/7.2.0-M1/Firebase.podspec.json Response: Timeout was reached, retries: 1
          CDN: trunk URL couldn't be downloaded: https://cdn.cocoapods.org/Specs/0/3/5/Firebase/7.3.0-M1/Firebase.podspec.json Response: Timeout was reached, retries: 1
          CDN: trunk URL couldn't be downloaded: https://cdn.cocoapods.org/Specs/0/3/5/Firebase/7.4.0/Firebase.podspec.json Response: Timeout was reached, retries: 1
          CDN: trunk URL couldn't be downloaded: https://cdn.cocoapods.org/Specs/0/3/5/Firebase/7.4.0-M1/Firebase.podspec.json Response: Timeout was reached, retries: 1
          CDN: trunk URL couldn't be downloaded: https://cdn.cocoapods.org/Specs/0/3/5/Firebase/7.0.0/Firebase.podspec.json Response: Timeout was reached, retries: 1
        [!] CDN: trunk Repo update failed - 11 error(s):
        CDN: trunk URL couldn't be downloaded: https://cdn.cocoapods.org/Specs/0/3/5/Firebase/6.32.2/Firebase.podspec.json Response: Timeout was reached
        CDN: trunk URL couldn't be downloaded: https://cdn.cocoapods.org/Specs/0/3/5/Firebase/6.33.0/Firebase.podspec.json Response: Timeout was reached
        CDN: trunk URL couldn't be downloaded: https://cdn.cocoapods.org/Specs/0/3/5/Firebase/6.34.0/Firebase.podspec.json Response: Timeout was reached
        CDN: trunk URL couldn't be downloaded: https://cdn.cocoapods.org/Specs/0/3/5/Firebase/7.0.0/Firebase.podspec.json Response: Couldn't resolve host name
        CDN: trunk URL couldn't be downloaded: https://cdn.cocoapods.org/Specs/0/3/5/Firebase/7.1.0/Firebase.podspec.json Response: Couldn't resolve host name
        CDN: trunk URL couldn't be downloaded: https://cdn.cocoapods.org/Specs/0/3/5/Firebase/7.2.0/Firebase.podspec.json Response: Timeout was reached
        CDN: trunk URL couldn't be downloaded: https://cdn.cocoapods.org/Specs/0/3/5/Firebase/7.2.0-M1/Firebase.podspec.json Response: Couldn't resolve host name
        CDN: trunk URL couldn't be downloaded: https://cdn.cocoapods.org/Specs/0/3/5/Firebase/7.3.0/Firebase.podspec.json Response: Timeout was reached
        CDN: trunk URL couldn't be downloaded: https://cdn.cocoapods.org/Specs/0/3/5/Firebase/7.3.0-M1/Firebase.podspec.json Response: Couldn't resolve host name
        CDN: trunk URL couldn't be downloaded: https://cdn.cocoapods.org/Specs/0/3/5/Firebase/7.4.0/Firebase.podspec.json Response: Couldn't resolve host name
        CDN: trunk URL couldn't be downloaded: https://cdn.cocoapods.org/Specs/0/3/5/Firebase/7.4.0-M1/Firebase.podspec.json Response: Couldn't resolve host name
        /Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.10.1/lib/cocoapods-core/cdn_source.rb:483:in `rescue in concurrent_requests_catching_errors'
        /Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.10.1/lib/cocoapods-core/cdn_source.rb:478:in `concurrent_requests_catching_errors'
        /Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.10.1/lib/cocoapods-core/cdn_source.rb:121:in `versions'
        /Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.10.1/lib/cocoapods-core/specification/set.rb:99:in `block in versions_by_source'
        /Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.10.1/lib/cocoapods-core/specification/set.rb:98:in `each'
        /Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.10.1/lib/cocoapods-core/specification/set.rb:98:in `each_with_object'
        /Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.10.1/lib/cocoapods-core/specification/set.rb:98:in `versions_by_source'
        /Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.10.1/lib/cocoapods-core/specification/set.rb:56:in `specification_name'
        /Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.10.1/lib/cocoapods-core/cdn_source.rb:216:in `search'
        /Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.10.1/lib/cocoapods-core/source/aggregate.rb:83:in `block in search'
        /Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.10.1/lib/cocoapods-core/source/aggregate.rb:83:in `select'
        /Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.10.1/lib/cocoapods-core/source/aggregate.rb:83:in `search'
        /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/resolver.rb:416:in `create_set_from_sources'
        /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/resolver.rb:385:in `find_cached_set'
        /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/resolver.rb:360:in `specifications_for_dependency'
        /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/resolver.rb:165:in `search_for'
        /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/resolver.rb:274:in `block in sort_dependencies'
        /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/resolver.rb:267:in `each'
        /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/resolver.rb:267:in `sort_by'
        /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/resolver.rb:267:in `sort_dependencies'
        /Library/Ruby/Gems/2.6.0/gems/molinillo-0.6.6/lib/molinillo/delegates/specification_provider.rb:53:in `block in sort_dependencies'
        /Library/Ruby/Gems/2.6.0/gems/molinillo-0.6.6/lib/molinillo/delegates/specification_provider.rb:70:in `with_no_such_dependency_error_handling'
        /Library/Ruby/Gems/2.6.0/gems/molinillo-0.6.6/lib/molinillo/delegates/specification_provider.rb:52:in `sort_dependencies'
        /Library/Ruby/Gems/2.6.0/gems/molinillo-0.6.6/lib/molinillo/resolution.rb:754:in `push_state_for_requirements'
        /Library/Ruby/Gems/2.6.0/gems/molinillo-0.6.6/lib/molinillo/resolution.rb:746:in `require_nested_dependencies_for'
        /Library/Ruby/Gems/2.6.0/gems/molinillo-0.6.6/lib/molinillo/resolution.rb:729:in `activate_new_spec'
        /Library/Ruby/Gems/2.6.0/gems/molinillo-0.6.6/lib/molinillo/resolution.rb:686:in `attempt_to_activate'
        /Library/Ruby/Gems/2.6.0/gems/molinillo-0.6.6/lib/molinillo/resolution.rb:254:in `process_topmost_state'
        /Library/Ruby/Gems/2.6.0/gems/molinillo-0.6.6/lib/molinillo/resolution.rb:182:in `resolve'
        /Library/Ruby/Gems/2.6.0/gems/molinillo-0.6.6/lib/molinillo/resolver.rb:43:in `resolve'
        /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/resolver.rb:94:in `resolve'
        /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/installer/analyzer.rb:1074:in `block in resolve_dependencies'
        /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/user_interface.rb:64:in `section'
        /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/installer/analyzer.rb:1072:in `resolve_dependencies'
        /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/installer/analyzer.rb:124:in `analyze'
        /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/installer.rb:414:in `analyze'
        /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/installer.rb:239:in `block in resolve_dependencies'
        /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/user_interface.rb:64:in `section'
        /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/installer.rb:238:in `resolve_dependencies'
        /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/installer.rb:160:in `install!'
        /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/command/install.rb:52:in `run'
        /Library/Ruby/Gems/2.6.0/gems/claide-1.0.3/lib/claide/command.rb:334:in `run'
        /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/command.rb:52:in `run'
        /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/bin/pod:55:in `<top (required)>'
        /usr/local/bin/pod:23:in `load'
        /usr/local/bin/pod:23:in `<main>'
    Error output from CocoaPods:
    ↳
        [!] Automatically assigning platform `iOS` with version `9.0` on target `Runner` because no platform was specified. Please specify a platform for this target in your Podfile. See `https://guides.cocoapods.org/syntax/podfile.html#platform`.
    Exception: Error running pod install
    Exited (sigterm)

    에러가 파악되지 않아 

    1. flutter clean 이후 다시 빌드해도 같은 에러가 발생함

     

    xcode 에서 빌드 시도 해봤더니 

    error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.

    라는 에러가 발생했다.

     

    ios 폴더에 들어가 pod install 을 했더니 

    pod install 
    Analyzing dependencies
    firebase_analytics: Using Firebase SDK version '6.33.0' defined in 'firebase_core'
    firebase_core: Using Firebase SDK version '6.33.0' defined in 'firebase_core'
    
    
    Downloading dependencies
    Installing FMDB (2.7.5)
    
    
    
    Installing Firebase (6.33.0)
    Installing FirebaseAnalytics (6.8.3)
    Installing FirebaseCore (6.10.3)
    Installing FirebaseCoreDiagnostics (1.7.0)
    Installing FirebaseInstallations (1.7.0)
    Installing Flutter (1.0.0)
    Installing GoogleAppMeasurement (6.8.3)
    Installing GoogleDataTransport (7.5.1)
    Installing GoogleUtilities (6.7.2)
    Installing MultiplatformBleAdapter (0.1.7)
    Installing PromisesObjC (1.2.12)
    Installing Toast (4.0.0)
    Installing app_settings (3.0.0+1)
    Installing audioplayer (0.0.1)
    Installing device_info (0.0.1)
    Installing firebase_analytics (6.3.0)
    Installing firebase_core (0.5.3)
    Installing flutter_ble_lib (2.3.1)
    Installing flutter_inappwebview (0.0.1)
    Installing flutter_keyboard_visibility (0.0.1)
    Installing fluttertoast (0.0.2)
    Installing nanopb (1.30906.0)
    Installing package_info (0.0.1)
    Installing path_provider (0.0.1)
    Installing permission_handler (4.4.0+hotfix.4)
    Installing shared_preferences (0.0.1)
    Installing sqflite (0.0.2)
    Installing url_launcher (0.0.1)
    Installing video_player (0.0.1)
    Installing wakelock (0.0.1)
    Installing webview_flutter (0.0.1)
    Generating Pods project
    Integrating client project
    Pod installation complete! There are 19 dependencies from the Podfile and 32 total pods installed.

    새로 넣어놨던 firebase 플러그인이 업데이트 되면서 빌드에 성공

     

     

    개발자 이직 비법 보러가기

    댓글

Designed by Tistory.