Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/96.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ios fastlane[!]格式错误的版本号字符串fastlane 2.39.2_Ios_Fastlane - Fatal编程技术网

Ios fastlane[!]格式错误的版本号字符串fastlane 2.39.2

Ios fastlane[!]格式错误的版本号字符串fastlane 2.39.2,ios,fastlane,Ios,Fastlane,我是Fastlane的新手,目前为止我已成功登录了我的AppleID和iTunesConnect,但当我执行Fastlane provision或我在Fastlane文件中创建的任何其他通道时,我仍会收到一条带有一条红线的长消息: [!] Malformed version number string fastlane 2.39.2 (ArgumentError) 完整消息如下所示: [15:46:41]: -------------------------------------------

我是Fastlane的新手,目前为止我已成功登录了我的AppleID和iTunesConnect,但当我执行
Fastlane provision
或我在Fastlane文件中创建的任何其他通道时,我仍会收到一条带有一条红线的长消息:

[!] Malformed version number string fastlane 2.39.2 (ArgumentError)
完整消息如下所示:

[15:46:41]: -------------------------------------------------
[15:46:41]: --- Step: Verifying required fastlane version ---
[15:46:41]: -------------------------------------------------

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
/Users/yoni/.fastlane/bin/bundle/lib/ruby/site_ruby/2.2.0/rubygems/version.rb:207:in `initialize': [!] Malformed version number string fastlane 2.39.2 (ArgumentError)
    from /Users/yoni/.fastlane/bin/bundle/lib/ruby/site_ruby/2.2.0/rubygems/version.rb:199:in `new'
    from /Users/yoni/.fastlane/bin/bundle/lib/ruby/site_ruby/2.2.0/rubygems/version.rb:199:in `new'
    from /Users/yoni/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-2.39.2/fastlane/lib/fastlane/actions/fastlane_version.rb:10:in `run'
    from /Users/yoni/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-2.39.2/fastlane/lib/fastlane/runner.rb:252:in `block (2 levels) in execute_action'
    from /Users/yoni/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-2.39.2/fastlane/lib/fastlane/actions/actions_helper.rb:50:in `execute_action'
    from /Users/yoni/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-2.39.2/fastlane/lib/fastlane/runner.rb:230:in `block in execute_action'
    from /Users/yoni/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-2.39.2/fastlane/lib/fastlane/runner.rb:226:in `chdir'
    from /Users/yoni/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-2.39.2/fastlane/lib/fastlane/runner.rb:226:in `execute_action'
    from /Users/yoni/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-2.39.2/fastlane/lib/fastlane/runner.rb:148:in `trigger_action_by_name'
    from /Users/yoni/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-2.39.2/fastlane/lib/fastlane/fast_file.rb:146:in `method_missing'
    from Fastfile:3:in `parsing_binding'
    from /Users/yoni/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-2.39.2/fastlane/lib/fastlane/fast_file.rb:54:in `eval'
    from /Users/yoni/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-2.39.2/fastlane/lib/fastlane/fast_file.rb:54:in `block in parse'
    from /Users/yoni/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-2.39.2/fastlane/lib/fastlane/fast_file.rb:43:in `chdir'
    from /Users/yoni/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-2.39.2/fastlane/lib/fastlane/fast_file.rb:43:in `parse'
    from /Users/yoni/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-2.39.2/fastlane/lib/fastlane/fast_file.rb:33:in `initialize'
    from /Users/yoni/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-2.39.2/fastlane/lib/fastlane/lane_manager.rb:12:in `new'
    from /Users/yoni/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-2.39.2/fastlane/lib/fastlane/lane_manager.rb:12:in `cruise_lane'
    from /Users/yoni/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-2.39.2/fastlane/lib/fastlane/command_line_handler.rb:30:in `handle'
    from /Users/yoni/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-2.39.2/fastlane/lib/fastlane/commands_generator.rb:104:in `block (2 levels) in run'
    from /Users/yoni/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/commander-fastlane-4.4.4/lib/commander/command.rb:178:in `call'
    from /Users/yoni/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/commander-fastlane-4.4.4/lib/commander/command.rb:178:in `call'
    from /Users/yoni/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/commander-fastlane-4.4.4/lib/commander/command.rb:153:in `run'
    from /Users/yoni/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/commander-fastlane-4.4.4/lib/commander/runner.rb:476:in `run_active_command'
    from /Users/yoni/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-2.39.2/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb:39:in `run!'
    from /Users/yoni/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/commander-fastlane-4.4.4/lib/commander/delegates.rb:15:in `run!'
    from /Users/yoni/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-2.39.2/fastlane/lib/fastlane/commands_generator.rb:303:in `run'
    from /Users/yoni/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-2.39.2/fastlane/lib/fastlane/commands_generator.rb:42:in `start'
    from /Users/yoni/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-2.39.2/fastlane/lib/fastlane/cli_tools_distributor.rb:66:in `take_off'
    from /Users/yoni/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-2.39.2/bin/fastlane:20:in `<top (required)>'
    from /Users/yoni/.fastlane/bin/bundle/bin/fastlane:22:in `load'
    from /Users/yoni/.fastlane/bin/bundle/bin/fastlane:22:in `<main>'

正如KrauseFx所说,我编写了
fastlane\u版本“fastlane 2.39.2”
而不是
fastlane\u版本“2.39.2”

您必须为我们共享您的Fastfile才能帮助您解决此问题。请确保使用
fastlane\u版本“2.39.2”
,并将数字用“你说得对,我的产品线是fastlane_版本的“fastlane 2.39.2”,而不是:fastlane_版本的“2.39.2”
# This is the minimum version number required.
# Update this, if you use features of a newer version
fastlane_version "fastlane 2.39.2"

default_platform :ios

platform :ios do

  # 1
  desc "Creating a code signing certificate and provisioning profile"
  # 2
  lane :provision do
    # 3
    produce(
      app_name: 'mZone Poker',
      language: 'English',
      app_version: '1.0',
      sku: '123abc'
    )
    # 4
    cert
    # 5
    sigh(force: true) #other: sigh(adhoc: true) \ sigh(development: true)
  end

  desc "Create ipa"
    lane :build do
      increment_build_number
      gym
    end

  error do |lane, exception|
  # This block is called if there was an error running a lane.
  end

end