首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >档案失败:带Ionic 3的Fastlane

档案失败:带Ionic 3的Fastlane
EN

Stack Overflow用户
提问于 2018-01-09 11:10:31
回答 2查看 676关注 0票数 7

我第一次尝试在测试飞行上部署我的Ionic 3应用程序。

但是当我运行命令:“”时,我总是有这样的错误:

代码语言:javascript
复制
Check dependencies

Code Signing Error: No profile for team '(TEAM_ID)' matching 'match AppStore (APP_BUNDLE)' found:  Xcode couldn't find any provisioning profiles matching '(TEAM_ID)/match AppStore (APP_BUNDLE)'. Install the profile (by dragging and dropping it onto Xcode's dock item) or select a different one in the General tab of the target editor.
Code Signing Error: Code signing is required for product type 'Application' in SDK 'iOS 11.1'

** ARCHIVE FAILED **

我真的不知道该怎么解决这个问题。

我所做的:

首先,我遵循这个来生成我的证书和我的个人资料。

https://codesigning.guide/,我对此没有问题。我可以在我的帐户开发程序iOS上看到我的简介。

所以我安装了插件fastlane。我编辑了我的快速文件如下:

代码语言:javascript
复制
fastlane_version "2.68.0"
generated_fastfile_id "(FAST LANE ID)"

default_platform :ios

desc "Submit a new Beta Build to Apple TestFlight"
desc "This will also make sure the profile is up to date"
lane :beta do
  match(type: "appstore")
  ionic(platform: 'ios')
  pilot(ipa: ENV['CORDOVA_IOS_RELEASE_BUILD_PATH'])
end

我的应用档案:

代码语言:javascript
复制
app_identifier "(APP_BUNDLE)"
apple_id "(MY APPLE ID)"
team_id "(TEAM_ID)"

但是当我运行: sudo时,这个步骤失败了:ionic cordova compile ios --release --device -- --packageType=app-store --developmentTeam=(TEAM_ID) --provisioningProfile=(PROFILE_GUID)

编辑:我的Ionic信息:

代码语言:javascript
复制
cli packages: (/Users/ox/Documents/Mobile/ox/node_modules)

    @ionic/cli-utils  : 1.19.0
    ionic (Ionic CLI) : 3.19.0

global packages:

    cordova (Cordova CLI) : 7.1.0 

local packages:

    @ionic/app-scripts : 2.1.0
    Cordova Platforms  : ios 4.5.4
    Ionic Framework    : ionic-angular 3.9.2

System:

    ios-deploy : 1.9.2 
    ios-sim    : 5.1.0 
    Node       : v6.11.3
    npm        : 5.6.0 
    OS         : macOS Sierra
    Xcode      : Xcode 9.1 Build version 9B55 

Environment Variables:

    ANDROID_HOME : not set

Misc:

    backend : pro

编辑

我删除并再次添加我的平台ios :离子cordova平台删除ios离子cordova平台添加ios

我试着运行fastlane。我保持我的错误,但有点不同:

代码语言:javascript
复制
Code Signing Error: No profile for team '(TEAM_ID)' matching '(PROFILE_UUID)' found:  Xcode couldn't find any provisioning profiles matching '(TEAM_ID)/(PROFILE_UUID)'. Install the profile (by dragging and dropping it onto Xcode's dock item) or select a different one in the General tab of the target editor.
    Code Signing Error: Code signing is required for product type 'Application' in SDK 'iOS 11.1'

我签入了xcode,并出现了以下错误:

EN

回答 2

Stack Overflow用户

回答已采纳

发布于 2018-01-24 14:24:22

  1. 你不应该做sudo fastlane...!如果需要根用户,请尝试使用fastlane beta --可能您必须重新安装这些工具。此外,推荐的方法是使用bundler管理您的ruby依赖项。
  2. 尝试在Xcode中执行Archive命令,并确保您能够手动构建和签名项目
  3. 运行fastlane match命令以获取您的配置文件(可能会要求您登录到iTunesConnect.)
    • 如果匹配失败--请使用参数指定您的团队/应用程序:fastlane action match -此命令将显示您所拥有的选项

  1. 试试fastlane beta不要苏多!
票数 2
EN

Stack Overflow用户

发布于 2018-01-09 11:23:07

如果您想要为应用程序商店构建,您还必须使用release (以及最优的prod)构建ionic()。否则,Xcode项目是以错误的方式为您通过match()设置的证书设置的。

这应该适用于你:

代码语言:javascript
复制
lane :beta do
  match(type: "appstore")
  ionic(
    platform: 'ios',
    prod: true,
    release: true
  )
  pilot(ipa: ENV['CORDOVA_IOS_RELEASE_BUILD_PATH'])
end

还请参见https://ionic.zone/fastlane/build-your-project-with-ionic-plugin#ios-release-build

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/48166895

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档