微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

使用 fastlane 动态部署到苹果商店testflight/app store

如何解决使用 fastlane 动态部署到苹果商店testflight/app store

社区您好,我在使用 fastlane 实现特定场景时遇到问题。如果有人可以,请帮助我,以下是我的要求: 我想动态创建新的 bundle ID,为其创建证书,在 xcode 中自动设置新证书和 bundle id,然后将应用程序部署到 testflight/app store。

从下面的代码中,我可以做所有事情,但问题出在 xcode 中,我必须重新选择证书,否则我会收到证书不在钥匙链中的错误。当我重新选择自动选择的证书时,错误消失了,我想要的是不选择证书来消除错误

以下是我的代码

default_platform(:ios)

平台:ios做 desc "将新的 beta 版本推送到 TestFlight" 车道 :testflightNew 做

produce(
  app_name: 'WhiteLabel3',language: 'English',app_version: '1.0',sku: 'com.xxxxxxxx'
)

# 4
cert
# 5
sigh(force: true)
produce(
  username: 'xxxx@xxxxx.com',app_identifier: 'com.xxxxxxx',app_name: 'WhiteLabel3',sku: 'com.xxxxxxxx',)
disable_automatic_code_signing
update_app_identifier(
  xcodeproj: "whitelabel.xcodeproj",plist_path: "/Users/tusharaswal/Desktop/Projects/whitelabel/ios/whitelabel/Info.plist",# Path to info plist file,relative to xcodeproj
  app_identifier: "com.xxxxxxxx" # The App Identifier
)

update_project_provisioning(
  xcodeproj: "whitelabel.xcodeproj",profile: "/Users/tusharaswal/Desktop/Projects/whitelabel/ios/xxxxxxxxx",# optional if you use sigh
  build_configuration: "Release",code_signing_identity: "iPhone distribution"
)
update_project_team(
  path: "whitelabel.xcodeproj",teamid: "XXXXXXXXX"
)
gym(scheme: "Release")
pilot

结束 结束

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。