ahm*_*tab 5 ios cocoapods flutter
在 iPhone 11 Pro Max 上以调试模式启动 lib/main.dart...\n正在运行 pod install...\nCocoaPods 的输出:\n\xe2\x86\xb3\n正在准备
\nAnalyzing dependencies\n\nInspecting targets to integrate\n Using `ARCHS` setting to build architectures of target `Pods-Runner`: (``)\n\nFetching external sources\n-> Fetching podspec for `Flutter` from `Flutter`\n-> Fetching podspec for `background_fetch` from `.symlinks/plugins/background_fetch/ios`\n-> Fetching podspec for `connectivity` from `.symlinks/plugins/connectivity/ios`\n-> Fetching podspec for `connectivity_for_web` from `.symlinks/plugins/connectivity_for_web/ios`\n-> Fetching podspec for `connectivity_macos` from `.symlinks/plugins/connectivity_macos/ios`\n-> Fetching podspec for `devicelocale` from `.symlinks/plugins/devicelocale/ios`\n-> Fetching podspec for `esys_flutter_share` from `.symlinks/plugins/esys_flutter_share/ios`\n-> Fetching podspec for `firebase_crashlytics` from `.symlinks/plugins/firebase_crashlytics/ios`\n CDN: trunk Relative path: CocoaPods-version.yml exists! Returning local because checking is only perfomed in repo update\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 install --verbose\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.9.3\n Ruby : ruby 2.6.3p62 (2019-04-16 revision 67580) [universal.x86_64-darwin19]\n RubyGems : 3.0.3\n Host : Mac OS X 10.15.4 (19E287)\n Xcode : 11.4.1 (11E503a)\n Git : git version 2.20.1\nRuby lib dir : /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib\nRepositories : master - git - https://github.com/CocoaPods/Specs.git @ cee826cdfd82e8ad63f23d532e519f8248a09ce7\n\n 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-stats : 1.1.0\ncocoapods-trunk : 1.4.1\ncocoapods-try : 1.1.0\n```\n\n### Podfile\n\n```ruby\n# Uncomment this line to define a global platform for your project\n# platform :ios, '9.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 parse_KV_file(file, separator='=')\n file_abs_path = File.expand_path(file)\n if !File.exists? file_abs_path\n return [];\n end\n generated_key_values = {}\n skip_line_start_symbols = ["#", "/"]\n File.foreach(file_abs_path) do |line|\n next if skip_line_start_symbols.any? { |symbol| line =~ /^\\s*#{symbol}/ }\n plugin = line.split(pattern=separator)\n if plugin.length == 2\n podname = plugin[0].strip()\n path = plugin[1].strip()\n podpath = File.expand_path("#{path}", file_abs_path)\n generated_key_values[podname] = podpath\n else\n puts "Invalid plugin specification: #{line}"\n end\n end\n generated_key_values\nend\n\ntarget 'Runner' do\n use_frameworks!\n use_modular_headers!\n\n # Flutter Pod\n\n copied_flutter_dir = File.join(__dir__, 'Flutter')\n copied_framework_path = File.join(copied_flutter_dir, 'Flutter.framework')\n copied_podspec_path = File.join(copied_flutter_dir, 'Flutter.podspec')\n unless File.exist?(copied_framework_path) && File.exist?(copied_podspec_path)\n # Copy Flutter.framework and Flutter.podspec to Flutter/ to have something to link against if the xcode backend script has not run yet.\n # That script will copy the correct debug/profile/release version of the framework based on the currently selected Xcode configuration.\n # CocoaPods will not embed the framework on pod install (before any build phases can generate) if the dylib does not exist.\n\n generated_xcode_build_settings_path = File.join(copied_flutter_dir, 'Generated.xcconfig')\n unless File.exist?(generated_xcode_build_settings_path)\n raise "Generated.xcconfig must exist. If you're running pod install manually, make sure flutter pub get is executed first"\n end\n generated_xcode_build_settings = parse_KV_file(generated_xcode_build_settings_path)\n cached_framework_dir = generated_xcode_build_settings['FLUTTER_FRAMEWORK_DIR'];\n\n unless File.exist?(copied_framework_path)\n FileUtils.cp_r(File.join(cached_framework_dir, 'Flutter.framework'), copied_flutter_dir)\n end\n unless File.exist?(copied_podspec_path)\n FileUtils.cp(File.join(cached_framework_dir, 'Flutter.podspec'), copied_flutter_dir)\n end\n end\n\n # Keep pod path relative so it can be checked into Podfile.lock.\n pod 'Flutter', :path => 'Flutter'\n\n # Plugin Pods\n\n # Prepare symlinks folder. We use symlinks to avoid having Podfile.lock\n # referring to absolute paths on developers' machines.\n system('rm -rf .symlinks')\n system('mkdir -p .symlinks/plugins')\n plugin_pods = parse_KV_file('../.flutter-plugins')\n plugin_pods.each do |name, path|\n symlink = File.join('.symlinks', 'plugins', name)\n File.symlink(path, symlink)\n pod name, :path => File.join(symlink, 'ios')\n end\nend\n\n# Prevent Cocoapods from embedding a second Flutter framework and causing an error with the new Xcode build system.\ninstall! 'cocoapods', :disable_input_output_paths => true\n\npost_install do |installer|\n installer.pods_project.targets.each do |target|\n target.build_configurations.each do |config|\n config.build_settings['SWIFT_VERSION'] = '4.1' # required by simple_permission\n config.build_settings['ENABLE_BITCODE'] = 'NO'\n\n # Here are some configurations automatically generated by flutter\n\n # You can remove unused permissions here\n # for more infomation: https://github.com/BaseflowIT/flutter-permission-handler/blob/develop/permission_handler/ios/Classes/PermissionHandlerEnums.h\n # e.g. when you don't need camera permission, just add 'PERMISSION_CAMERA=0'\n config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] ||= [\n '$(inherited)',\n\n ## dart: PermissionGroup.calendar\n 'PERMISSION_EVENTS=0',\n\n ## dart: PermissionGroup.reminders\n 'PERMISSION_REMINDERS=0',\n\n ## dart: PermissionGroup.contacts\n 'PERMISSION_CONTACTS=0',\n\n ## dart: PermissionGroup.camera\n #'PERMISSION_CAMERA=0',\n\n ## dart: PermissionGroup.microphone\n # 'PERMISSION_MICROPHONE=0',\n\n ## dart: PermissionGroup.speech\n 'PERMISSION_SPEECH_RECOGNIZER=0',\n\n ## dart: PermissionGroup.photos\n # 'PERMISSION_PHOTOS=0',\n\n ## dart: [PermissionGroup.location, PermissionGroup.locationAlways, PermissionGroup.locationWhenInUse]\n # 'PERMISSION_LOCATION=0',\n\n ## dart: PermissionGroup.notification\n # 'PERMISSION_NOTIFICATIONS=0',\n\n ## dart: PermissionGroup.mediaLibrary\n 'PERMISSION_MEDIA_LIBRARY=0',\n\n ## dart: PermissionGroup.sensors\n 'PERMISSION_SENSORS=0'\n ]\n\n end\n end\nend\n\npod 'Firebase/MLVisionFaceModel'\n```\n\n### Error\n\n```\nArgumentError - Malformed version number string p.0\n/Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.9.3/lib/cocoapods-core/version.rb:47:in `initialize'\n/Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.9.3/lib/cocoapods-core/vendor/version.rb:199:in `new'\n/Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.9.3/lib/cocoapods-core/vendor/version.rb:199:in `new'\n/Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.9.3/lib/cocoapods-core/vendor/version.rb:192:in `create'\n/Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.9.3/lib/cocoapods-core/platform.rb:54:in `initialize'\n/Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.9.3/lib/cocoapods-core/specification.rb:517:in `new'\n/Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.9.3/lib/cocoapods-core/specification.rb:517:in `block in available_platforms'\n/Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.9.3/lib/cocoapods-core/specification.rb:517:in `map'\n/Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.9.3/lib/cocoapods-core/specification.rb:517:in `available_platforms'\n/Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.9.3/lib/cocoapods-core/specification.rb:402:in `dependencies'\n/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.9.3/lib/cocoapods/validator.rb:44:in `initialize'\n/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.9.3/lib/cocoapods/external_sources/abstract_external_source.rb:201:in `new'\n/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.9.3/lib/cocoapods/external_sources/abstract_external_source.rb:201:in `validator_for_podspec'\n/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.9.3/lib/cocoapods/external_sources/abstract_external_source.rb:186:in `validate_podspec'\n/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.9.3/lib/cocoapods/external_sources/abstract_external_source.rb:178:in `store_podspec'\n/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.9.3/lib/cocoapods/external_sources/path_source.rb:17:in `block in fetch'\n/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.9.3/lib/cocoapods/user_interface.rb:64:in `section'\n/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.9.3/lib/cocoapods/external_sources/path_source.rb:11:in `fetch'\n/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.9.3/lib/cocoapods/installer/analyzer.rb:980:in `fetch_external_source'\n/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.9.3/lib/cocoapods/installer/analyzer.rb:959:in `block (2 levels) in fetch_external_sources'\n/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.9.3/lib/cocoapods/installer/analyzer.rb:958:in `each'\n/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.9.3/lib/cocoapods/installer/analyzer.rb:958:in `block in fetch_external_sources'\n/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.9.3/lib/cocoapods/user_interface.rb:64:in `section'\n/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.9.3/lib/cocoapods/installer/analyzer.rb:957:in `fetch_external_sources'\n/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.9.3/lib/cocoapods/installer/analyzer.rb:117:in `analyze'\n/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.9.3/lib/cocoapods/installer.rb:410:in `analyze'\n/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.9.3/lib/cocoapods/installer.rb:235:in `block in resolve_dependencies'\n/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.9.3/lib/cocoapods/user_interface.rb:64:in `section'\n/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.9.3/lib/cocoapods/installer.rb:234:in `resolve_dependencies'\n/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.9.3/lib/cocoapods/installer.rb:156:in `install!'\n/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.9.3/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.9.3/lib/cocoapods/command.rb:52:in `run'\n/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.9.3/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=Malformed+version+number+string+p.0&type=Issues\n\nIf none exists, create a ticket, with the template displayed above, on:\nhttps://github.com/CocoaPods/CocoaPods/issues/new\n\nBe sure to first read the contributing guide for details on how to properly submit a ticket:\nhttps://github.com/CocoaPods/CocoaPods/blob/master/CONTRIBUTING.md\n\nDon't forget to anonymize any private data!\n\nLooking for related issues on cocoapods/cocoapods...\n - Error running pod install Error launching application on iPhone 11.\n https://github.com/CocoaPods/CocoaPods/issues/9981 [closed] [1 comment]\n 16 Aug 2020\n\n - error when running pod install\n https://github.com/CocoaPods/CocoaPods/issues/9195 [closed] [4 comments]\n 04 Oct 2019\n\n - 0.38.1: Linker errors due to incompatible semver versions\n https://github.com/CocoaPods/CocoaPods/issues/3887 [closed] [10 comments]\n 25 Jul 2015\nRun Code Online (Sandbox Code Playgroud)\nCocoaPods 的错误输出:\n\xe2\x86\xb3\n/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/universal-darwin19/rbconfig.rb:229:警告:不安全的世界可写目录 /Users/ashraf/Desktop/Work/App.Connect/smile_me_in 在 PATH 中,模式 040757
\n[!] 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`.\nRun Code Online (Sandbox Code Playgroud)\n运行 pod install 时出错\n在 iPhone 11 Pro Max 上启动应用程序时出错。
\n小智 4
您应该取消注释您的个人资料 ios 目标。
# Uncomment this line to define a global platform for your project
# platform :ios, '9.0'
Run Code Online (Sandbox Code Playgroud)
如果还不行的话。您需要检查目标设备的最低支持操作系统版本。
| 归档时间: |
|
| 查看次数: |
7060 次 |
| 最近记录: |