iOS審査提出の際Arrchiveでエラー出たとき

Product > Arrchiveでエラーがでたとき

$ pod update
[!] Invalid `Podfile` file: /Users/***/ios/Flutter/Generated.xcconfig must exist. If you're running pod install manually, make sure flutter pub get is executed first.

from /Users/***/*******/ios/Podfile:16

-------------------------------------------

unless File.exist?(generated_xcode_build_settings_path)

end

-------------------------------------------

CocoaPodsのspecsリポジトリが古いのでupdateしてくださいというエラーがでた。ライブラリのバージョン、プラットフォーム 、ソースの取得場所、説明などのメタデータが記載されたファイルのこと。

$ flutter pub get 
$ flutter build ios 
Error output from CocoaPods: 
[!] Automatically assigning platform `iOS` with version `12.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`. Error: CocoaPods's specs repository is too out-of-date to satisfy dependencies.To update the CocoaPods specs, run:pod repo update  Error running pod install

言われたとおりにupdateする

$ pod repo update
Updating spec repo `master`
$ /opt/homebrew/bin/git -C /Users/***/.cocoapods/repos/master fetch origin --progress
remote: Enumerating objects: 26810, done.
remote: Counting objects: 100% (10524/10524), done.
remote: Compressing objects: 100% (658/658), done.
remote: Total 26810 (delta 9939), reused 10313 (delta 9836), pack-reused 16286
ld:
↳
** BUILD FAILED **
Analyzing dependencies Inspecting targets to integrate Using `ARCHS` setting to build architectures of target `Pods-Runner`: (``) Finding Podfile changes - Flutter - app_review - firebase_analytics - firebase_core - firebase_crashlytics - firebase_messaging - flutter_inappwebview - launch_review - open_file - package_info - package_info_plus - path_provider_ios - permission_handler_apple - share_plus - shared_preferences_ios - url_launcher_ios - video_player_avfoundation Fetching external sources -> Fetching podspec for `Flutter` from `Flutter` -> Fetching podspec for `app_review` from `.symlinks/plugins/app_review/ios` -> Fetching podspec for `firebase_analytics` from `.symlinks/plugins/firebase_analytics/ios` firebase_analytics: Using Firebase SDK version '10.0.0' defined in 'firebase_core' -> Fetching podspec for `firebase_core` from `.symlinks/plugins/firebase_core/ios` firebase_core: Using Firebase SDK version '10.0.0' defined in 'firebase_core' -> Fetching podspec for `firebase_crashlytics` from `.symlinks/plugins/firebase_crashlytics/ios` Warning: firebase_app_id_file.json file does not exist. This may cause issues in upload-symbols. If this error is unexpected, try running flutterfire configure again. firebase_crashlytics: Using Firebase SDK version '10.0.0' defined in 'firebase_core' -> Fetching podspec for `firebase_messaging` from `.symlinks/plugins/firebase_messaging/ios` firebase_messaging: Using Firebase SDK version '10.0.0' defined in 'firebase_core' -> Fetching podspec for `flutter_inappwebview` from `.symlinks/plugins/flutter_inappwebview/ios` -> Fetching podspec for `launch_review` from `.symlinks/plugins/launch_review/ios` -> Fetching podspec for `open_file` from `.symlinks/plugins/open_file/ios` -> Fetching podspec for `package_info` from `.symlinks/plugins/package_info/ios` -> Fetching podspec for `package_info_plus` from `.symlinks/plugins/package_info_plus/ios` -> Fetching podspec for `path_provider_ios` from `.symlinks/plugins/path_provider_ios/ios` -> Fetching podspec for `permission_handler_apple` from `.symlinks/plugins/permission_handler_apple/ios` -> Fetching podspec for `share_plus` from `.symlinks/plugins/share_plus/ios` -> Fetching podspec for `shared_preferences_ios` from `.symlinks/plugins/shared_preferences_ios/ios` -> Fetching podspec for `url_launcher_ios` from `.symlinks/plugins/url_launcher_ios/ios` -> Fetching podspec for `video_player_avfoundation` from `.symlinks/plugins/video_player_avfoundation/ios` Resolving dependencies of `Podfile` CDN: trunk Relative path: CocoaPods-version.yml exists! Returning local because checking is only performed in repo update CDN: trunk Relative path: all_pods_versions_0_3_5.txt exists! Returning local because checking is only performed in repo update CDN: trunk Relative path: Specs/0/3/5/Firebase/10.0.0/Firebase.podspec.json exists! Returning local because checking is only performed in repo update CDN: trunk Relative path: Specs/0/3/5/Firebase/10.0.0/Firebase.podspec.json exists! Returning local because checking is only performed in repo update CDN: trunk Relative path: Specs/0/3/5/Firebase/10.0.0/Firebase.podspec.json exists! Returning local because checking is only performed in repo update CDN: trunk Relative path: Specs/0/3/5/Firebase/10.0.0/Firebase.podspec.json exists! Returning local because checking is only performed in repo update CDN: trunk Relative path: Specs/0/3/5/Firebase/10.0.0/Firebase.podspec.json exists! Returning local because checking is only performed in repo update CDN: trunk Relative path: all_pods_versions_6_8_6.txt exists! Returning local because checking is only performed in repo update CDN: trunk Relative path: Specs/6/8/6/OrderedSet/5.0.0/OrderedSet.podspec.json exists! Returning local because checking is only performed in repo update CDN: trunk Relative path: all_pods_versions_e_7_d.txt exists! Returning local because checking is only performed in repo update CDN: trunk Relative path: Specs/e/7/d/FirebaseCrashlytics/10.0.0/FirebaseCrashlytics.podspec.json exists! Returning local because checking is only performed in repo update CDN: trunk Relative path: all_pods_versions_2_d_6.txt exists! Returning local because checking is only performed in repo update CDN: trunk Relative path: Specs/2/d/6/FirebaseMessaging/10.0.0/FirebaseMessaging.podspec.json exists! Returning local because checking is only performed in repo update CDN: trunk Relative path: Specs/0/3/5/Firebase/10.0.0/Firebase.podspec.json exists! Returning local because checking is only performed in repo update CDN: trunk Relative path: all_pods_versions_8_b_d.txt exists! Returning local because checking is only performed in repo update CDN: trunk Relative path: Specs/8/b/d/FirebaseCore/10.0.0/FirebaseCore.podspec.json exists! Returning local because checking is only performed in repo update CDN: trunk Relative path: Specs/6/8/6/OrderedSet/5.0.0/OrderedSet.podspec.json exists! Returning local because checking is only performed in repo update CDN: trunk Relative path: Specs/e/7/d/FirebaseCrashlytics/10.0.0/FirebaseCrashlytics.podspec.json exists! Returning local because checking is only performed in repo update CDN: trunk Relative path: all_pods_versions_2_f_7.txt exists! Returning local because checking is only performed in repo update CDN: trunk Relative path: Specs/2/f/7/FirebaseInstallations/10.0.0/FirebaseInstallations.podspec.json exists! Returning local because checking is only performed in repo update CDN: trunk Relative path: all_pods_versions_0_b_5.txt exists! Returning local because checking is only performed in repo update CDN: trunk Relative path: Specs/0/b/5/PromisesObjC/2.1.1/PromisesObjC.podspec.json exists! Returning local because checking is only performed in repo update CDN: trunk Relative path: all_pods_versions_0_6_a.txt exists! Returning local because checking is only performed in repo update CDN: trunk Relative path: Specs/0/6/a/GoogleDataTransport/9.2.0/GoogleDataTransport.podspec.json exists! Returning local because checking is only performed in repo update CDN: trunk Relative path: all_pods_versions_0_8_4.txt exists! Returning local because checking is only performed in repo update CDN: trunk Relative path: Specs/0/8/4/GoogleUtilities/7.8.0/GoogleUtilities.podspec.json exists! Returning local because checking is only performed in repo update CDN: trunk Relative path: Specs/0/8/4/GoogleUtilities/7.8.0/GoogleUtilities.podspec.json exists! Returning local because checking is only performed in repo update CDN: trunk Relative path: all_pods_versions_6_1_e.txt exists! Returning local because checking is only performed in repo update CDN: trunk Relative path: Specs/6/1/e/nanopb/2.30909.0/nanopb.podspec.json exists! Returning local because checking is only performed in repo update [!] CocoaPods could not find compatible versions for pod "FirebaseInstallations": In snapshot (Podfile.lock): FirebaseInstallations (= 10.1.0, ~> 10.0) In Podfile: firebase_crashlytics (from `.symlinks/plugins/firebase_crashlytics/ios`) was resolved to 3.0.4, which depends on Firebase/Crashlytics (= 10.0.0) was resolved to 10.0.0, which depends on FirebaseCrashlytics (~> 10.0.0) was resolved to 10.0.0, which depends on FirebaseInstallations (~> 10.0) You have either: * out-of-date source repos which you can update with `pod repo update` or with `pod install --repo-update`. * changed the constraints of dependency `FirebaseInstallations` inside your development pod `firebase_crashlytics`. You should run `pod update FirebaseInstallations` to apply changes you've made. /opt/homebrew/Cellar/cocoapods/1.11.3/libexec/gems/molinillo-0.8.0/lib/molinillo/resolution.rb:317:in `raise_error_unless_state' /opt/homebrew/Cellar/cocoapods/1.11.3/libexec/gems/molinillo-0.8.0/lib/molinillo/resolution.rb:299:in `block in unwind_for_conflict' <internal:kernel>:90:in `tap' /opt/homebrew/Cellar/cocoapods/1.11.3/libexec/gems/molinillo-0.8.0/lib/molinillo/resolution.rb:297:in `unwind_for_conflict' /opt/homebrew/Cellar/cocoapods/1.11.3/libexec/gems/molinillo-0.8.0/lib/molinillo/resolution.rb:257:in `process_topmost_state' /opt/homebrew/Cellar/cocoapods/1.11.3/libexec/gems/molinillo-0.8.0/lib/molinillo/resolution.rb:182:in `resolve' /opt/homebrew/Cellar/cocoapods/1.11.3/libexec/gems/molinillo-0.8.0/lib/molinillo/resolver.rb:43:in `resolve' /opt/homebrew/Cellar/cocoapods/1.11.3/libexec/gems/cocoapods-1.11.3/lib/cocoapods/resolver.rb:94:in `resolve' /opt/homebrew/Cellar/cocoapods/1.11.3/libexec/gems/cocoapods-1.11.3/lib/cocoapods/installer/analyzer.rb:1078:in `block in resolve_dependencies' /opt/homebrew/Cellar/cocoapods/1.11.3/libexec/gems/cocoapods-1.11.3/lib/cocoapods/user_interface.rb:64:in `section' /opt/homebrew/Cellar/cocoapods/1.11.3/libexec/gems/cocoapods-1.11.3/lib/cocoapods/installer/analyzer.rb:1076:in `resolve_dependencies' /opt/homebrew/Cellar/cocoapods/1.11.3/libexec/gems/cocoapods-1.11.3/lib/cocoapods/installer/analyzer.rb:124:in `analyze' /opt/homebrew/Cellar/cocoapods/1.11.3/libexec/gems/cocoapods-1.11.3/lib/cocoapods/installer.rb:416:in `analyze' /opt/homebrew/Cellar/cocoapods/1.11.3/libexec/gems/cocoapods-1.11.3/lib/cocoapods/installer.rb:241:in `block in resolve_dependencies' /opt/homebrew/Cellar/cocoapods/1.11.3/libexec/gems/cocoapods-1.11.3/lib/cocoapods/user_interface.rb:64:in `section' /opt/homebrew/Cellar/cocoapods/1.11.3/libexec/gems/cocoapods-1.11.3/lib/cocoapods/installer.rb:240:in `resolve_dependencies' /opt/homebrew/Cellar/cocoapods/1.11.3/libexec/gems/cocoapods-1.11.3/lib/cocoapods/installer.rb:161:in `install!' /opt/homebrew/Cellar/cocoapods/1.11.3/libexec/gems/cocoapods-1.11.3/lib/cocoapods/command/install.rb:52:in `run' /opt/homebrew/Cellar/cocoapods/1.11.3/libexec/gems/claide-1.1.0/lib/claide/command.rb:334:in `run' /opt/homebrew/Cellar/cocoapods/1.11.3/libexec/gems/cocoapods-1.11.3/lib/cocoapods/command.rb:52:in `run' /opt/homebrew/Cellar/cocoapods/1.11.3/libexec/gems/cocoapods-1.11.3/bin/pod:55:in `<top (required)>' /opt/homebrew/Cellar/cocoapods/1.11.3/libexec/bin/pod:25:in `load' /opt/homebrew/Cellar/cocoapods/1.11.3/libexec/bin/pod:25:in `<main>'
.
.
.
色々エラーでた
.
.
.

Error (Xcode): missing module map file: '/Users/***/git/***/ios/Pods/Target SupportFiles/FirebaseCoreDiagnostics/FirebaseCoreDiagnostics.modulemap

Encountered error while building for device.

エラーでてupdateできてなかったみたいだけどflutter cleanして再度ビルドしたら通った。

$ flutter clean
$ flutter pub get
$ flutter build ios
Running pod install... 2,409ms
Running Xcode build...
└─Compiling, linking and signing... 9.2s
Xcode build done. 72.2s

この記事が気に入ったらサポートをしてみませんか?