fastlane

Fastlane Appfile in GIT? How to retrieve current apple_id?

情到浓时终转凉″ 提交于 2019-12-10 17:52:14
问题 I setup Fastlane for the build automation for my XCode project. At least the Fastfile (containing the build options) should be in GIT, but I would also be happy to have the Appfile (Team Identifiers) also in GIT. The main issue: The Appfile should contain the apple id of me. Sample: apple_id "myid@gmail.com" # Your Apple email address # Default team ID team_id "AUE7D4LRRX" for_platform :ios do for_lane :production do team_id '-' #reset team id end end Is it somehow possible to dynamically

How do I screenshot tests in React Native?

落花浮王杯 提交于 2019-12-10 15:39:28
问题 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

Build issue using fastlane failed on Jenkins

爱⌒轻易说出口 提交于 2019-12-08 11:46:14
问题 I am facing an issue. Build is failing while archiving it succeeded successfully. Below the Jenkins log: [33m▸[0m [39;1mProcessing[0m Info.plist [33m▸[0m [39;1mGenerating 'MyApp.app.dSYM'[0m [33m▸[0m [39;1mRunning script[0m 'Run Script' [33m▸[0m [39;1mCopying[0m /Users/sanoj/Library/Developer/Xcode/DerivedData/MyApp-ehrdzbsrtcthuraipdvlkghvcjyx/Build/Intermediates.noindex/ArchiveIntermediates/adhoc/BuildProductsPath/Release-iphoneos/pop.framework [33m▸[0m [39;1mSigning[0m /Users/sanoj/Library

自动化构建Jenkins + fastlane

末鹿安然 提交于 2019-12-06 14:59:25
参考 https://www.jianshu.com/p/70e4335b0bd6 https://debugtalk.com/post/iOS-Android-Packing-with-Jenkins/ https://reversescale.github.io/2017/06/20/AutoBuildScript/ 自动化 持续打包 持续部署,发布 卸载Jenkins:'/Library/Application Support/Jenkins/Uninstall.command' /Users/Shared/Jenkins/Home/secrets/initialAdminPassword admin 123456 https://juejin.im/post/5ad5792e6fb9a028cb2e1fe6 查找描述文件(安装之前)对应的uuid /usr/bin/security cms -D -i 文件路径 https://blog.csdn.net/potato512/article/details/78291089 https://www.jianshu.com/p/0cca1befa847 参考链接 http://douxinchun.github.io/blog/20180516/xcodebuild-shi-yong-zhu-yi-shi-xiang.html

How do I screenshot tests in React Native?

喜夏-厌秋 提交于 2019-12-06 04:49:39
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 a possibility to reference a single TouchableHighlight element in order to interact with it. Bonus

Where is the screenshot file from Xcode UI Test?

旧巷老猫 提交于 2019-12-05 14:35:20
问题 I'm interested how to find the location of a screenshot which is created during UI Tests of my app. I would like to understand how Fastlane Snapshot grabs this screenshot. After couple of hours of research I can't find location of those screenshots. 回答1: Screenshots are stored inside your Derived Data folder. You can find this by going to Xcode, Window > Projects and click the little arrow next to your derived data path for the project. From your project derived data folder (should be the

How to build and deploy a react-native app from command line?

旧街凉风 提交于 2019-12-03 17:44:17
问题 I'd like to automate the build + deploy of my React-Native app, for example to submit a TestFlight build. Before submitting the app, I usually do the following: I run react-native bundle I switch the build configuration to Release in the schema I comment out the code relative to jsCodeLocation in AppDelegate.m Is it possible to write a single command from the Terminal for doing those steps, so that I can then deploy it with an automatization tool, e.g. with fastlane ? So far, I'd just need to

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

删除回忆录丶 提交于 2019-12-03 07:34:33
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. 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 provided ( default@company.com ) to set a different value you can use APP_IDENTIFIER="com.custom.app" fastlane

GitLab CI with Docker, Fastlane and Cocoapods not working

こ雲淡風輕ζ 提交于 2019-12-02 22:47:17
问题 Desperate help needed: Already asked for the case with gitlab-runner register as "shell", I try to ask a very similar question here with gitlab-runner register as "docker". Since 3 days I try to get Gitlab CI running (using docker, fastlane - all for an iOS-app having Cocoapods dependencies). Here is the error message that the GitLab CI spits out: I did the following steps: install fastlane (link to fastlane page) create a GitLab project and upload your project repository (link to GitLab)

GitLab CI with Fastlane and Cocoapods not working

感情迁移 提交于 2019-12-02 21:47:52
问题 I can't get GitLab CI to work with Fastlane and Cocoapods. Here is the error messages I get during the Gitlab-CI: [!] You cannot run CocoaPods as root. Here the screenshot of the GitLab CI Log: Here is my gitlab-runner register code that I write into a MacOS Terminal: sudo gitlab-runner register \ --non-interactive \ --url "https://gitlab.com/" \ --registration-token "ABCDEFG21sadfSAEGEAERE" \ --description "MyApp runner with shell" \ --tag-list ios \ --executor "shell" After that I type