标签: fastlane

Fastlane android 构建:index.android.bundle 丢失

我正在为我们的 React Native 应用程序构建一个应用程序包(.aab)。

当我通过Android Studio构建时,应用程序会构建并部署到 Play 商店。我下载并运行 - 一切正常。

当我通过FastLane构建时,应用程序会构建并部署到 Play 商店。我下载并运行,出现以下错误

E AndroidRuntime: java.lang.RuntimeException: Unable to load script. Make sure you're either running a Metro server (run 'react-native start') or that your bundle 'index.android.bundle' is packaged correctly for release.
E AndroidRuntime:   at com.facebook.react.bridge.CatalystInstanceImpl.jniLoadScriptFromAssets(Native Method)
E AndroidRuntime:   at com.facebook.react.bridge.CatalystInstanceImpl.loadScriptFromAssets(CatalystInstanceImpl.java:2)
E AndroidRuntime:   at com.facebook.react.bridge.JSBundleLoader$1.loadScript(JSBundleLoader.java:1)
E AndroidRuntime:   at com.facebook.react.bridge.CatalystInstanceImpl.runJSBundle(CatalystInstanceImpl.java:3)
W ActivityTaskManager:   Force finishing activity com.friday.pax.dev/com.friday.pax.MainActivity
Run Code Online (Sandbox Code Playgroud)
RN: 0.63.4
Gradle: 4.1.1
Run Code Online (Sandbox Code Playgroud)

快速通道日志:

https://gist.githubusercontent.com/HardlyMirage/4426e411b6ec1e8abac5e7a620d979ae/raw/37daead0b55ee77b7ef7d6ddd8631d311dbc80aa/txt

index.android.bundle似乎已正确生成。 …

android gradle react-native fastlane

9
推荐指数
1
解决办法
1400
查看次数

离子 + 快车道 | Android“错误:包 android.support.v4.content 不存在”

我正在处理一个Ionic项目,但在构建 Android 时遇到了问题。我继承了这个项目,所以这就是为什么我不是 100% 熟悉Fastlane以及它如何构建 java 文件。此外,我使用 WSL2 并使用 sdkmanager 和以下已安装的软件包:

Installed packages:=====================] 100% Fetch remote repository...
Path                 | Version | Description                    | Location
-------              | ------- | -------                        | -------
build-tools;29.0.2   | 29.0.2  | Android SDK Build-Tools 29.0.2 | build-tools/29.0.2
emulator             | 30.8.4  | Android Emulator               | emulator
patcher;v4           | 1       | SDK Patch Applier v4           | patcher/v4
platform-tools       | 31.0.3  | Android SDK Platform-Tools     | platform-tools
platforms;android-29 | 5       | Android SDK Platform 29 …
Run Code Online (Sandbox Code Playgroud)

android cordova ionic-framework fastlane

9
推荐指数
1
解决办法
1万
查看次数

通过 Fastlane 分发 Firebase 应用程序“服务器响应状态 404”

我正在尝试通过 fastlane 使用 firebase 应用程序分发来分发应用程序。\n当我运行 firebase_app_distribution 时,它似乎成功登录到 Google,但最终以某种方式返回 404。

\n

我使用 GOOGLE_APPLICATION_CREDENTIALS 登录 Google

\n

这是我的日志。

\n
[12:19:16]: Authenticating with GOOGLE_APPLICATION_CREDENTIALS environment variable:'<path here>'\n[12:19:16]:  Authenticated successfully.\n[12:19:16]: \xe2\x8c\x9b Uploading the IPA.\n+------------------+---------------------+\n|              Lane Context              |\n+------------------+---------------------+\n| DEFAULT_PLATFORM | ios                 |\n| PLATFORM_NAME    | ios                 |\n| LANE_NAME        | ios distribute_beta |\n+------------------+---------------------+\n[12:19:18]: the server responded with status 404\n
Run Code Online (Sandbox Code Playgroud)\n

我究竟做错了什么?

\n

ios firebase fastlane firebase-app-distribution

9
推荐指数
1
解决办法
2657
查看次数

适用于Android的Fastlane /发布自动化

对于Android发布自动化,有没有人知道像fastlane这样的工具/项目?上传到Playstore ......我知道在fastlane中有一些Android部分的任务,但还没有读完.Fastlane Android问题

我希望你的家伙可以帮助我:)

android google-play fastlane

8
推荐指数
1
解决办法
7224
查看次数

Github action macos 钥匙串访问

我正在尝试将我们的 iOS CI 转移到 github 操作,但我遇到了一些构建问题。使用 match 时似乎会出现这些问题(fastlane 在健身房运行时挂起)。

这是让我认为它与钥匙串相关的日志

WARN [2019-09-26 13:46:14.52]: Could not configure imported keychain item (certificate) to prevent UI permission popup when code signing
Check if you supplied the correct `keychain_password` for keychain: `/Users/runner/Library/Keychains/login.keychain-db`
security: SecKeychainItemSetAccessWithPassword: The user name or passphrase you entered is not correct.
Run Code Online (Sandbox Code Playgroud)

文档说 sudo 是无密码的,所以我认为钥匙串也是如此。我似乎错了,但我在文档中找不到任何内容。任何帮助将不胜感激。

编辑

Lyndsey Ferguson 在下面的评论主要是解决方案。他们是使用 create_keychain 然后匹配的方法我能够只指定钥匙串和它的密码所以我能够避免 import_certificate

编辑 2

这是我在 fastlane 中所做的事情来解决这个问题

create_keychain(
        name: "actiontest_keychain",
        password: "meow",
        default_keychain: true,
        unlock: true,
        timeout: 3600,
        lock_when_sleeps: false
    )

    match( …
Run Code Online (Sandbox Code Playgroud)

continuous-integration ios fastlane github-actions

8
推荐指数
3
解决办法
4374
查看次数

如何修复 fastlane-plugin-firebase_app_distribution 未定义

我正在尝试在本地系统上为 firebase 应用程序分发设置 CI-CD。

fastlane-plugin-firebase_app_distribution 找不到插件。

Error loading plugin 'fastlane-plugin-firebase_app_distribution': cannot load such file -- fastlane/plugin/firebase_app_distribution
+-------------------------------------------+-----------+------------------+
|                               Used plugins                               |
+-------------------------------------------+-----------+------------------+
| Plugin                                    | Version   | Action           |
+-------------------------------------------+-----------+------------------+
| fastlane-plugin-firebase_app_distribution | undefined | No actions found |
+-------------------------------------------+-----------+------------------+
Run Code Online (Sandbox Code Playgroud)

我该怎么办?

ios firebase fastlane firebase-cli

8
推荐指数
3
解决办法
4326
查看次数

Fastlane &amp; Flutter - Google Api 错误:无效请求 - 未配置访问。谷歌播放

运行此命令后使用 Fastlane 和 Flutter 时导致此错误的原因:

bundle exec fastlane beta

Google Api 错误:请求无效 - 未配置访问权限。Google Play Developer API 之前未在项目中使用或已禁用。通过访问https://console.developers.google.com/apis/api/androidpublisher.googleapis.com/overview?project=xxxx启用它, 然后重试。如果您最近启用了此 API,请等待几分钟,让操作传播到我们的系统并重试。

当服务帐户启用并使用发布管理器链接到 Play 商店帐户时,我在 github 上阅读了不同的对话,但我无法得到明确的答案,自从我上传了一个后,我尝试增加我的 APK 的版本,但没有运气。

这是我的代码Fastfile

update_fastlane

default_platform(:android)

platform :android do
  desc "Runs all the tests"
  lane :test do
    gradle(task: "test")
  end

  desc "Deploy an beta new version to the Google Play"
  lane :beta do
       gradle(
           task: 'assemble',
           build_type: 'Release'
         )
     upload_to_play_store(track: 'beta',
     version_code: 5,
     aab: '../build/app/outputs/bundle/release/app-release.aab',
     )
   end
end
Run Code Online (Sandbox Code Playgroud)

然后它也在某处说:

[11:16:18]: Couldn't find …
Run Code Online (Sandbox Code Playgroud)

android fastlane flutter

8
推荐指数
1
解决办法
1447
查看次数

Flutter fastlane ios 如何通过--dart-define

我找不到答案。我的应用程序需要定义参数--dart-define=ENVIRONMENT="$APP_ENV"

构建Android没有问题,但是如何在fastlane中构建ad-hoc时通过这些?我准备了运行的构建脚本:

flutter pub get
flutter build ios --config-only \ 
    --flavor prod \ 
    --dart-define=ENVIRONMENT="$APP_ENV"

cd ios
bundle exec fastlane build_app_prod_ad_hoc
Run Code Online (Sandbox Code Playgroud)

我的 fastlane 车道是:

  lane :build_app_prod_ad_hoc do
    cocoapods
    gym(
      configuration: "AdHoc-prod",
      export_method: "ad-hoc",
      scheme: "prod",
      export_options: {
        provisioningProfiles: {
           ...
        },
      },
    )
  end
Run Code Online (Sandbox Code Playgroud)

但是我可以看到我的结果没有正确设置环境。有任何想法吗?

ios fastlane flutter

8
推荐指数
1
解决办法
722
查看次数

Circleci - 总是收到“没有找到本地代码签名身份”。

我正在尝试设置 CI 管道来构建 iOS 应用程序;具体来说,我的目标除了构建应用程序之外,还设置自动签名并最终将其推送到 Testflight。当我尝试运行 fastlane 命令在本地构建应用程序时,它按预期工作,但是,每次我尝试使用 fastlane 在 Circleci 上构建它时,我总是收到“没有找到本地代码签名身份”错误,然后是证书和配置配置文件是从存储库安装的,但最终我的构建失败并出现错误:“错误:没有使用 Xcode 注册的帐户。将您的开发人员帐户添加到 Xcode...”。

\n

我不确定这到底是什么问题,我已经fastfile多次更改以包含或排除我在调试时发现的各种选项,但我仍然遇到相同的错误。

\n

以下是管道在 Circleci 上的外观:

\n
/Users/distiller/project/********\n[\xe2\xa0\x8b]  [\xe2\xa0\x99]  [\xe2\xa0\xb9]  [\xe2\xa0\xb8]  [\xe2\xa0\xbc]  [\xe2\xa0\xb4]  [\xe2\xa0\xa6]  [\xe2\xa0\xa7]  [\xe2\xa0\x87]  [\xe2\xa0\x8f]  [\xe2\xa0\x8b]  [\xe2\xa0\x99]  [\xe2\xa0\xb9]  [\xe2\xa0\xb8]  [\xe2\xa0\xbc]  [\xe2\xa0\xb4]  [\xe2\xa0\xa6]  [\xe2\xa0\xa7]  [\xe2\xa0\x87]  [\xe2\x9c\x94]  \n[09:00:06]: Sending anonymous analytics information\n[09:00:06]: Learn more at https://docs.fastlane.tools/#metrics\n[09:00:06]: No personal or sensitive data is sent.\n[09:00:06]: You can disable this by adding `opt_out_usage` at the top of your Fastfile\ntput: No value for $TERM and no -T …
Run Code Online (Sandbox Code Playgroud)

ios circleci fastlane

8
推荐指数
0
解决办法
1947
查看次数

Fastlane 交付失败并删除屏幕截图

我正在设置 fastlane Deliver,但不明白为什么它总是无法上传屏幕截图。嗯,当它尝试删除现有的时似乎失败了?如果可能的话,我想强制上传新的。

Fwiw,如果我注释掉屏幕截图通道,应用程序本身上传得很好。

诚实地说,任何帮助都会受到赞赏。网上关于这个问题的资料不多。

输出:

[13:08:34]: Making sure the latest version on App Store Connect matches '2.1.0'...
[13:08:34]: '2.1.0' is the latest version on App Store Connect
[13:08:34]: Detected languages: ["en-US", "default"]
[13:08:38]: Will begin uploading metadata for '2.1.0' on App Store Connect
[13:08:38]: Release type will not be set because neither `automatic_release` nor `auto_release_date` were provided. Please explicitly set one of these options if you need a release type set
[13:08:38]: Uploading metadata to App Store Connect for …
Run Code Online (Sandbox Code Playgroud)

ios fastlane fastlane-deliver

8
推荐指数
0
解决办法
633
查看次数