fastlane - 找不到通道“ios 调试”。可用通道:ios beta
问题描述
当我在 Fastfile 中添加这样的新快车道时:
default_platform(:ios)
platform :ios do
desc "Push a new beta build to pgy"
before_all do
ENV["CACHE_GIT_URL"] = ENV["GIT_URL"]
end
lane :debug do
xcode_select "/Applications/Xcode.app"
match(
type: "adhoc"
)
build_app(
workspace: "Runner.xcworkspace",
scheme: "Runner",
export_method: "ad-hoc",
skip_archive: true
)
pgyer(
api_key: ENV['PGY_API_KEY'],
user_key: ENV['PGY_USER_KEY']
)
end
lane :beta do
xcode_select "/Applications/Xcode_12.4.app"
if is_ci
create_keychain(
name: ENV['MATCH_KEYCHAIN_NAME'],
password: ENV["MATCH_KEYCHAIN_PASSWORD"],
default_keychain: true,
unlock: true,
timeout: 3600,
lock_when_sleeps: false
)
end
match(
app_identifier: ENV["APP_IDENTIFIER"],
git_url: ENV["GIT_URL"],
type: "adhoc",
readonly: is_ci,
keychain_name: ENV['MATCH_KEYCHAIN_NAME'],
keychain_password: ENV["MATCH_KEYCHAIN_PASSWORD"]
)
build_app(
workspace: "Runner.xcworkspace",
scheme: "Runner",
export_method: "ad-hoc",
skip_archive: true
)
pgyer(
api_key: ENV['PGY_API_KEY'],
user_key: ENV['PGY_USER_KEY']
)
end
end
我添加了一个名为 的新通道debug
,但是当我运行命令时:
bundle exec fastlane debug
显示错误:
$ bundle exec fastlane debug ‹ruby-2.7.2›
[✔]
+-----------------------+---------+--------+
| Used plugins |
+-----------------------+---------+--------+
| Plugin | Version | Action |
+-----------------------+---------+--------+
| fastlane-plugin-pgyer | 0.2.2 | pgyer |
+-----------------------+---------+--------+
[16:51:14]: ------------------------------
[16:51:14]: --- Step: default_platform ---
[16:51:14]: ------------------------------
+------------------+-----+
| Lane Context |
+------------------+-----+
| DEFAULT_PLATFORM | ios |
+------------------+-----+
[16:51:14]: Could not find lane 'ios debug'. Available lanes: ios beta
+------+------------------+-------------+
| fastlane summary |
+------+------------------+-------------+
| Step | Action | Time (in s) |
+------+------------------+-------------+
| 1 | default_platform | 0 |
+------+------------------+-------------+
[16:51:14]: fastlane finished with errors
[!] Could not find lane 'ios debug'. Available lanes: ios beta
我应该怎么做才能解决它?
解决方案
推荐阅读
- c++ - 有什么方法可以让一个类的 typedef 成为朋友吗?
- excel - VBA - 将多个文件组合成一个工作表
- c# - Web 服务授权标头在服务中返回奇数字符
- java - 如何验证特定命名的 json 模式?
- android - Crashlytics 在上传 deobs 文件时遇到问题
- python - python迭代xml避免命名空间
- java - Wildfly 17 上的休眠 ogm infinispan @manytoone 双向问题
- azure-service-fabric - 如何解决“Service Fabric Partition is in error”错误?
- java - 如何为某些 XML 配置片段找到相应的注释/基于 Java 的配置对应项?
- r - R中的正则表达式:如何在目标字符串的左侧和右侧填充多个匹配的数据框