fastlane

How do I screenshot tests in React Native?

£可爱£侵袭症+ 提交于 2019-12-22 10:10:06
问题 I would like to test my React Native application using screenshots. The UIAutomation javascript file will be executed by fastlane and should deliver me all subviews I need. This part works fine. My main problem is that I don't understand how I may have an element clicked. Every example I found was plain objective-c and used standard elements for navigation like a tab bar. My application has a Burger Icon, which has a click event on the TouchableHighlight which opens a menu. I am searching for

How to override values inside fastlane's appfile using .env files

一笑奈何 提交于 2019-12-21 01:19:09
问题 We have the need to override values in fastlane's appfile in certain situations, e.g. to use a different apple account for publication of the app, but there is no documented official way. 回答1: The easiest way to do that is using environment variables: Use an Appfile like this: apple_id ENV["APPLE_ID"] || "default@company.com" app_identifier ENV["APP_IDENTIFIER"] || "com.company.default" When you now call fastlane without environment variables: fastlane beta it will use the default values

Fastlane “nokogiri requires Ruby version >= 2.3.0.” Error

試著忘記壹切 提交于 2019-12-12 18:13:32
问题 I finished this tutorial on medium in order to integrate my Xcode project with sonarQube to have some metrics. Setup SonarQube - Swift. I was able to make it through the last step that is: running "fastlane metrics" on the terminal while being in the root of the project directory. But i get this error on step "slather" nokogiri requires Ruby version >= 2.3.0., fastlane finished with errors: I have also found that someone had a similar question here, but no answers: Similar Question If i run:

input file XXXX must be a fat file when the -remove option is specified

馋奶兔 提交于 2019-12-12 05:24:22
问题 I am trying to publish our app to testflight/appstore by fastlane and i get these two errors: fatal error: lipo: input file (==FILEPATH==/CommonCrypto.framework/CommonCrypto) must be a fat file when the -remove option is specified fatal error: lipo: can't open input file: ==FILEPATH==/Frameworks/CommonCrypto.framework/CommonCrypto (No such file or directory) Before i got these errors i got lot of "Unsupported Architectures" errors. ERROR ITMS-90087: "Unsupported Architectures. The executable

How to specify git repository branch name in fastlane continuous integration

一曲冷凌霜 提交于 2019-12-12 03:57:05
问题 I am going to use fastlane for continuous integration for our iOS project (Xcode). We want to build the app from different branches of our git remote repository. How can I specify the branch name for build the app? 回答1: This depends on your CI system, as you usually don't want to switch branches yourselves after the CI system checked out the source code. 来源: https://stackoverflow.com/questions/42954776/how-to-specify-git-repository-branch-name-in-fastlane-continuous-integration

Auto build, deployment to hockey with Fastlane

断了今生、忘了曾经 提交于 2019-12-12 02:51:40
问题 I am studying about automatic build and deployment. I found out fastlane and trying to use for deployment to hockey. https://github.com/fastlane/examples/blob/master/Artsy/eidolon/Fastfile https://github.com/fastlane/examples/blob/master/Wikipedia/Fastfile But, I am not familiar with script. If I have 2 configuration 1) Debug 2) Release 2 scheme 1) Touch - Development 2) Touch - Production 2 hockey key 52da9f2b3da50cf8b6d4aac15f06ae9b ZXz1tdfaDLfb4hY8SagCfX4RJNMhJVsxET95sHf9 How shall I

Fastlane tests ended with success but failed finally

≡放荡痞女 提交于 2019-12-11 18:32:30
问题 Why it doesnt finish lane properly? console output with --verbose option: /Library/Ruby/Gems/2.3.0/gems/fastlane-2.104.0/fastlane_core/lib/fastlane_core/ui/interface.rb:172:in `test_failure!': [!] Test execution failed. Exit status: 1 (FastlaneCore::Interface::FastlaneTestFailure) from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.104.0/fastlane_core/lib/fastlane_core/ui/ui.rb:17:in `method_missing' from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.104.0/scan/lib/scan/runner.rb:87:in `handle_results'

How to force CI to use the latest pods after project was moved to Xcode 10 and latest wift 4.2?

孤街醉人 提交于 2019-12-11 17:06:49
问题 The question is because we see an error after moving project to the latest Xcode 10 and Swift 4.2: My fastfile looks like: before_all do xcversion(version: "10.0") end lane :test do scan(scheme: SCHEME_NAME, code_coverage: true, output_directory: OUTPUT_PATH + 'tests') xcov( scheme: SCHEME_NAME, workspace: WORKSPACE_FILE_PATH, json_report: true, markdown_report: true, output_directory: OUTPUT_PATH + "coverage", skip_slack: true, only_project_targets: true ) end and gitlab-ci.yml : stages: -

Is it possible to run Fastlane/Snapshot on device instead of Simulator?

早过忘川 提交于 2019-12-11 06:05:26
问题 Recently, I started using Fastlane's Snapshot tool. However, Snapshot seems to run only in Simulator environment and that creates a problem for me since the app I'm working on is interacting with Whatsapp and Whatsapp cannot be used on simulator. Thus, I cannot take screenshots of some of the interactive steps of my app with Snapshot. My question is: Are there any settings in Snapfile or some other ways of having Snapshot run on an actual device and not the simulators? Or there is no such

How do you export an IPA/APK when using CakeBuild and Xamarin ?

给你一囗甜甜゛ 提交于 2019-12-11 02:03:56
问题 I am trying to use CakeBuild & FastLane to automate the build process for my Xamarin Project. I have a script that is working to execute a "build" command with Cake, but it does not output a IPA/APK file. Here is my current script MSBuild("./MyDirectory/MyProject.sln", settings => settings.SetConfiguration("Release") .WithTarget("Build") .WithProperty("Platform", "iPhone") .WithProperty("BuildIpa", "true") .WithProperty("OutputPath", "bin/Release/") .WithProperty("TreatWarningsAsErrors",