Giter VIP home page Giter VIP logo

fastlane-plugin-fir_cli's People

Contributors

cdoky avatar hongxinhope avatar jicheng1014 avatar robotsunhw avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

fastlane-plugin-fir_cli's Issues

钉钉通知无效

现在钉钉创建机器人需要强制开启安全选项,请插件支持下

503 Service Unavailable

今天上传,开始报错,

D, [2022-11-30T19:24:34.287747 #65929] DEBUG -- : {"CONTENT-DISPOSITION"=>"attachment; filename* = UTF-8''ad-hoc.%E8%BF%9B%E9%97%A8%E8%B4%A2%E7%BB%8F.ipa", "Content-Type"=>"application/octet-stream", "date"=>"Wed, 30 Nov 2022 11:24:34 GMT", "x-oss-date"=>"Wed, 30 Nov 2022 11:24:34 GMT", "authorization"=>"OSS *******"}
E, [2022-11-30T19:25:31.796898 #65929] ERROR -- : upload binary ... error ! 503 Service Unavailable
E, [2022-11-30T19:25:31.796987 #65929] ERROR -- : binary upload to ali fail, 503 Service Unavailable

fastlane安装插件的时候报错

$ fastlane add_plugin fir_cli [17:51:41]: fastlane detected a Gemfile in the current directory [17:51:41]: however it seems like you don't use bundle exec`
[17:51:41]: to launch fastlane faster, please use
[17:51:41]:
[17:51:41]: $ bundle exec fastlane add_plugin fir_cli
[17:51:41]:
[17:51:41]: Get started using a Gemfile for fastlane https://docs.fastlane.tools/getting-started/ios/setup/#use-a-gemfile
[17:51:47]: Error loading plugin 'fastlane-plugin-fir_cli': cannot load such file -- fir
+------------------------+---------+------------------+
| Used plugins |
+------------------------+---------+------------------+
| Plugin | Version | Action |
+------------------------+---------+------------------+
| fastlane-plugin-firim | 0.2.0 | firim |
| fastlane-plugin-pgyer | 0.2.2 | pgyer |
| fastlane-plugin-fir_c | 2.0.8 | No actions found |
| li | | |
+------------------------+---------+------------------+

[17:51:48]: Make sure to commit your Gemfile, Gemfile.lock and Pluginfile to version control
Installing plugin dependencies...
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

current directory:
/Users/Jagtu/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/unf_ext-0.0.7.5/ext/unf_ext
/Users/Jagtu/.fastlane/bin/bundle/bin/ruby -r
./siteconf20200323-32219-1dr6pho.rb extconf.rb
checking for main() in -lstdc++... *** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers. Check the mkmf.log file for more details. You may
need configuration options.

Provided configuration options:
--with-opt-dir
--without-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=/Users/Jagtu/.fastlane/bin/bundle/bin/$(RUBY_BASE_NAME)
--with-static-libstdc++
--without-static-libstdc++
--with-stdc++lib
--without-stdc++lib
/Users/Jagtu/.fastlane/bin/bundle/lib/ruby/2.2.0/mkmf.rb:456:in try_do': The compiler failed to generate an executable file. (RuntimeError) You have to install development tools first. from /Users/Jagtu/.fastlane/bin/bundle/lib/ruby/2.2.0/mkmf.rb:541:in try_link0'
from /Users/Jagtu/.fastlane/bin/bundle/lib/ruby/2.2.0/mkmf.rb:556:in try_link' from /Users/Jagtu/.fastlane/bin/bundle/lib/ruby/2.2.0/mkmf.rb:735:in try_func'
from /Users/Jagtu/.fastlane/bin/bundle/lib/ruby/2.2.0/mkmf.rb:966:in block in have_library' from /Users/Jagtu/.fastlane/bin/bundle/lib/ruby/2.2.0/mkmf.rb:911:in block in
checking_for'
from /Users/Jagtu/.fastlane/bin/bundle/lib/ruby/2.2.0/mkmf.rb:351:in block (2 levels) in postpone' from /Users/Jagtu/.fastlane/bin/bundle/lib/ruby/2.2.0/mkmf.rb:321:in open'
from /Users/Jagtu/.fastlane/bin/bundle/lib/ruby/2.2.0/mkmf.rb:351:in block in postpone' from /Users/Jagtu/.fastlane/bin/bundle/lib/ruby/2.2.0/mkmf.rb:321:in open'
from /Users/Jagtu/.fastlane/bin/bundle/lib/ruby/2.2.0/mkmf.rb:347:in postpone' from /Users/Jagtu/.fastlane/bin/bundle/lib/ruby/2.2.0/mkmf.rb:910:in checking_for'
from /Users/Jagtu/.fastlane/bin/bundle/lib/ruby/2.2.0/mkmf.rb:961:in
have_library' from extconf.rb:6:in

'

To see why this extension failed to compile, please check the mkmf.log which can
be found here:

/Users/Jagtu/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/extensions/x86_64-darwin-15/2.2.0-static/unf_ext-0.0.7.5/mkmf.log

extconf failed, exit code 1

Gem files will remain installed in
/Users/Jagtu/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/unf_ext-0.0.7.5 for
inspection.
Results logged to
/Users/Jagtu/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/extensions/x86_64-darwin-15/2.2.0-static/unf_ext-0.0.7.5/gem_make.out

An error occurred while installing unf_ext (0.0.7.5), and Bundler
cannot continue.
Make sure that gem install unf_ext -v '0.0.7.5' succeeds before bundling.
`

short 最大18个字符,可以加长点吗,谢谢

{"errors":{"exception":[{"short":["Short is invalid","Short is too long (maximum is 18 characters)"]}]},"code":100108}
短链设置的时候,需要绑定域名,超长了,18个字符不够用,求官方支持一把

上传失败:fastlane finished with errors

Traceback (most recent call last):
        41: from /usr/local/bin/fastlane:23:in `<main>'
        40: from /usr/local/bin/fastlane:23:in `load'
        39: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.144.0/bin/fastlane:23:in `<top (required)>'
        38: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.144.0/fastlane/lib/fastlane/cli_tools_distributor.rb:119:in `take_off'
        37: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.144.0/fastlane/lib/fastlane/commands_generator.rb:41:in `start'
        36: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.144.0/fastlane/lib/fastlane/commands_generator.rb:349:in `run'
        35: from /Library/Ruby/Gems/2.6.0/gems/commander-fastlane-4.4.6/lib/commander/delegates.rb:15:in `run!'
        34: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.144.0/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb:76:in `run!'
        33: from /Library/Ruby/Gems/2.6.0/gems/commander-fastlane-4.4.6/lib/commander/runner.rb:476:in `run_active_command'
        32: from /Library/Ruby/Gems/2.6.0/gems/commander-fastlane-4.4.6/lib/commander/command.rb:153:in `run'
        31: from /Library/Ruby/Gems/2.6.0/gems/commander-fastlane-4.4.6/lib/commander/command.rb:178:in `call'
        30: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.144.0/fastlane/lib/fastlane/commands_generator.rb:108:in `block (2 levels) in run'
        29: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.144.0/fastlane/lib/fastlane/command_line_handler.rb:36:in `handle'

        28: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.144.0/fastlane/lib/fastlane/lane_manager.rb:56:in `cruise_lane'
        27: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.144.0/fastlane/lib/fastlane/runner.rb:45:in `execute'
        26: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.144.0/fastlane/lib/fastlane/runner.rb:45:in `chdir'
        25: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.144.0/fastlane/lib/fastlane/runner.rb:49:in `block in execute'
        24: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.144.0/fastlane/lib/fastlane/lane.rb:33:in `call'
        23: from Fastfile:40:in `block (2 levels) in parsing_binding'
        22: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.144.0/fastlane/lib/fastlane/fast_file.rb:159:in `method_missing'
        21: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.144.0/fastlane/lib/fastlane/runner.rb:157:in `trigger_action_by_name'
        20: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.144.0/fastlane/lib/fastlane/runner.rb:227:in `execute_action'
        19: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.144.0/fastlane/lib/fastlane/runner.rb:227:in `chdir'
        18: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.144.0/fastlane/lib/fastlane/runner.rb:253:in `block in execute_action'
        17: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.144.0/fastlane/lib/fastlane/actions/actions_helper.rb:50:in `execute_action'
        16: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.144.0/fastlane/lib/fastlane/runner.rb:261:in `block (2 levels) in execute_action'
        15: from /Library/Ruby/Gems/2.6.0/gems/fastlane-plugin-fir_cli-2.0.9/lib/fastlane/plugin/fir_cli/actions/fir_cli_action.rb:39:in `run'
        14: from /Library/Ruby/Gems/2.6.0/gems/fir-cli-2.0.9/lib/fir/util/publish.rb:10:in `publish'
        13: from /Library/Ruby/Gems/2.6.0/gems/fir-cli-2.0.9/lib/fir/util/publish.rb:267:in `initialize_publish_options'
        12: from /Library/Ruby/Gems/2.6.0/gems/fir-cli-2.0.9/lib/fir/util.rb:36:in `fetch_user_info'
        11: from /Library/Ruby/Gems/2.6.0/gems/api_tools-0.1.0/lib/api_tools/default_rest_module.rb:10:in `block (2 levels) in <module:DefaultRe
stModule>'
10: from /Library/Ruby/Gems/2.6.0/gems/api_tools-0.1.0/lib/api_tools/default_rest_module.rb:64:in `basic_request'
         9: from /Library/Ruby/Gems/2.6.0/gems/api_tools-0.1.0/lib/api_tools/default_rest_module.rb:64:in `times'
         8: from /Library/Ruby/Gems/2.6.0/gems/api_tools-0.1.0/lib/api_tools/default_rest_module.rb:66:in `block in basic_request'
         7: from /Library/Ruby/Gems/2.6.0/gems/rest-client-2.1.0/lib/restclient/request.rb:63:in `execute'
         6: from /Library/Ruby/Gems/2.6.0/gems/rest-client-2.1.0/lib/restclient/request.rb:163:in `execute'
         5: from /Library/Ruby/Gems/2.6.0/gems/rest-client-2.1.0/lib/restclient/request.rb:727:in `transmit'
         4: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/net/http.rb:920:in `start'
         3: from /Library/Ruby/Gems/2.6.0/gems/rest-client-2.1.0/lib/restclient/request.rb:743:in `block in transmit'
         2: from /Library/Ruby/Gems/2.6.0/gems/rest-client-2.1.0/lib/restclient/request.rb:836:in `process_result'
         1: from /Library/Ruby/Gems/2.6.0/gems/rest-client-2.1.0/lib/restclient/abstract_response.rb:129:in `return!'
/Library/Ruby/Gems/2.6.0/gems/rest-client-2.1.0/lib/restclient/abstract_response.rb:249:in `exception_with_response': 401 Unauthorized (RestClie
nt::Unauthorized)

specify_file_path 可以支持正则匹配吗?

现在我生成的apk文件名会根据versionCode和versionName自动变化,每发一个版本versionCode就会加1,这时候fastfile里面如果写死的话就不行了,有办法支持正则匹配的方式吗?

如何在Mac中使用FastLane导出apk到fir

我遇到了两个问题

1.我按照wiki上描述填写了Fastfile提示我
/usr/local/Cellar/fastlane/2.179.0/libexec/gems/highline-1.7.10/lib/highline.rb:624: warning: Using the last argument as
keyword parameters is deprecated
[13:37:54]: Couldn't automatically detect the project file, please provide a path:
2. 如何获取最新或者当前的Git changeLog提交给fir
应该怎么去做呢?

undefined method `action_name' for Fastlane::Actions::FirHelper:Class

fastlane add_plugin fir_cli

bundler: failed to load command: fastlane (/usr/local/Cellar/fastlane/2.145.0/libexec/bin/fastlane)
NoMethodError: [!] undefined method `action_name' for Fastlane::Actions::FirHelper:Class
  /usr/local/Cellar/fastlane/2.145.0/libexec/gems/fastlane-2.145.0/fastlane/lib/fastlane/swift_fastlane_api_generator.rb:82:in `block in initialize'
  /usr/local/Cellar/fastlane/2.145.0/libexec/gems/fastlane-2.145.0/fastlane/lib/fastlane/documentation/actions_list.rb:180:in `block in all_actions'
  /usr/local/Cellar/fastlane/2.145.0/libexec/gems/fastlane-2.145.0/fastlane/lib/fastlane/documentation/actions_list.rb:172:in `each'
  /usr/local/Cellar/fastlane/2.145.0/libexec/gems/fastlane-2.145.0/fastlane/lib/fastlane/documentation/actions_list.rb:172:in `all_actions'
  /usr/local/Cellar/fastlane/2.145.0/libexec/gems/fastlane-2.145.0/fastlane/lib/fastlane/swift_fastlane_api_generator.rb:81:in `initialize'
  /usr/local/Cellar/fastlane/2.145.0/libexec/gems/fastlane-2.145.0/fastlane/lib/fastlane/commands_generator.rb:342:in `new'
  /usr/local/Cellar/fastlane/2.145.0/libexec/gems/fastlane-2.145.0/fastlane/lib/fastlane/commands_generator.rb:342:in `block (2 levels) in run'
  /usr/local/Cellar/fastlane/2.145.0/libexec/gems/commander-fastlane-4.4.6/lib/commander/command.rb:178:in `call'
  /usr/local/Cellar/fastlane/2.145.0/libexec/gems/commander-fastlane-4.4.6/lib/commander/command.rb:153:in `run'
  /usr/local/Cellar/fastlane/2.145.0/libexec/gems/commander-fastlane-4.4.6/lib/commander/runner.rb:476:in `run_active_command'
  /usr/local/Cellar/fastlane/2.145.0/libexec/gems/fastlane-2.145.0/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb:76:in `run!'
  /usr/local/Cellar/fastlane/2.145.0/libexec/gems/commander-fastlane-4.4.6/lib/commander/delegates.rb:15:in `run!'
  /usr/local/Cellar/fastlane/2.145.0/libexec/gems/fastlane-2.145.0/fastlane/lib/fastlane/commands_generator.rb:349:in `run'
  /usr/local/Cellar/fastlane/2.145.0/libexec/gems/fastlane-2.145.0/fastlane/lib/fastlane/commands_generator.rb:41:in `start'
  /usr/local/Cellar/fastlane/2.145.0/libexec/gems/fastlane-2.145.0/fastlane/lib/fastlane/cli_tools_distributor.rb:119:in `take_off'
  /usr/local/Cellar/fastlane/2.145.0/libexec/gems/fastlane-2.145.0/bin/fastlane:23:in `<top (required)>'
  /usr/local/Cellar/fastlane/2.145.0/libexec/bin/fastlane:23:in `load'
  /usr/local/Cellar/fastlane/2.145.0/libexec/bin/fastlane:23:in `<top (required)>'
✅ fastlane environment ✅

Stack

Key Value
OS 10.15.4
Ruby 2.5.8
Bundler? false
Git git version 2.26.0
Installation Source /usr/local/Cellar/fastlane/2.145.0/libexec/bin/fastlane
Host Mac OS X 10.15.4 (19E266)
Ruby Lib Dir /usr/local/Cellar/[email protected]/2.5.8/lib
OpenSSL Version OpenSSL 1.1.1f 31 Mar 2020
Is contained false
Is homebrew false
Is installed via Fabric.app false
Xcode Path /Applications/Xcode.app/Contents/Developer/
Xcode Version 11.4.1

System Locale

Variable Value
LANG zh_CN.UTF-8
LC_ALL
LANGUAGE

fastlane files:

`./fastlane/Fastfile.swift`
// This file contains the fastlane.tools configuration
// You can find the documentation at https://docs.fastlane.tools
//
// For a list of all available actions, check out
//
//     https://docs.fastlane.tools/actions
//

import Foundation

class Fastfile: LaneFile {
	func debugLane() {
        desc("Push a new debug beta build to TestFlight")

        incrementBuildNumber()

	buildApp(workspace: "XXXX", scheme: "XXXX")

        uploadToTestflight(username: "XXXX", betaAppDescription: "XXXX", skipWaitingForBuildProcessing: true, teamId: "XXXX")

	}

}

No Appfile found

fastlane gems

Gem Version Update-Status
fastlane 2.145.0 ✅ Up-To-Date

Loaded fastlane plugins:

Plugin Version Update-Status
fastlane-plugin-fir_cli 2.0.9 ✅ Up-To-Date
Loaded gems
Gem Version
slack-notifier 2.3.2
rouge 2.0.7
xcpretty 0.3.0
terminal-notifier 2.0.0
unicode-display_width 1.7.0
terminal-table 1.8.0
plist 3.5.0
CFPropertyList 3.0.2
public_suffix 2.0.5
addressable 2.7.0
multipart-post 2.0.0
word_wrap 1.0.0
tty-screen 0.7.1
tty-cursor 0.7.1
tty-spinner 0.9.3
babosa 1.0.3
colored 1.2
highline 1.7.10
commander-fastlane 4.4.6
excon 0.73.0
faraday 0.17.3
unf_ext 0.0.7.7
unf 0.1.4
domain_name 0.5.20190701
http-cookie 1.0.3
faraday-cookie_jar 0.0.6
faraday_middleware 0.13.1
fastimage 2.1.7
gh_inspector 1.1.3
json 2.3.0
mini_magick 4.10.1
multi_xml 0.6.0
rubyzip 1.3.0
security 0.1.3
xcpretty-travis-formatter 1.0.0
dotenv 2.7.5
bundler 2.1.4
naturally 2.2.0
simctl 1.6.8
jwt 2.1.0
uber 0.1.0
declarative 0.0.10
declarative-option 0.1.0
representable 3.0.4
retriable 3.1.2
mini_mime 1.0.2
multi_json 1.14.1
signet 0.14.0
httpclient 2.8.3
google-api-client 0.36.4
emoji_regex 1.0.1
aws-sigv4 1.1.1
aws-sdk-kms 1.30.0
aws-sdk-s3 1.61.2
nanaimo 0.2.6
colored2 3.1.2
claide 1.0.3
atomos 0.1.3
xcodeproj 1.16.0
os 1.1.0
memoist 0.16.2
googleauth 0.12.0
digest-crc 0.5.1
google-cloud-errors 1.0.0
google-cloud-env 1.3.1
google-cloud-core 1.5.0
google-cloud-storage 1.26.0
aws-eventstream 1.1.0
aws-partitions 1.297.0
jmespath 1.4.0
aws-sdk-core 3.94.0
http-accept 1.7.0
mime-types-data 3.2019.1009
mime-types 3.3.1
netrc 0.11.0
rest-client 2.1.0
api_tools 0.1.0
thor 0.20.3
admqr_knife 0.1.5
ruby_android_apk 0.7.7.1
chunky_png 1.3.11
rqrcode 0.10.1
fir-cli 2.0.9
fastlane-plugin-fir_cli 2.0.9

generated on: 2020-04-17

command line 运行 fastlane fir_cli api_token: xxxxxxxxxxxxxxxxx 报错

19:43:56: --- Step: fir_cli ---
19:43:56: ---------------------
19:43:56: The fir_cli plugin is working!

Looking for related GitHub issues on fastlane/fastlane...

Found no similar issues. To create a new issue, please visit:
https://github.com/fastlane/fastlane/issues/new
Run fastlane env to append the fastlane environment to your issue
Traceback (most recent call last):
21: from /usr/local/bin/fastlane:23:in <main>' 20: from /usr/local/bin/fastlane:23:in load'
19: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.137.0/bin/fastlane:23:in <top (required)>' 18: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.137.0/fastlane/lib/fastlane/cli_tools_distributor.rb:119:in take_off'
17: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.137.0/fastlane/lib/fastlane/commands_generator.rb:41:in start' 16: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.137.0/fastlane/lib/fastlane/commands_generator.rb:349:in run'
15: from /Library/Ruby/Gems/2.6.0/gems/commander-fastlane-4.4.6/lib/commander/delegates.rb:15:in run!' 14: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.137.0/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb:76:in run!'
13: from /Library/Ruby/Gems/2.6.0/gems/commander-fastlane-4.4.6/lib/commander/runner.rb:476:in run_active_command' 12: from /Library/Ruby/Gems/2.6.0/gems/commander-fastlane-4.4.6/lib/commander/command.rb:153:in run'
11: from /Library/Ruby/Gems/2.6.0/gems/commander-fastlane-4.4.6/lib/commander/command.rb:178:in call' 10: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.137.0/fastlane/lib/fastlane/commands_generator.rb:221:in block (2 levels) in run'
9: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.137.0/fastlane/lib/fastlane/one_off.rb:22:in execute' 8: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.137.0/fastlane/lib/fastlane/one_off.rb:42:in run'
7: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.137.0/fastlane/lib/fastlane/runner.rb:227:in execute_action' 6: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.137.0/fastlane/lib/fastlane/runner.rb:227:in chdir'
5: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.137.0/fastlane/lib/fastlane/runner.rb:235:in block in execute_action' 4: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.137.0/fastlane/lib/fastlane/actions/actions_helper.rb:50:in execute_action'
3: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.137.0/fastlane/lib/fastlane/runner.rb:256:in block (2 levels) in execute_action' 2: from /Library/Ruby/Gems/2.6.0/gems/fastlane-plugin-fir_cli-2.0.0/lib/fastlane/plugin/fir_cli/actions/fir_cli_action.rb:25:in run'
1: from /Library/Ruby/Gems/2.6.0/gems/fir-cli-2.0.0.beta2/lib/fir/util/publish.rb:11:in publish' /Library/Ruby/Gems/2.6.0/gems/fir-cli-2.0.0.beta2/lib/fir/util/publish.rb:191:in initialize_publish_options': undefined method _info' for Fastlane::Actions::FirHelper:Class (NoMethodError) Did you mean? info 21: from /usr/local/bin/fastlane:23:in

'
20: from /usr/local/bin/fastlane:23:in load' 19: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.137.0/bin/fastlane:23:in <top (required)>'
18: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.137.0/fastlane/lib/fastlane/cli_tools_distributor.rb:119:in take_off' 17: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.137.0/fastlane/lib/fastlane/commands_generator.rb:41:in start'
16: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.137.0/fastlane/lib/fastlane/commands_generator.rb:349:in run' 15: from /Library/Ruby/Gems/2.6.0/gems/commander-fastlane-4.4.6/lib/commander/delegates.rb:15:in run!'
14: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.137.0/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb:76:in run!' 13: from /Library/Ruby/Gems/2.6.0/gems/commander-fastlane-4.4.6/lib/commander/runner.rb:476:in run_active_command'
12: from /Library/Ruby/Gems/2.6.0/gems/commander-fastlane-4.4.6/lib/commander/command.rb:153:in run' 11: from /Library/Ruby/Gems/2.6.0/gems/commander-fastlane-4.4.6/lib/commander/command.rb:178:in call'
10: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.137.0/fastlane/lib/fastlane/commands_generator.rb:221:in block (2 levels) in run' 9: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.137.0/fastlane/lib/fastlane/one_off.rb:22:in execute'
8: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.137.0/fastlane/lib/fastlane/one_off.rb:42:in run' 7: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.137.0/fastlane/lib/fastlane/runner.rb:227:in execute_action'
6: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.137.0/fastlane/lib/fastlane/runner.rb:227:in chdir' 5: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.137.0/fastlane/lib/fastlane/runner.rb:235:in block in execute_action'
4: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.137.0/fastlane/lib/fastlane/actions/actions_helper.rb:50:in execute_action' 3: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.137.0/fastlane/lib/fastlane/runner.rb:256:in block (2 levels) in execute_action'
2: from /Library/Ruby/Gems/2.6.0/gems/fastlane-plugin-fir_cli-2.0.0/lib/fastlane/plugin/fir_cli/actions/fir_cli_action.rb:25:in run' 1: from /Library/Ruby/Gems/2.6.0/gems/fir-cli-2.0.0.beta2/lib/fir/util/publish.rb:11:in publish'
/Library/Ruby/Gems/2.6.0/gems/fir-cli-2.0.0.beta2/lib/fir/util/publish.rb:191:in initialize_publish_options': [!] undefined method _info' for Fastlane::Actions::FirHelper:Class (NoMethodError)
Did you mean? info

上传文件的时候,长时间没有反馈,被CI直接中断

INFO [2021-02-02 16:49:27.11]: The fir_cli plugin is working!
I, [2021-02-02T16:49:33.873747 #6155] INFO -- : Fetching [email protected] uploading info......
I, [2021-02-02T16:49:33.873803 #6155] INFO -- : Uploading app: xx-P-1.0(Build 1)
I, [2021-02-02T16:49:36.825114 #6155] INFO -- : Publishing app via >.......
I, [2021-02-02T16:49:36.825170 #6155] INFO -- : ✈ -------------------------------------------- ✈
I, [2021-02-02T16:49:36.825185 #6155] INFO -- : begin to upload ...
D, [2021-02-02T16:49:36.825248 #6155] DEBUG -- : begin to upload icon
D, [2021-02-02T16:49:36.825310 #6155] DEBUG -- : icon_url = https://fir-app-icon.oss-cn-beijing.aliyuncs.com/9f54b6377ec862fedc0d55b0375cf6d74223d6f8, icon_info = #File:0x00000001ea6450
D, [2021-02-02T16:49:43.944420 #6155] DEBUG -- : upload icon finished
D, [2021-02-02T16:49:43.944513 #6155] DEBUG -- : begin to upload binary ...
D, [2021-02-02T16:49:43.944566 #6155] DEBUG -- : binary_url = https://fir-app-binary.oss-cn-beijing.aliyuncs.com/7b99c36d45e77caa283e8571c2fb8a2b2af450e3.apk, binary_info = #File:0x00000004ff2298
D, [2021-02-02T16:49:43.944580 #6155] DEBUG -- : {"CONTENT-DISPOSITION"=>"attachment; filename* = UTF-8''app-preview-release.apk", "Content-Type"=>"application/vnd.android.package-archive", "date"=>"Tue, 02 Feb 2021 16:49:36 GMT", "x-oss-date"=>"Tue, 02 Feb 2021 16:49:36 GMT", "authorization"=>"OSS LTAIH45wjMAbqQjW:uCTZDTWSNbPMj+wX1kRnyr9PfUg="}
No output has been received in the last 10m0s, this potentially indicates a stalled build or something wrong with the build itself.
Check the details on how to adjust your build configuration on: https://docs.travis-ci.com/user/common-build-problems/#build-times-out-because-no-output-was-received
The build has been terminated

在travis平台构建,上传的时候出现这种问题。

wxwork_access_token不传时流程无法正常结束

当ipa上传完成后

I, [2021-04-21T00:22:05.183053 #44002]  INFO -- : Updating app info......
I, [2021-04-21T00:22:11.097022 #44002]  INFO -- : Fetch app info from fir.im
I, [2021-04-21T00:22:16.229463 #44002]  INFO -- : end upload
I, [2021-04-21T00:22:16.229581 #44002]  INFO -- : ✈ -------------------------------------------- ✈
I, [2021-04-21T00:22:16.229630 #44002]  INFO -- : Published succeed: http://d.firim.pro/listify

会报一个关于wxwork_notifier函数的错误,导致流程无法走完。

3: from /Library/Ruby/Gems/2.6.0/gems/fir-cli-2.0.12/lib/fir/util/publish.rb:36:in `publish'
2: from /Library/Ruby/Gems/2.6.0/gems/fir-cli-2.0.12/lib/fir/util/publish.rb:226:in `wxwork_notifier'
1: from /Library/Ruby/Gems/2.6.0/gems/api_tools-0.1.1/lib/api_tools/default_rest_module.rb:19:in `block (2 levels) in <module:DefaultRestModule>'
/Library/Ruby/Gems/2.6.0/gems/api_tools-0.1.1/lib/api_tools/default_rest_module.rb:75:in `basic_request': [!] undefined method `body' for nil:NilClass (NoMethodError)

https://github.com/FIRHQ/fir-cli/blob/5626a5ff488559375dab48013e4810dd3f819b7b/lib/fir/util/publish.rb#L209
wx_notifier函数中存在以下逻辑

webhook_url = options[:wxwork_webhook]
webhook_url ||= "https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=#{options[:wxwork_access_token]}"
return if webhook_url.blank?

当wxwork_webhook为nil的时候会走wxwork_access_token逻辑
所以需要将默认的wxwork_webhook参数设置为"",使wx_notifier终止
并且当wxwork_access_token存在时wxwork_webhook必须为nil

2.0.3.4提交成功后报错

Restclient error, body =
400 Bad Request
+------------------+--------------+
| Lane Context |
+------------------+--------------+
| DEFAULT_PLATFORM | ios |
| PLATFORM_NAME | ios |
| LANE_NAME | ios FireTest |
+------------------+--------------+
[16:41:57]: 400 Bad Request

+------+------------------+-------------+
| fastlane summary |
+------+------------------+-------------+
| Step | Action | Time (in s) |
+------+------------------+-------------+
| 1 | default_platform | 0 |
| 💥 | fir_cli | 24 |
+------+------------------+-------------+

[16:41:57]: fastlane finished with errors

Looking for related GitHub issues on fastlane/fastlane...

➡️ Distribute to hockeyapp suddenly failing
fastlane/fastlane#400 [closed] 8 💬
22 Sep 2016

➡️ 400 Bad request
fastlane/fastlane#15587 [closed] 3 💬
2 weeks ago

➡️ 400 Bad Request
fastlane/fastlane#12449 [closed] 1 💬
04 Jul 2018

and 30 more at: https://github.com/fastlane/fastlane/search?q=400%20Bad%20Request&type=Issues&utf8=✓

🔗 You can ⌘ + double-click on links to open them directly in your browser.
Traceback (most recent call last):
44: from /Users/seven/.rvm/gems/ruby-2.5.1/bin/ruby_executable_hooks:24:in <main>' 43: from /Users/seven/.rvm/gems/ruby-2.5.1/bin/ruby_executable_hooks:24:in eval'
42: from /Users/seven/.rvm/gems/ruby-2.5.1/bin/fastlane:23:in <main>' 41: from /Users/seven/.rvm/gems/ruby-2.5.1/bin/fastlane:23:in load'
40: from /Users/seven/.rvm/gems/ruby-2.5.1/gems/fastlane-2.142.0/bin/fastlane:23:in <top (required)>' 39: from /Users/seven/.rvm/gems/ruby-2.5.1/gems/fastlane-2.142.0/fastlane/lib/fastlane/cli_tools_distributor.rb:119:in take_off'
38: from /Users/seven/.rvm/gems/ruby-2.5.1/gems/fastlane-2.142.0/fastlane/lib/fastlane/commands_generator.rb:41:in start' 37: from /Users/seven/.rvm/gems/ruby-2.5.1/gems/fastlane-2.142.0/fastlane/lib/fastlane/commands_generator.rb:349:in run'
36: from /Users/seven/.rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/commander-fastlane-4.4.6/lib/commander/delegates.rb:15:in run!' 35: from /Users/seven/.rvm/gems/ruby-2.5.1/gems/fastlane-2.142.0/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb:76:in run!'
34: from /Users/seven/.rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/commander-fastlane-4.4.6/lib/commander/runner.rb:476:in run_active_command' 33: from /Users/seven/.rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/commander-fastlane-4.4.6/lib/commander/command.rb:153:in run'
32: from /Users/seven/.rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/commander-fastlane-4.4.6/lib/commander/command.rb:178:in call' 31: from /Users/seven/.rvm/gems/ruby-2.5.1/gems/fastlane-2.142.0/fastlane/lib/fastlane/commands_generator.rb:108:in block (2 levels) in run'
30: from /Users/seven/.rvm/gems/ruby-2.5.1/gems/fastlane-2.142.0/fastlane/lib/fastlane/command_line_handler.rb:36:in handle' 29: from /Users/seven/.rvm/gems/ruby-2.5.1/gems/fastlane-2.142.0/fastlane/lib/fastlane/lane_manager.rb:56:in cruise_lane'
28: from /Users/seven/.rvm/gems/ruby-2.5.1/gems/fastlane-2.142.0/fastlane/lib/fastlane/runner.rb:45:in execute' 27: from /Users/seven/.rvm/gems/ruby-2.5.1/gems/fastlane-2.142.0/fastlane/lib/fastlane/runner.rb:45:in chdir'
26: from /Users/seven/.rvm/gems/ruby-2.5.1/gems/fastlane-2.142.0/fastlane/lib/fastlane/runner.rb:49:in block in execute' 25: from /Users/seven/.rvm/gems/ruby-2.5.1/gems/fastlane-2.142.0/fastlane/lib/fastlane/lane.rb:33:in call'
24: from Fastfile:167:in block (2 levels) in parsing_binding' 23: from Fastfile:174:in fire'
22: from /Users/seven/.rvm/gems/ruby-2.5.1/gems/fastlane-2.142.0/fastlane/lib/fastlane/fast_file.rb:159:in method_missing' 21: from /Users/seven/.rvm/gems/ruby-2.5.1/gems/fastlane-2.142.0/fastlane/lib/fastlane/runner.rb:157:in trigger_action_by_name'
20: from /Users/seven/.rvm/gems/ruby-2.5.1/gems/fastlane-2.142.0/fastlane/lib/fastlane/runner.rb:227:in execute_action' 19: from /Users/seven/.rvm/gems/ruby-2.5.1/gems/fastlane-2.142.0/fastlane/lib/fastlane/runner.rb:227:in chdir'
18: from /Users/seven/.rvm/gems/ruby-2.5.1/gems/fastlane-2.142.0/fastlane/lib/fastlane/runner.rb:253:in block in execute_action' 17: from /Users/seven/.rvm/gems/ruby-2.5.1/gems/fastlane-2.142.0/fastlane/lib/fastlane/actions/actions_helper.rb:50:in execute_action'
16: from /Users/seven/.rvm/gems/ruby-2.5.1/gems/fastlane-2.142.0/fastlane/lib/fastlane/runner.rb:261:in block (2 levels) in execute_action' 15: from /Users/seven/.rvm/gems/ruby-2.5.1/gems/fastlane-plugin-fir_cli-2.0.3.4/lib/fastlane/plugin/fir_cli/actions/fir_cli_action.rb:31:in run'
14: from /Users/seven/.rvm/gems/ruby-2.5.1/gems/fir-cli-2.0.3.3/lib/fir/util/publish.rb:15:in publish' 13: from /Users/seven/.rvm/gems/ruby-2.5.1/gems/fir-cli-2.0.3.3/lib/fir/util/publish.rb:84:in upload_app'
12: from /Users/seven/.rvm/gems/ruby-2.5.1/gems/fir-cli-2.0.3.3/lib/fir/util/publish.rb:126:in update_app_info' 11: from /Users/seven/.rvm/gems/ruby-2.5.1/gems/api_tools-0.1.0/lib/api_tools/default_rest_module.rb:19:in block (2 levels) in module:DefaultRestModule'
10: from /Users/seven/.rvm/gems/ruby-2.5.1/gems/api_tools-0.1.0/lib/api_tools/default_rest_module.rb:64:in basic_request' 9: from /Users/seven/.rvm/gems/ruby-2.5.1/gems/api_tools-0.1.0/lib/api_tools/default_rest_module.rb:64:in times'
8: from /Users/seven/.rvm/gems/ruby-2.5.1/gems/api_tools-0.1.0/lib/api_tools/default_rest_module.rb:66:in block in basic_request' 7: from /Users/seven/.rvm/gems/ruby-2.5.1/gems/rest-client-2.1.0/lib/restclient/request.rb:63:in execute'
6: from /Users/seven/.rvm/gems/ruby-2.5.1/gems/rest-client-2.1.0/lib/restclient/request.rb:163:in execute' 5: from /Users/seven/.rvm/gems/ruby-2.5.1/gems/rest-client-2.1.0/lib/restclient/request.rb:727:in transmit'
4: from /Users/seven/.rvm/rubies/ruby-2.5.1/lib/ruby/2.5.0/net/http.rb:910:in start' 3: from /Users/seven/.rvm/gems/ruby-2.5.1/gems/rest-client-2.1.0/lib/restclient/request.rb:743:in block in transmit'
2: from /Users/seven/.rvm/gems/ruby-2.5.1/gems/rest-client-2.1.0/lib/restclient/request.rb:836:in process_result' 1: from /Users/seven/.rvm/gems/ruby-2.5.1/gems/rest-client-2.1.0/lib/restclient/abstract_response.rb:129:in return!'
/Users/seven/.rvm/gems/ruby-2.5.1/gems/rest-client-2.1.0/lib/restclient/abstract_response.rb:249:in `exception_with_response': 400 Bad Request (RestClient::BadRequest)

dingTalk问题

使用过dingtalk_access_token后,即使移除,网页上的配置也不起作用了

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.