Flutter 1.9.1 + hotfix.6,无法使用以下命令为ios构建:
flutter build ios
我遇到以下错误:
Building com.onlineparts.buyer for device (ios-release)...
Automatically signing iOS for device deployment using specified development team in Xcode project: *******
Running pod install... 1.4s
CocoaPods' output:
↳
Preparing
Analyzing dependencies
Inspecting targets to integrate
Using `ARCHS` setting to build architectures of target `Pods-Runner`: (`arm64`)
Finding Podfile changes
A sqflite
M Flutter
- firebase_messaging
- image_picker
- location
- path_provider
- url_launcher
Fetching external sources
-> Fetching podspec for `Flutter` from `.symlinks/flutter/ios-release`
-> Fetching podspec for `firebase_messaging` from `.symlinks/plugins/firebase_messaging/ios`
-> Fetching podspec for `image_picker` from `.symlinks/plugins/image_picker/ios`
-> Fetching podspec for `location` from `.symlinks/plugins/location/ios`
-> Fetching podspec for `path_provider` from `.symlinks/plugins/path_provider/ios`
-> Fetching podspec for `sqflite` from `.symlinks/plugins/sqflite/ios`
-> Fetching podspec for `url_launcher` from `.symlinks/plugins/url_launcher/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_f_4_e.txt exists! Returning local because checking is only perfomed in repo update
CDN: trunk Relative path: Specs/f/4/e/FMDB/2.7.5/FMDB.podspec.json exists! Returning local because checking is only perfomed in repo update
CDN: trunk Relative path: Specs/f/4/e/FMDB/2.7.5/FMDB.podspec.json exists! Returning local because checking is only perfomed in repo update
CDN: trunk Relative path: Specs/f/4/e/FMDB/2.7.2/FMDB.podspec.json exists! Returning local because checking is only perfomed in repo update
CDN: trunk Relative path: Specs/f/4/e/FMDB/2.7.5/FMDB.podspec.json exists! Returning local because checking is only perfomed in repo update
Comparing resolved specification to the sandbox manifest
A FMDB
A Firebase
A FirebaseAnalytics
A FirebaseCore
A FirebaseInstanceID
A FirebaseMessaging
A Flutter
A GoogleToolboxForMac
A Protobuf
A firebase_messaging
A image_picker
A location
A nanopb
A path_provider
A sqflite
A url_launcher
Downloading dependencies
-> Installing FMDB (2.7.5)
> Copying FMDB from `/Users/alexanderkim/Library/Caches/CocoaPods/Pods/Release/FMDB/2.7.5-2ce00` to `Pods/FMDB`
-> Installing Firebase (5.3.0)
> Copying Firebase from `/Users/alexanderkim/Library/Caches/CocoaPods/Pods/Release/Firebase/5.3.0-68afe` to `Pods/Firebase`
-> Installing FirebaseAnalytics (5.0.1)
> Copying FirebaseAnalytics from `/Users/alexanderkim/Library/Caches/CocoaPods/Pods/Release/FirebaseAnalytics/5.0.1-b3628` to `Pods/FirebaseAnalytics`
-> Installing FirebaseCore (5.0.4)
> Copying FirebaseCore from `/Users/alexanderkim/Library/Caches/CocoaPods/Pods/Release/FirebaseCore/5.0.4-62f1b` to `Pods/FirebaseCore`
-> Installing FirebaseInstanceID (3.1.1)
> Copying FirebaseInstanceID from `/Users/alexanderkim/Library/Caches/CocoaPods/Pods/Release/FirebaseInstanceID/3.1.1-f3f06` to `Pods/FirebaseInstanceID`
-> Installing FirebaseMessaging (3.0.2)
> Copying FirebaseMessaging from `/Users/alexanderkim/Library/Caches/CocoaPods/Pods/Release/FirebaseMessaging/3.0.2-6894b` to `Pods/FirebaseMessaging`
-> Installing Flutter (1.0.0)
-> Installing GoogleToolboxForMac (2.1.4)
> Copying GoogleToolboxForMac from `/Users/alexanderkim/Library/Caches/CocoaPods/Pods/Release/GoogleToolboxForMac/2.1.4-91c82` to `Pods/GoogleToolboxForMac`
-> Installing Protobuf (3.6.0)
> Copying Protobuf from `/Users/alexanderkim/Library/Caches/CocoaPods/Pods/Release/Protobuf/3.6.0-0fc0a` to `Pods/Protobuf`
-> Installing firebase_messaging (0.0.1)
> Running prepare command
$ /bin/bash -c set -e echo // Generated file, do not edit > Classes/UserAgent.h echo "#define LIBRARY_VERSION @\"6.0.3\"" >> Classes/UserAgent.h echo "#define LIBRARY_NAME @\"flutter-fire-fcm\"" >> Classes/UserAgent.h
-> Installing image_picker (0.0.1)
-> Installing location (0.0.1)
-> Installing nanopb (0.3.8)
> Copying nanopb from `/Users/alexanderkim/Library/Caches/CocoaPods/Pods/Release/nanopb/0.3.8-5601e` to `Pods/nanopb`
-> Installing path_provider (0.0.1)
-> Installing sqflite (0.0.1)
-> Installing url_launcher (0.0.1)
- Running pre install hooks
- Podfile
Generating Pods project
- Creating Pods project
- Installing files into Pods project
- Adding source files
- Adding frameworks
- Adding libraries
- Adding resources
- Adding development pod helper files
- Linking headers
- Installing Pod Targets
- Installing target `FMDB` iOS 4.3
- Generating dummy source at `Pods/Target Support Files/FMDB/FMDB-dummy.m`
- Installing target `Firebase` iOS 8.0
- Installing target `FirebaseAnalytics` iOS 8.0
- Installing target `FirebaseCore` iOS 8.0
- Generating dummy source at `Pods/Target Support Files/FirebaseCore/FirebaseCore-dummy.m`
- Installing target `FirebaseInstanceID` iOS 8.0
- Installing target `FirebaseMessaging` iOS 8.0
- Generating dummy source at `Pods/Target Support Files/FirebaseMessaging/FirebaseMessaging-dummy.m`
- Installing target `Flutter` iOS 8.0
- Installing target `GoogleToolboxForMac` iOS 5.0
- Generating dummy source at `Pods/Target Support Files/GoogleToolboxForMac/GoogleToolboxForMac-dummy.m`
- Installing target `Protobuf` iOS 7.0
- Generating dummy source at `Pods/Target Support Files/Protobuf/Protobuf-dummy.m`
- Installing target `firebase_messaging` iOS 8.0
- Generating dummy source at `Pods/Target Support Files/firebase_messaging/firebase_messaging-dummy.m`
- Installing target `image_picker` iOS 8.0
- Generating module map file at `Pods/Target Support Files/image_picker/image_picker.modulemap`
- Generating umbrella header at `Pods/Target Support Files/image_picker/image_picker-umbrella.h`
- Generating dummy source at `Pods/Target Support Files/image_picker/image_picker-dummy.m`
- Installing target `location` iOS 8.0
- Generating dummy source at `Pods/Target Support Files/location/location-dummy.m`
- Installing target `nanopb` iOS 4.3
- Generating dummy source at `Pods/Target Support Files/nanopb/nanopb-dummy.m`
- Installing target `path_provider` iOS 8.0
- Generating module map file at `Pods/Target Support Files/path_provider/path_provider.modulemap`
- Generating umbrella header at `Pods/Target Support Files/path_provider/path_provider-umbrella.h`
- Generating dummy source at `Pods/Target Support Files/path_provider/path_provider-dummy.m`
- Installing target `sqflite` iOS 8.0
- Generating module map file at `Pods/Target Support Files/sqflite/sqflite.modulemap`
- Generating umbrella header at `Pods/Target Support Files/sqflite/sqflite-umbrella.h`
- Generating dummy source at `Pods/Target Support Files/sqflite/sqflite-dummy.m`
- Installing target `url_launcher` iOS 8.0
- Generating module map file at `Pods/Target Support Files/url_launcher/url_launcher.modulemap`
- Generating umbrella header at `Pods/Target Support Files/url_launcher/url_launcher-umbrella.h`
- Generating dummy source at `Pods/Target Support Files/url_launcher/url_launcher-dummy.m`
- Installing Aggregate Targets
- Installing target `Pods-Runner` iOS 9.0
- Generating dummy source at `Pods/Target Support Files/Pods-Runner/Pods-Runner-dummy.m`
- Generating deterministic UUIDs
- Stabilizing target UUIDs
- Running post install hooks
[!] An error occurred while processing the post-install hook of the Podfile.
undefined method `headers_build_phase' for #<Xcodeproj::Project::Object::PBXAggregateTarget:0x00007fa4dd38a340>
/Users/alexanderkim/MobileDev/buyer_mobile/ios/Podfile:82:in `block (3 levels) in from_ruby'
/Users/alexanderkim/MobileDev/buyer_mobile/ios/Podfile:72:in `each'
/Users/alexanderkim/MobileDev/buyer_mobile/ios/Podfile:72:in `block (2 levels) in from_ruby'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.8.4/lib/cocoapods-core/podfile.rb:179:in `post_install!'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.8.4/lib/cocoapods/installer.rb:856:in `run_podfile_post_install_hook'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.8.4/lib/cocoapods/installer.rb:844:in `block in run_podfile_post_install_hooks'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.8.4/lib/cocoapods/user_interface.rb:145:in `message'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.8.4/lib/cocoapods/installer.rb:843:in `run_podfile_post_install_hooks'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.8.4/lib/cocoapods/installer.rb:322:in `block in create_and_save_projects'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.8.4/lib/cocoapods/user_interface.rb:64:in `section'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.8.4/lib/cocoapods/installer.rb:303:in `create_and_save_projects'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.8.4/lib/cocoapods/installer.rb:294:in `generate_pods_project'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.8.4/lib/cocoapods/installer.rb:173:in `integrate'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.8.4/lib/cocoapods/installer.rb:162:in `install!'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.8.4/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.8.4/lib/cocoapods/command.rb:52:in `run'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.8.4/bin/pod:55:in `<top (required)>'
/usr/local/bin/pod:23:in `load'
/usr/local/bin/pod:23:in `<main>'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.8.4/lib/cocoapods/installer.rb:858:in `rescue in run_podfile_post_install_hook'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.8.4/lib/cocoapods/installer.rb:855:in `run_podfile_post_install_hook'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.8.4/lib/cocoapods/installer.rb:844:in `block in run_podfile_post_install_hooks'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.8.4/lib/cocoapods/user_interface.rb:145:in `message'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.8.4/lib/cocoapods/installer.rb:843:in `run_podfile_post_install_hooks'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.8.4/lib/cocoapods/installer.rb:322:in `block in create_and_save_projects'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.8.4/lib/cocoapods/user_interface.rb:64:in `section'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.8.4/lib/cocoapods/installer.rb:303:in `create_and_save_projects'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.8.4/lib/cocoapods/installer.rb:294:in `generate_pods_project'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.8.4/lib/cocoapods/installer.rb:173:in `integrate'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.8.4/lib/cocoapods/installer.rb:162:in `install!'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.8.4/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.8.4/lib/cocoapods/command.rb:52:in `run'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.8.4/bin/pod:55:in `<top (required)>'
/usr/local/bin/pod:23:in `load'
/usr/local/bin/pod:23:in `<main>'
Error running pod install
MacOS 10.15.2,Xcode 11.3无法确定发生了什么。