You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Fastlane deliver init获取iOS元数据而非macOS问题排查求助

解决Fastlane deliver拉取macOS元数据而非iOS的问题
  • 明确指定平台参数
    执行deliver init时必须添加--platform macos参数,默认情况下Fastlane会优先拉取iOS平台的内容。修改后的完整命令为:

    sudo fastlane deliver init --use_live_version true --platform macos
    
  • 修正Appfile的平台配置
    在fastlane/Appfile中添加平台指定,确保Fastlane默认指向macOS平台:

    platform :macos
    app_identifier "你的App ID"
    apple_id "你的Apple ID"
    its_team_id "你的ITS Team ID"
    team_id "你的Team ID"
    
  • 确认App Store Connect的macOS平台状态
    登录App Store Connect,检查你的应用是否已启用macOS平台,并且该平台下已经配置过元数据或截图。如果macOS平台未启用,需要先完成平台添加和基础配置。

  • 校验当前工作目录
    用pwd命令确认当前处于Flutter项目的macos子目录下,避免误加载iOS项目的Fastlane配置。

  • 清理缓存重新拉取
    删除fastlane目录下的metadata和screenshots文件夹(如果之前拉取过iOS内容),再重新执行带平台参数的deliver init命令,避免缓存干扰。

内容的提问来源于stack exchange,提问作者matteoh

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.20 13:12:34