Pea*_*Gen 7 macos ios cocoapods flutter podfile
我使用的是MacBook Pro,M1 芯片。操作系统是MacOS Monterey 12.3.1
\n今天我将flutter从2.5.4升级到3.0.1。
\n我可以在 Android 中完美运行我的项目。但是在 iOS 中我收到以下错误。
\nLaunching lib/main.dart on iPhone SE (3rd generation) in debug mode...\nWarning: CocoaPods recommended version 1.11.0 or greater not installed.\nPods handling may fail on some projects involving plugins.\nTo upgrade see https://guides.cocoapods.org/using/getting-started.html#installation for instructions.\nCocoaPods' output:\n\xe2\x86\xb3\n Preparing\n Analyzing dependencies\n Inspecting targets to integrate\n Using `ARCHS` setting to build architectures of target `Pods-Runner`: (``)\n Finding Podfile changes\n A google_sign_in_ios\n A image_picker_ios\n A url_launcher_ios\n R amazon_s3_cognito\n R google_sign_in\n R image_picker\n R url_launcher\n - Flutter\n - cloud_firestore\n - file_picker\n - firebase_auth\n - firebase_core\n - firebase_messaging\n - firebase_storage\n - flutter_image_compress\n - flutter_keyboard_visibility\n - flutter_pdfview\n - geolocator_apple\n - google_maps_flutter\n - image_cropper\n - maps_launcher\n - open_file\n - path_provider_ios\n - shared_preferences_ios\n - sqflite\n Fetching external sources\n -> Fetching podspec for `Flutter` from `Flutter`\n -> Fetching podspec for `cloud_firestore` from `.symlinks/plugins/cloud_firestore/ios`\n cloud_firestore: Using Firebase SDK version '8.15.0' defined in 'firebase_core'\n -> Fetching podspec for `file_picker` from `.symlinks/plugins/file_picker/ios`\n -> Fetching podspec for `firebase_auth` from `.symlinks/plugins/firebase_auth/ios`\n firebase_auth: Using Firebase SDK version '8.15.0' defined in 'firebase_core'\n -> Fetching podspec for `firebase_core` from `.symlinks/plugins/firebase_core/ios`\n firebase_core: Using Firebase SDK version '8.15.0' defined in 'firebase_core'\n -> Fetching podspec for `firebase_messaging` from `.symlinks/plugins/firebase_messaging/ios`\n firebase_messaging: Using Firebase SDK version '8.15.0' defined in 'firebase_core'\n -> Fetching podspec for `firebase_storage` from `.symlinks/plugins/firebase_storage/ios`\n firebase_storage: Using Firebase SDK version '8.15.0' defined in 'firebase_core'\n -> Fetching podspec for `flutter_image_compress` from `.symlinks/plugins/flutter_image_compress/ios`\n -> Fetching podspec for `flutter_keyboard_visibility` from `.symlinks/plugins/flutter_keyboard_visibility/ios`\n -> Fetching podspec for `flutter_pdfview` from `.symlinks/plugins/flutter_pdfview/ios`\n -> Fetching podspec for `geolocator_apple` from `.symlinks/plugins/geolocator_apple/ios`\n -> Fetching podspec for `google_maps_flutter` from `.symlinks/plugins/google_maps_flutter/ios`\n -> Fetching podspec for `google_sign_in_ios` from `.symlinks/plugins/google_sign_in_ios/ios`\n -> Fetching podspec for `image_cropper` from `.symlinks/plugins/image_cropper/ios`\n -> Fetching podspec for `image_picker_ios` from `.symlinks/plugins/image_picker_ios/ios`\n -> Fetching podspec for `maps_launcher` from `.symlinks/plugins/maps_launcher/ios`\n -> Fetching podspec for `open_file` from `.symlinks/plugins/open_file/ios`\n -> Fetching podspec for `path_provider_ios` from `.symlinks/plugins/path_provider_ios/ios`\n -> Fetching podspec for `shared_preferences_ios` from `.symlinks/plugins/shared_preferences_ios/ios`\n -> Fetching podspec for `sqflite` from `.symlinks/plugins/sqflite/ios`\n -> Fetching podspec for `url_launcher_ios` from `.symlinks/plugins/url_launcher_ios/ios`\n Resolving dependencies of `Podfile`\n CDN: trunk Relative path: CocoaPods-version.yml exists! Returning local because checking is only perfomed in repo update\n CDN: trunk Relative path: all_pods_versions_0_3_5.txt exists! Returning local because checking is only perfomed in repo update\n CDN: trunk Relative path: Specs/0/3/5/Firebase/8.11.0/Firebase.podspec.json exists! Returning local because checking is only perfomed in repo update\n CDN: trunk Relative path: all_pods_versions_1_6_1.txt exists! Returning local because checking is only perfomed in repo update\n CDN: trunk Relative path: Specs/1/6/1/DKImagePickerController/4.3.2/DKImagePickerController.podspec.json exists! Returning local because checking is only perfomed in repo update\n CDN: trunk Relative path: Specs/1/6/1/DKImagePickerController/4.3.2/DKImagePickerController.podspec.json exists! Returning local because checking is only perfomed in repo update\n CDN: trunk Relative path: all_pods_versions_a_d_d.txt exists! Returning local because checking is only perfomed in repo update\n CDN: trunk Relative path: Specs/a/d/d/GoogleMaps/5.1.0/GoogleMaps.podspec.json exists! Returning local because checking is only perfomed in repo update\n CDN: trunk Relative path: all_pods_versions_d_4_0.txt exists! Returning local because checking is only perfomed in repo update\n CDN: trunk Relative path: Specs/d/4/0/GoogleSignIn/6.1.0/GoogleSignIn.podspec.json exists! Returning local because checking is only perfomed in repo update\n CDN: trunk Relative path: all_pods_versions_3_7_4.txt exists! Returning local because checking is only perfomed in repo update\n CDN: trunk Relative path: Specs/3/7/4/TOCropViewController/2.6.1/TOCropViewController.podspec.json exists! Returning local because checking is only perfomed in repo update\n CDN: trunk Relative path: all_pods_versions_5_d_c.txt exists! Returning local because checking is only perfomed in repo update\n CDN: trunk Relative path: Specs/5/d/c/Mantle/2.2.0/Mantle.podspec.json exists! Returning local because checking is only perfomed in repo update\n CDN: trunk Relative path: all_pods_versions_1_1_7.txt exists! Returning local because checking is only perfomed in repo update\n CDN: trunk Relative path: Specs/1/1/7/SDWebImage/5.12.2/SDWebImage.podspec.json exists! Returning local because checking is only perfomed in repo update\n CDN: trunk Relative path: all_pods_versions_e_9_d.txt exists! Returning local because checking is only perfomed in repo update\n CDN: trunk Relative path: Specs/e/9/d/SDWebImageWebPCoder/0.8.4/SDWebImageWebPCoder.podspec.json exists! Returning local because checking is only perfomed in repo update\n CDN: trunk Relative path: all_pods_versions_f_4_e.txt exists! Returning local because checking is only perfomed in repo update\n 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\n [!] CocoaPods could not find compatible versions for pod "GoogleSignIn":\n In Podfile:\n google_sign_in_ios (from `.symlinks/plugins/google_sign_in_ios/ios`) was resolved to 0.0.1, which depends on\n GoogleSignIn (~> 6.2)\n None of your spec sources contain a spec satisfying the dependency: `GoogleSignIn (~> 6.2)`.\n You have either:\n * out-of-date source repos which you can update with `pod repo update` or with `pod install --repo-update`.\n * mistyped the name or version.\n * not added the source repo that hosts the Podspec to your Podfile.\n /Library/Ruby/Gems/2.6.0/gems/molinillo-0.6.6/lib/molinillo/resolution.rb:328:in `raise_error_unless_state'\n /Library/Ruby/Gems/2.6.0/gems/molinillo-0.6.6/lib/molinillo/resolution.rb:310:in `block in unwind_for_conflict'\n /Library/Ruby/Gems/2.6.0/gems/molinillo-0.6.6/lib/molinillo/resolution.rb:308:in `tap'\n /Library/Ruby/Gems/2.6.0/gems/molinillo-0.6.6/lib/molinillo/resolution.rb:308:in `unwind_for_conflict'\n /Library/Ruby/Gems/2.6.0/gems/molinillo-0.6.6/lib/molinillo/resolution.rb:257:in `process_topmost_state'\n /Library/Ruby/Gems/2.6.0/gems/molinillo-0.6.6/lib/molinillo/resolution.rb:182:in `resolve'\n /Library/Ruby/Gems/2.6.0/gems/molinillo-0.6.6/lib/molinillo/resolver.rb:43:in `resolve'\n /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/resolver.rb:94:in `resolve'\n /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/installer/analyzer.rb:1074:in `block in resolve_dependencies'\n /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/user_interface.rb:64:in `section'\n /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/installer/analyzer.rb:1072:in `resolve_dependencies'\n /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/installer/analyzer.rb:124:in `analyze'\n /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/installer.rb:414:in `analyze'\n /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/installer.rb:239:in `block in resolve_dependencies'\n /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/user_interface.rb:64:in `section'\n /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/installer.rb:238:in `resolve_dependencies'\n /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/installer.rb:160:in `install!'\n /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/command/install.rb:52:in `run'\n /Library/Ruby/Gems/2.6.0/gems/claide-1.0.3/lib/claide/command.rb:334:in `run'\n /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/command.rb:52:in `run'\n /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/bin/pod:55:in `<top (required)>'\n /usr/local/bin/pod:23:in `load'\n /usr/local/bin/pod:23:in `<main>'\nError output from CocoaPods:\n\xe2\x86\xb3\n Ignoring ffi-1.15.3 because its extensions are not built. Try: gem pristine ffi --version 1.15.3\nError: CocoaPods's specs repository is too out-of-date to satisfy dependencies.\nTo update the CocoaPods specs, run:\n pod repo update\n\nError running pod install\nError launching application on iPhone SE (3rd generation).\nExited\n
Run Code Online (Sandbox Code Playgroud)\n我pod install
在 ios 文件夹中尝试过。下面是输出。
Ignoring ffi-1.15.3 because its extensions are not built. Try: gem pristine ffi --version 1.15.3\nAnalyzing dependencies\ncloud_firestore: Using Firebase SDK version '8.15.0' defined in 'firebase_core'\nfirebase_auth: Using Firebase SDK version '8.15.0' defined in 'firebase_core'\nfirebase_core: Using Firebase SDK version '8.15.0' defined in 'firebase_core'\nfirebase_messaging: Using Firebase SDK version '8.15.0' defined in 'firebase_core'\nfirebase_storage: Using Firebase SDK version '8.15.0' defined in 'firebase_core'\n[!] CocoaPods could not find compatible versions for pod "GoogleSignIn":\n In Podfile:\n google_sign_in_ios (from `.symlinks/plugins/google_sign_in_ios/ios`) was resolved to 0.0.1, which depends on\n GoogleSignIn (~> 6.2)\n\nNone of your spec sources contain a spec satisfying the dependency: `GoogleSignIn (~> 6.2)`.\n\nYou have either:\n * out-of-date source repos which you can update with `pod repo update` or with `pod install --repo-update`.\n * mistyped the name or version.\n * not added the source repo that hosts the Podspec to your Podfile.\n
Run Code Online (Sandbox Code Playgroud)\n我尝试过pod update
,下面是输出。
Ignoring ffi-1.15.3 because its extensions are not built. Try: gem pristine ffi --version 1.15.3\nUpdate all pods\nUpdating local specs repositories\n\n\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95 MARKDOWN TEMPLATE \xe2\x80\x95\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95\n\n### Command\n\n```\n/usr/local/bin/pod update\n```\n\n### Report\n\n* What did you do?\n\n* What did you expect to happen?\n\n* What happened instead?\n\n\n### Stack\n\n```\n CocoaPods : 1.10.1\n Ruby : ruby 2.6.8p205 (2021-07-07 revision 67951) [universal.arm64e-darwin21]\n RubyGems : 3.0.3.1\n Host : macOS 12.3.1 (21E258)\n Xcode : 13.4 (13F17a)\n Git : git version 2.32.1 (Apple Git-133)\nRuby lib dir : /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib\nRepositories : trunk - CDN - https://cdn.cocoapods.org/\n```\n\n### Plugins\n\n```\ncocoapods-deintegrate : 1.0.4\ncocoapods-plugins : 1.0.0\ncocoapods-search : 1.0.0\ncocoapods-trunk : 1.5.0\ncocoapods-try : 1.2.0\n```\n\n### Podfile\n\n```ruby\n# Uncomment this line to define a global platform for your project\nplatform :ios, '12.0'\n\n# CocoaPods analytics sends network stats synchronously affecting flutter build latency.\nENV['COCOAPODS_DISABLE_STATS'] = 'true'\n\nproject 'Runner', {\n 'Debug' => :debug,\n 'Profile' => :release,\n 'Release' => :release,\n}\n\ndef flutter_root\n generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'Generated.xcconfig'), __FILE__)\n unless File.exist?(generated_xcode_build_settings_path)\n raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure flutter pub get is executed first"\n end\n\n File.foreach(generated_xcode_build_settings_path) do |line|\n matches = line.match(/FLUTTER_ROOT\\=(.*)/)\n return matches[1].strip if matches\n end\n raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Generated.xcconfig, then run flutter pub get"\nend\n\nrequire File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root)\n\nflutter_ios_podfile_setup\n\ntarget 'Runner' do\n use_frameworks!\n use_modular_headers!\n\n flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))\nend\n\npost_install do |installer|\n installer.pods_project.targets.each do |target|\n flutter_additional_ios_build_settings(target)\n end\nend\n```\n\n### Error\n\n```\nLoadError - dlopen(/Library/Ruby/Gems/2.6.0/gems/ffi-1.15.3/lib/ffi_c.bundle, 0x0009): tried: '/Library/Ruby/Gems/2.6.0/gems/ffi-1.15.3/lib/ffi_c.bundle' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64e')) - /Library/Ruby/Gems/2.6.0/gems/ffi-1.15.3/lib/ffi_c.bundle\n/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'\n/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'\n/Library/Ruby/Gems/2.6.0/gems/ffi-1.15.3/lib/ffi.rb:5:in `rescue in <top (required)>'\n/Library/Ruby/Gems/2.6.0/gems/ffi-1.15.3/lib/ffi.rb:2:in `<top (required)>'\n/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'\n/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'\n/Library/Ruby/Gems/2.6.0/gems/ethon-0.14.0/lib/ethon.rb:3:in `<top (required)>'\n/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'\n/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'\n/Library/Ruby/Gems/2.6.0/gems/typhoeus-1.4.0/lib/typhoeus.rb:2:in `<top (required)>'\n/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'\n/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'\n/Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.10.1/lib/cocoapods-core/cdn_source.rb:440:in `download_typhoeus_impl_async'\n/Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.10.1/lib/cocoapods-core/cdn_source.rb:372:in `download_and_save_with_retries_async'\n/Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.10.1/lib/cocoapods-core/cdn_source.rb:365:in `download_file_async'\n/Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.10.1/lib/cocoapods-core/cdn_source.rb:338:in `download_file'\n/Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.10.1/lib/cocoapods-core/cdn_source.rb:78:in `deprecated_local_podspecs'\n/Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.10.1/lib/cocoapods-core/cdn_source.rb:60:in `preheat_existing_files'\n/Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.10.1/lib/cocoapods-core/cdn_source.rb:257:in `update'\n/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/sources_manager.rb:135:in `block (3 levels) in update'\n/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/user_interface.rb:64:in `section'\n/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/sources_manager.rb:134:in `block (2 levels) in update'\n/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/sources_manager.rb:133:in `each'\n/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/sources_manager.rb:133:in `block in update'\n/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/sources_manager.rb:131:in `open'\n/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/sources_manager.rb:131:in `update'\n/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/installer/analyzer.rb:145:in `block in update_repositories'\n/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/installer/analyzer.rb:143:in `each'\n/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/installer/analyzer.rb:143:in `update_repositories'\n/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/installer.rb:235:in `block in resolve_dependencies'\n/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/user_interface.rb:64:in `section'\n/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/installer.rb:234:in `resolve_dependencies'\n/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/installer.rb:160:in `install!'\n/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/command/update.rb:63:in `run'\n/Library/Ruby/Gems/2.6.0/gems/claide-1.0.3/lib/claide/command.rb:334:in `run'\n/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/command.rb:52:in `run'\n/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/bin/pod:55:in `<top (required)>'\n/usr/local/bin/pod:23:in `load'\n/usr/local/bin/pod:23:in `<main>'\n```\n\n\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95 TEMPLATE END \xe2\x80\x95\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95\n\n[!] Oh no, an error occurred.\n\nSearch for existing GitHub issues similar to yours:\nhttps://github.com/CocoaPods/CocoaPods/search?q=dlopen%28%2FLibrary%2FRuby%2FGems%2F2.6.0%2Fgems%2Fffi-1.15.3%2Flib%2Fffi_c.bundle%2C+0x0009%29%3A+tried%3A+%27%2FLibrary%2FRuby%2FGems%2F2.6.0%2Fgems%2Fffi-1.15.3%2Flib%2Fffi_c.bundle%27+%28mach-o+file%2C+but+is+an+incompatible+architecture+%28have+%2
Pea*_*Gen 21
这就是我必须做的..
首先,更新FFI
sudo arch -x86_64 gem install ffi
Run Code Online (Sandbox Code Playgroud)
导航到项目的 ios 文件夹...
现在更新 M1 芯片的 Pod
arch -x86_64 pod update
Run Code Online (Sandbox Code Playgroud)
现在为 M1 芯片安装 pod
arch -x86_64 pod install
Run Code Online (Sandbox Code Playgroud)
Sal*_*Can 10
只需按照以下说明操作即可;
转到主项目文件夹并运行以下行
cd ios
rm Podfile.lock
pod cache clean --all
sudo arch -x86_64 pod install --repo-update
pod repo update
pod install
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
18681 次 |
最近记录: |