icyleaf / fastlane-plugin-app_info

Teardown tool for mobile app(ipa/apk), analysis metedata like version, name, icon etc.
MIT License
3 stars 0 forks source link

cannot load such file -- google/protobuf_c #4

Open Jokemac opened 3 years ago

Jokemac commented 3 years ago

Error loading plugin 'fastlane-plugin-app_info': cannot load such file -- google/protobuf_c +---------------------------+---------+---------------------------+ | Used plugins | +---------------------------+---------+---------------------------+ | Plugin | Version | Action | +---------------------------+---------+---------------------------+ | fastlane-plugin-pgyer | 0.2.2 | pgyer | | fastlane-plugin-appcente | 1.11.1 | appcenter_fetchversion | | r | | number, | | | | appcenter_fetch_devices, | | | | appcenter_upload | | fastlane-plugin-app_info | 0.6.0 | No actions found | +---------------------------+---------+---------------------------+

[!] No actions were found while loading one or more plugins Please use bundle exec fastlane with plugins More info - https://docs.fastlane.tools/plugins/using-plugins/#run-with-plugins

执行bundle exec fastlane无效

icyleaf commented 3 years ago

能把 fastlane env 的结果输出贴出来吗

Jokemac commented 3 years ago

能把 fastlane env 的结果输出贴出来吗

✅ fastlane environment ✅ ### Stack | Key | Value | | --------------------------- | ------------------------------------------- | | OS | 11.5.2 | | Ruby | 2.7.2 | | Bundler? | true | | Git | git version 2.33.0 | | Installation Source | ~/.rvm/gems/ruby-2.7.2/bin/fastlane | | Host | macOS 11.5.2 (20G95) | | Ruby Lib Dir | ~/.rvm/rubies/ruby-2.7.2/lib | | OpenSSL Version | OpenSSL 1.1.1k 25 Mar 2021 | | Is contained | false | | Is homebrew | false | | Is installed via Fabric.app | false | | Xcode Path | /Applications/Xcode.app/Contents/Developer/ | | Xcode Version | 13.0 | | Swift Version | 5.5 | ### System Locale | Variable | Value | | | -------- | ----------- | - | | LANG | en_US.UTF-8 | ✅ | | LC_ALL | en_US.UTF-8 | ✅ | | LANGUAGE | | | ### fastlane files:
`./fastlane/Fastfile` ```ruby # Customise this file, documentation can be found here: # https://github.com/fastlane/fastlane/tree/master/fastlane/docs # All available actions: https://docs.fastlane.tools/actions # can also be listed using the `fastlane actions` command # Change the syntax highlighting to Ruby # All lines starting with a # are ignored when running `fastlane` # If you want to automatically update fastlane if a new version is available: # update_fastlane # This is the minimum version number required. # Update this, if you use features of a newer version fastlane_version "2.36.0" default_platform :ios platform :ios do before_all do # ENV["SLACK_URL"] = "https://hooks.slack.com/services/..." end desc "本地CI包" lane :beta_local do build_ci upload_pgy cleanup git_operate end desc "本地release包" lane :release_local do Dir.chdir("lovenote_flutter/") sh "git checkout main" sh "git pull" sh "sh flutter_build.sh -i -r" Dir.chdir("../") sh 'pod install' build upload_appstore cleanup end desc "Submit a new Beta Build to pgyer with CI" lane :beta do build_flutter_sdk build_ci info end desc "Deploy a new version to the App Store" lane :release do build upload_appstore cleanup end desc "build lovenote-ci" lane :build_ci do gym(scheme: "lovenoteCI", clean: true, export_method: "ad-hoc", export_xcargs: "-allowProvisioningUpdates") end desc "build lovenote" lane :build do gym(scheme: "lovenote", clean: true, export_method: "app-store", export_xcargs: "-allowProvisioningUpdates") end desc "build flutter sdk" lane :build_flutter_sdk do Dir.chdir("../") unless File.exists?(".gitmodules") puts "not sub module" else sh "git submodule init" sh "git submodule update" Dir.chdir("lovenote_flutter/") sh("git fetch") sh "git checkout -B CI origin/CI" sh "git pull" sh "sh flutter_build.sh -i -r" Dir.chdir("../") sh 'pod install' Dir.chdir("fastlane") end end desc "upload pgyer.com" lane :upload_pgy do |options| msg = options[:msg] pgyer( api_key: "d66ea1cc3360b487cf341610926036fe", user_key: "87d90a388f34f05cb15752704c3e8c82", ipa: 'lovenote.ipa', update_description: msg, ) end lane :upload_appcenter do appcenter_upload( api_token: "005eaaf11938843bde3135f4ea7b2f3c6c697de6", owner_name: "lovenote", app_name: "lian4-ai4-ji4-1", ipa: "lovenote.ipa", group: "internal" ) end desc "upload appstore" lane :upload_appstore do deliver(skip_metadata: true, skip_screenshots: true) end desc "App Info" lane :info do appName = get_ipa_info_plist_value(ipa: 'lovenote.ipa', key: 'CFBundleDisplayName') releaseVersion = get_ipa_info_plist_value(ipa: 'lovenote.ipa', key: 'CFBundleShortVersionString') buildVersion = get_ipa_info_plist_value(ipa: 'lovenote.ipa', key: 'CFBundleVersion') appInfo = { "Name" => appName, "ReleaseVersion" => releaseVersion, "BuildVersion" => buildVersion } File.open("../app_info.json", "w+") do |json_file| # json_file.write(ENV['APP_INFO']) json_file.write(appInfo.to_json) end end desc "cleanup ipa etc." lane :cleanup do `rm ../app_info.json` `rm ../fastlane/report.xml` `rm ../lovenote.ipa` `rm ../lovenote.app.dSYM.zip` end desc "git commit and push" lane :git_operate do `git add .` `git commit -am "CI Commit"` `git pull` `git push` end # You can define as many lanes as you want after_all do |lane| # This block is called, only if the executed lane was successful # slack( # message: "Successfully deployed new App Update." # ) end error do |lane, exception| # slack( # message: exception.message, # success: false # ) end end # More information about multiple platforms in fastlane: https://github.com/fastlane/fastlane/blob/master/fastlane/docs/Platforms.md # All available actions: https://docs.fastlane.tools/actions # fastlane reports which actions are used. No personal data is recorded. # Learn more at https://github.com/fastlane/fastlane#metrics ```
`./fastlane/Appfile` ```ruby app_identifier "com.luiz.lovenote" # The bundle identifier of your app apple_id "bunnydu@didiapp.com" # Your Apple email address team_id "ZRPLMC329K" # Developer Portal Team ID # you can even provide different app identifiers, Apple IDs and team names per lane: # More information: https://github.com/fastlane/fastlane/blob/master/fastlane/docs/Appfile.md ```
### fastlane gems | Gem | Version | Update-Status | | -------- | ------- | ------------- | | fastlane | 2.195.0 | ✅ Up-To-Date | ### Loaded fastlane plugins: | Plugin | Version | Update-Status | | ------------------------- | ------- | ------------- | | fastlane-plugin-pgyer | 0.2.2 | ✅ Up-To-Date | | fastlane-plugin-appcenter | 1.11.1 | ✅ Up-To-Date | | fastlane-plugin-app_info | 0.6.0 | ✅ Up-To-Date |
Loaded gems | Gem | Version | | ------------------------------- | ------------ | | did_you_mean | 1.4.0 | | executable-hooks | 1.6.1 | | bundler-unload | 1.0.2 | | rubygems-bundler | 1.4.5 | | bundler | 2.1.4 | | rake | 13.0.6 | | CFPropertyList | 2.3.6 | | concurrent-ruby | 1.1.8 | | i18n | 1.8.10 | | minitest | 5.13.0 | | thread_safe | 0.3.6 | | tzinfo | 1.2.9 | | activesupport | 5.2.5 | | public_suffix | 4.0.6 | | addressable | 2.8.0 | | httpclient | 2.8.3 | | json | 2.5.1 | | algoliasearch | 1.27.5 | | rubyzip | 2.3.2 | | android_parser | 2.4.1 | | google-protobuf | 3.18.0 | | icns | 0.2.0 | | image_size | 2.1.2 | | ruby-macho | 2.5.1 | | uuidtools | 2.2.0 | | app-info | 2.7.0.beta2 | | artifactory | 3.0.15 | | atomos | 0.1.3 | | aws-eventstream | 1.2.0 | | aws-partitions | 1.507.0 | | aws-sigv4 | 1.4.0 | | jmespath | 1.4.0 | | aws-sdk-core | 3.121.1 | | aws-sdk-kms | 1.48.0 | | aws-sdk-s3 | 1.103.0 | | babosa | 1.0.4 | | chunky_png | 1.3.8 | | claide | 1.0.3 | | fuzzy_match | 2.0.4 | | nap | 1.1.0 | | netrc | 0.11.0 | | ffi | 1.15.0 | | ethon | 0.14.0 | | typhoeus | 1.4.0 | | cocoapods-core | 1.11.2 | | cocoapods-deintegrate | 1.0.4 | | cocoapods-downloader | 1.4.0 | | cocoapods-plugins | 1.0.0 | | cocoapods-search | 1.0.0 | | cocoapods-trunk | 1.5.0 | | cocoapods-try | 1.2.0 | | colored2 | 3.1.2 | | escape | 0.0.4 | | fourflusher | 2.3.1 | | gh_inspector | 1.1.3 | | molinillo | 0.8.0 | | nanaimo | 0.3.0 | | rexml | 3.2.5 | | xcodeproj | 1.21.0 | | cocoapods | 1.11.2 | | colored | 1.2 | | highline | 2.0.3 | | commander | 4.6.0 | | declarative | 0.0.20 | | digest-crc | 0.6.4 | | unf_ext | 0.0.8 | | unf | 0.1.4 | | domain_name | 0.5.20190701 | | dotenv | 2.7.6 | | emoji_regex | 3.2.2 | | excon | 0.85.0 | | faraday-em_http | 1.0.0 | | faraday-em_synchrony | 1.0.0 | | faraday-excon | 1.1.0 | | faraday-httpclient | 1.0.1 | | faraday-net_http | 1.0.1 | | faraday-net_http_persistent | 1.2.0 | | faraday-patron | 1.0.0 | | faraday-rack | 1.0.0 | | multipart-post | 2.0.0 | | ruby2_keywords | 0.0.5 | | faraday | 1.8.0 | | http-cookie | 1.0.4 | | faraday-cookie_jar | 0.0.7 | | faraday_middleware | 1.1.0 | | fastimage | 2.2.5 | | jwt | 2.2.3 | | memoist | 0.16.2 | | multi_json | 1.15.0 | | os | 1.1.1 | | signet | 0.16.0 | | googleauth | 1.0.0 | | mini_mime | 1.1.1 | | trailblazer-option | 0.1.1 | | uber | 0.1.0 | | representable | 3.1.1 | | retriable | 3.1.2 | | webrick | 1.7.0 | | google-apis-core | 0.4.1 | | google-apis-androidpublisher_v3 | 0.11.0 | | google-apis-playcustomapp_v1 | 0.5.0 | | google-apis-iamcredentials_v1 | 0.7.0 | | google-apis-storage_v1 | 0.8.0 | | google-cloud-env | 1.5.0 | | google-cloud-errors | 1.2.0 | | google-cloud-core | 1.6.0 | | google-cloud-storage | 1.34.1 | | mini_magick | 4.11.0 | | naturally | 2.2.1 | | optparse | 0.1.1 | | plist | 3.6.0 | | security | 0.1.3 | | simctl | 1.6.8 | | terminal-notifier | 2.0.0 | | unicode-display_width | 1.8.0 | | terminal-table | 1.8.0 | | tty-screen | 0.8.1 | | tty-cursor | 0.7.1 | | tty-spinner | 0.9.3 | | word_wrap | 1.0.0 | | rouge | 2.0.7 | | xcpretty | 0.3.0 | | xcpretty-travis-formatter | 1.0.1 | | fastlane-plugin-app_info | 0.6.0 | | fastlane-plugin-appcenter | 1.11.1 | | fastlane-plugin-pgyer | 0.2.2 | | mime-types-data | 3.2021.0225 | | mime-types | 3.3.1 | | rest-client | 2.0.2 | | rqrcode | 0.10.1 | | ruby_android | 0.7.7 | | thor | 0.19.4 | | fir-cli | 1.6.3 |
*generated on:* **2021-09-30**
icyleaf commented 3 years ago

试试升级到 0.6.1 版本看看,从 0.6.0 开始实验性支持解析 aab 文件格式,如果还有问题请先退回到 0.5.2 版本