标签: fastlane

使用 fastlanepilot 分发 ios 应用程序

我正在尝试使用 --testers_file_path 选项通过 fastlanepilot 命令分发我的 ios 应用程序。应用程序已上传到 iTunes Connect,但遗憾的是内部测试人员未在 iTunes Connect 中更新,电子邮件也未发送给测试人员。不幸的是,没有足够的信息说明我应该如何使用 testers_file_path 选项。到目前为止,我已经尝试过:

  • 只写测试人员的电子邮件(用逗号分隔)
  • 写下测试人员的名字和第二名(John Doe,John Doe)
  • 下载带有“飞行员列表”的 testers.csv 文件并将其用于分发

所以问题是

  • 我应该如何使用 fastlanepilot 分发应用程序?
  • 我应该在 iTunes Connect 中手动添加测试人员以使 testers_file_path 选项起作用吗?
  • testers_file_path 选项的 testers.csv 文件的格式应该是什么?

iphone ios fastlane fastlane-deliver

5
推荐指数
0
解决办法
233
查看次数

从快速通道更改用户定义的变量

我的Xcode项目中有一个用户定义的变量- MY_VARIABLE
在此处输入图片说明MY_VARIABLE也链接了我的.plist文件:
在此处输入图片说明 然后在我的代码中使用它:
NSString *myVariable = [[NSBundle mainBundle] objectForInfoDictionaryKey:@"MY_VARIABLE"];

在fastfile中,我有AppStore通道,仅在这种情况下,我想更改的值MY_VARIABLE

我当前正在使用:
ENV["MY_VARIABLE"] = "appStoreValue"
但这不起作用。

xcode fastlane

5
推荐指数
1
解决办法
1090
查看次数

无法通过Fastlane Pilot提交TestFlight构建

上传一个应用程序并提交给FastLlane deliver我进行审核后,我正试图启动内部测试pilot.但是,只要我使用如下命令执行此操作:

pilot distribute -a com.foo.bar.awesomesauce -u me@example.com -w test_test_test
Run Code Online (Sandbox Code Playgroud)

我收到以下错误:

Error finding relevant GitHub issues: undefined method `map' for nil:NilClass

[!] The request could not be completed because:
    Beta App Description is required. The phone number is missing. The email must be in the format: contact@example.com. The email is required. Beta App Description is required. The email must be in the format: contact@example.com. The email is required. The phone number is missing. Validation errors
Run Code Online (Sandbox Code Playgroud)

例外是不言而喻的,跳入iTunes …

itunesconnect ios testflight fastlane fastlane-deliver

5
推荐指数
1
解决办法
744
查看次数

为什么 fastlanes increment_build_number 找不到我的项目?

我已经将我的 fastlane 文件夹移出了 xcode 目录,所以我试图让它定位它。我有这是我的 Fastfile:

increment_build_number(
  xcodeproj: "../ember-cordova/cordova/platforms/ios/Patontheback.xcodeproj",
  build_number: ENV['CIRCLE_BUILD_NUM']
)
Run Code Online (Sandbox Code Playgroud)

这使

[06:50:47]: ------------------------------------
[06:50:47]: --- Step: increment_build_number ---
[06:50:47]: ------------------------------------
[06:50:47]: Error setting value '../ember-cordova/cordova/platforms/ios/Patontheback.xcodeproj' for option 'xcodeproj'
[06:50:47]: You passed invalid parameters to 'increment_build_number'.
[06:50:47]: Check out the error below and available options by running `fastlane action increment_build_number`
[06:50:47]: Variable Dump:
[06:50:47]: {:DEFAULT_PLATFORM=>:ios, :PLATFORM_NAME=>:ios, :LANE_NAME=>"ios beta", :SIGH_PROFILE_TYPE=>"app-store"}
[06:50:47]: Could not find Xcode project
Run Code Online (Sandbox Code Playgroud)

xcodeproj 肯定存在于该位置:

$ ls -l ../ember-cordova/cordova/platforms/ios/Patontheback.xcodeproj
total 28
-rwxr-xr-x 1 kitsunde staff 25639 Sep …
Run Code Online (Sandbox Code Playgroud)

fastlane

5
推荐指数
1
解决办法
1231
查看次数

如何在 Rails 中返回错误消息

我正在学习 rails 并且对一些基础知识感到困惑。这是我的 API 方法:

  def itunes_app_create
    begin
      app = Spaceship::Tunes::Application.create!(name: params[:itunes_app_name],
                                  primary_language: "English",
                                           version: params[:itunes_app_version],
                                               sku: params[:itunes_app_sku],
                                         bundle_id: params[:itunes_app_bundle_id],
                                           team_id: params[:itunes_team_id])
      render json: app.to_json, status: 200
    rescue
      render json: app.errors.full_messages.to_json, status: 200
    end
  end
Run Code Online (Sandbox Code Playgroud)

我的 app.errors.full_messages.to_json线路失败了,因为好吧,我只是从我看到的东西中弥补了这一点。如何返回导致方法失败的消息?

不确定它是否重要,app它不是我模型的一部分。我只需要从我的客户端应用程序调用它,然后发回结果。

作为一个附带问题,在这种情况下,我应该返回什么状态并显示错误?

error-handling ruby-on-rails fastlane

5
推荐指数
1
解决办法
6230
查看次数

Xcode 8.3 xcodebuild exportArchive无法正常工作"找不到适用的设备"错误

我正在尝试像这样创建ipa文件:

xcodebuild -exportArchive 
-archivePath /tmp/public_1.46.0.2029_production.xcarchive 
    -exportPath /tmp/avner -exportOptionsPlist export.plist 
Run Code Online (Sandbox Code Playgroud)

export.plist是最小的(我也尝试完全剥离它并添加/删除各种标志)

我得到以下输出

~/Developer/iOS-Scripts/Maxi : xcodebuild -exportArchive -archivePath /tmp/public_1.46.0.2029_production.xcarchive -exportPath /tmp//avner_avner -exportOptionsPlist export.plist 
2017-04-03 15:48:37.428 xcodebuild[5086:564094] [MT] IDEDistribution: -[IDEDistributionLogging _createLoggingBundleAtPath:]: Created bundle at path '/var/folders/rg/8ydk5h297ng50z_3dpkr5jx00000gn/T/InsertViewer_2017-04-03_15-48-37.428.xcdistributionlogs'.
1.2.840.113635.100.1.61
2017-04-03 15:48:46.363 xcodebuild[5086:564094] [MT] IDEDistribution: Step failed: <IDEDistributionThinningStep: 0x7fdc03a02110>: Error Domain=IDEDistributionErrorDomain Code=14 "No applicable devices found." UserInfo={NSLocalizedDescription=No applicable devices found.}
error: exportArchive: No applicable devices found.

Error Domain=IDEDistributionErrorDomain Code=14 "No applicable devices found." UserInfo={NSLocalizedDescription=No applicable devices found.}

** EXPORT FAILED **
Run Code Online (Sandbox Code Playgroud)

编辑

我尝试使用fastlane脚本包装器调用构建但仍然得到相同的错误:

./xcbuild-safe.sh -exportArchive -archivePath …
Run Code Online (Sandbox Code Playgroud)

xcode xcodebuild ios bitcode fastlane

5
推荐指数
1
解决办法
2167
查看次数

Fastlane窗口无法安装

如何在windows中安装fastlane?我安装了rubygems,但我不知道如何在Windows上安装fastlane.请告诉我如何在Windows中安装fastlane?

windows fastlane fastlane-snapshot

5
推荐指数
3
解决办法
3342
查看次数

如何使用 ruby​​ 读取 .xcconfig 文件常量以将它们用作 Fastlane 通道变量?

我正在尝试使用当前配置使用 Fastlane 部署我的 iOS 应用程序:具有多个目标和多个环境的单个项目(使用 .xccconfig 文件)。我创建了 3 个通道:开发、测试、分发。这些车道采用“brand_name”作为参数,因此我可以为每个目标使用相同的车道。

我想要实现的是“读取”目标的 .xcconfig 文件(例如PRODUCT_BUNDLE_IDENTIFIER)中的常量并将其用作我车道中的变量。我设法通过创建和读取包含目标包 ID 的 yaml 文件来做到这一点,但由于我已经在使用 .xcconfig 文件,我想避免重复。我做了一些搜索以找到答案,但由于我对 ruby​​ 相当陌生,所以我现在陷入困境。有没有办法实现这一目标?

如果有帮助,这是我目前正在使用的工作通道,并在我想使用 .xcconfig 文件而不是 yaml 文件替换的部分上发表评论:

lane :development do |options|

    # Getting lane settings

    #adding lane_name to the options
    options = options.merge(lane_name: 'development') 

    # THIS IS THE PART I'D LIKE TO REPLACE WITH .XCCONFIG FILE INSTEAD OF YAML
    #fastlane config path
    config = YAML.load_file(File.join(File.dirname(__FILE__),"../Brand", options[:brand_name],"Configs/fastlane_config.yaml"))
    settings = OpenStruct.new(config)
    lane_settings = settings[options[:lane_name]]

    # Settings the App Identifier
    app_identifier = lane_settings["bundle_identifier"] …
Run Code Online (Sandbox Code Playgroud)

ruby xcconfig ios fastlane

5
推荐指数
2
解决办法
2118
查看次数

iOS - 如何使用 Fastlane 增加版本号?

所以我想知道如何使用Fastlane工具增加版本号或构建号,这样我就不必手动更改版本。

fastlane fastlane-deliver

5
推荐指数
1
解决办法
5732
查看次数

Fastlane Beta:Bundler :: GemNotFound:在任何来源中都找不到CFPropertyList-3.0.0

运行fastlane beta并收到此错误:

Bundler::GemNotFound: Could not find CFPropertyList-3.0.0 in any of the sources
Run Code Online (Sandbox Code Playgroud)

我尝试通过终端安装gem,将它添加到我的gemfile,更新我的fastlane版本......没有运气.有任何想法吗?

ios fastlane fastlane-gym fastlane-pilot

5
推荐指数
2
解决办法
607
查看次数