我开始使用screengrab来制作我应用的自动截图。我有一个关于名为“Appfile”的“配置”文件的问题。
以下是内容:
json_key_file "" # Path to the json secret file - Follow https://docs.fastlane.tools/actions/supply/#setup to get one
app_package_name 'be.example.android.app'
app_apk_path 'app/build/outputs/apk/dev/debug/APP-DEV-debug-0.9.0.apk'
tests_apk_path 'app/build/outputs/apk/androidTest/dev/debug/app-dev-debug-androidTest.apk'
locales ['en-US', 'fr-FR']
clear_previous_screenshots true
当我执行fastlane时,会显示错误,似乎fastlane无法理解Appfile。
git:(develop) ✗ fastlane screengrab
[12:02:58]: Get started using a Gemfile for fastlane https://docs.fastlane.tools/getting-started/ios/setup/#use-a-gemfile
undefined method `app_package_name' for #<CredentialsManager::AppfileConfig:0x007f81cf463220>
undefined method `app_package_name' for #<CredentialsManager::AppfileConfig:0x007f81cf42b320>
undefined method `app_package_name' for #<CredentialsManager::AppfileConfig:0x007f81cf418fe0>
[12:03:01]: To not be asked about this value, you can specify it using 'app_package_name'
[12:03:01]: The package name of the app under test (e.g. com.yourcompany.yourapp): ^Cundefined method `app_package_name' for #<CredentialsManager::AppfileConfig:0x007f81cf30ba80>
undefined method `app_package_name' for #<CredentialsManager::AppfileConfig:0x007f81cf2f9538>
有谁知道我做错了什么?非常感谢。
答案 0 :(得分:0)
没关系,配置文件现在不再称为“Appfile”,而是“Screengrabfile”...