我很感兴趣如何找到在我的应用程序的UI测试期间创建的屏幕截图的位置.我想了解Fastlane Snapshot如何抓取此屏幕截图.经过几个小时的研究,我无法找到这些截图的位置.
我需要使用fastlane .app文件(或.ipa文件,如果它适用)创建,我可以下一步拖放到另一台计算机上的模拟器.我尝试用健身房或xcodebuild参数做,但我不知道该怎么做.
现在我这样做:
在XCode中,我为模拟器构建应用程序
接下来我在DerivedData中搜索app文件(〜/ Library/Developer/XCode/DerivedData/Build/Products/Debug-iphonesimulator /)
我把这个文件复制到其他地方
但我需要用fastlane来做.
我试图在Jenkins上运行fastlane扫描,测试执行良好,通过,但在最后一部分它似乎失败,因为它无法访问或启动模拟器:
[32;1m Executed 337 tests, with 0 failures (0 unexpected) in 5.657 (5.702) seconds
[0m
2018-12-19 11:09:41.006 xcodebuild[87795:568022] [MT] IDETestOperationsObserverDebug: 34.991 elapsed -- Testing started completed.
2018-12-19 11:09:41.006 xcodebuild[87795:568022] [MT] IDETestOperationsObserverDebug: 0.000 sec, +0.000 sec -- start
2018-12-19 11:09:41.007 xcodebuild[87795:568022] [MT] IDETestOperationsObserverDebug: 34.991 sec, +34.991 sec -- end
2018-12-19 11:09:41.007 xcodebuild[87795:568022] Error Domain=IDETestOperationsObserverErrorDomain Code=6 "Early unexpected exit, operation never finished bootstrapping - no restart will be attempted" UserInfo={NSLocalizedDescription=Early unexpected exit, operation never finished bootstrapping - no restart will be attempted, …Run Code Online (Sandbox Code Playgroud) 基于这个答案/sf/answers/1953561361/我有一个跟进问题:什么使应用程序与产品口味不同?我试图将其与我的XCode设置进行比较,如下所示:
我对android设置的想法:
buildTypes:debug_test debug_production //不需要企业应用程序,因为任何设备版本都可能出现未签名的应用程序
口味:myApp
感谢您的支持!
continuous-integration android android-gradle-plugin fastlane
我正在做的是尝试让 bitbucket pipline 做我的 iOS CD,我包含了 docker fastlanetools/fastlane 镜像,在我拉取和运行 docker 镜像的步骤中一切正常,我能够通过调用 fastlane beta 来让 fastlane 命令工作在步骤中。
发生的事情是 fastlane 退出时出现错误 Apple Generic versioning is not enabled in this project。
我按照苹果文档从这里从 xCode 启用它 我将项目中的所有目标更改为使用 App Generic 但仍然无法正常工作
我正在努力通过 Fastlane 将 dSYM 文件上传到 Firebase。我有一条如下所示的车道:
desc "Fetch and upload dSYM files to Firebase Crashlytics"
lane :refresh_dsyms_firebase do |options|
download_dsyms(version: options[:version])
upload_symbols_to_crashlytics(gsp_path: "./App/GoogleService-Info.plist")
clean_build_artifacts
end
Run Code Online (Sandbox Code Playgroud)
我确认这是plist文件的正确路径,但是当我首先尝试运行车道时,我看到以下内容:
[17:22:47]: invalid byte sequence in UTF-8
[17:22:47]: invalid byte sequence in UTF-8
[17:22:47]: invalid byte sequence in UTF-8
Run Code Online (Sandbox Code Playgroud)
然后为找到的每个 dSYM 文件找到其中一个:
[17:22:48]: Uploading '70DBE65E-227E-3754-89F2-EEFA6B8EEC2F.dSYM'...
[17:22:48]: Shell command exited with exit status instead of 0.
Run Code Online (Sandbox Code Playgroud)
我试图确定我在这个过程中缺少什么。有没有人有想法?我对 Fastlane 相当陌生,所以肯定假设我可能会遗漏一些基本的东西。(虽然,那个空的退出状态有点奇怪)。
快车道 2.107.0
编辑(2021 年 6 月 7 日:2021 年):我将我自己的答案更新为在撰写本文时对我有帮助的答案。
此页面上还有许多其他关于使用 Fastlane 的很棒的答案 - 请查看它们
与Fastlane中的increment_build_number插件关联的avgtool返回错误.
当我increment_build_number在Fastlane 跑步时,我得到了
Run Code Online (Sandbox Code Playgroud)Updating CFBundleVersion in Info.plist(s)... $(SRCROOT)/Info.plist Cannot find "$(SRCROOT)/Info.plist"
问题的原因是avgtool无法识别$(SRCROOT)
找到的解决方案之一是将Xcode设置中Info.plist的路径更新为绝对路径.
由于有许多开发人员正在处理此项目,因此使用绝对路径(对plist)更新项目设置将影响其他人构建项目.
有没有其他方法可以解决这个问题?
尝试构建通过 fastlane 匹配设置进行签名的应用程序之一时遇到此错误。
我正在尝试使用 azure 管道将 ipa 上传到 testflight。以前工作正常,但突然我收到此错误消息,
Transporter transfer failed.
2022-10-19T16:39:48.6038120Z [16:39:48]:
2022-10-19T16:39:48.6165010Z [16:39:48]: There was a general exception while executing
2022-10-19T16:39:48.6281280Z An exception has occurred: issuerId is required
2022-10-19T16:39:48.8633660Z [16:39:48]: [iTMSTransporter] at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2022-10-19T16:39:48.8634870Z
2022-10-19T16:39:48.8635950Z [16:39:48]: [iTMSTransporter] at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
2022-10-19T16:39:48.8637070Z
2022-10-19T16:39:48.8638180Z [16:39:48]: [iTMSTransporter] at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
2022-10-19T16:39:48.8638840Z
2022-10-19T16:39:48.8639930Z [16:39:48]: [iTMSTransporter] at java.base/java.lang.reflect.Method.invoke(Unknown Source)
2022-10-19T16:39:48.8640590Z
2022-10-19T16:39:48.8641980Z [16:39:48]: [iTMSTransporter] at com.apple.transporter.bootstrap.BootstrapperPhase1.bootstrap(BootstrapperPhase1.java:107)
2022-10-19T16:39:48.8642810Z
2022-10-19T16:39:48.8643770Z [16:39:48]: [iTMSTransporter] at com.apple.transporter.bootstrap.BootstrapperPhase1.bootstrap(BootstrapperPhase1.java:78)
2022-10-19T16:39:48.8644450Z
2022-10-19T16:39:48.8645760Z [16:39:48]: [iTMSTransporter] at com.apple.transporter.launcher.Launcher.launchBootstrapper(Launcher.java:37)
2022-10-19T16:39:48.8647270Z
2022-10-19T16:39:48.8647950Z [16:39:48]: [iTMSTransporter] at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) …Run Code Online (Sandbox Code Playgroud)