-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cannot load such file -- google/protobuf_c #4
Comments
能把 |
✅ fastlane environment ✅Stack
System Locale
fastlane files:`./fastlane/Fastfile`# 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`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
Loaded fastlane plugins:
Loaded gems
generated on: 2021-09-30 |
试试升级到 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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_fetch_version_ |
| 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 pluginsMore info - https://docs.fastlane.tools/plugins/using-plugins/#run-with-plugins
执行
bundle exec fastlane
无效The text was updated successfully, but these errors were encountered: