【发布时间】:2018-01-09 11:10:31
【问题描述】:
我第一次尝试在 Testflight 上部署我的 Ionic 3 应用程序。
但是当我运行我的命令时:“sudo fastlane beta”我总是有这个错误:
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/
我没有这个问题。我可以在我的帐户 developerper iOS 上看到我的个人资料。
所以我安装了插件 fastlane Ionic。我像这样编辑了我的 Fastfile:
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
我的应用文件:
app_identifier "(APP_BUNDLE)"
apple_id "(MY APPLE ID)"
team_id "(TEAM_ID)"
但是当我运行 : sudo fastlane beta 时,这一步失败了:
ionic cordova compile ios --release --device -- --packageType=app-store --developmentTeam=(TEAM_ID) --provisioningProfile=(PROFILE_GUID)
编辑:我的离子信息:
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: 离子科尔多瓦平台删除ios 离子cordova平台添加ios
我尝试运行 fastlane beta。我保留了我的错误,但有点不同:
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 中签入,我有这个错误:
【问题讨论】:
-
你的
ionic info输出是什么?它可以提供重要的环境信息。最好编辑您的问题以添加它。 -
看起来不错,虽然我发布了一个答案
ionic cordova compile ios您当前的设置生成的命令实际上看起来不错,release: true无论如何都是默认设置。无论如何尝试一下,让我知道它是否有效,否则我们将不得不继续寻找...... -
你之前对
ios项目做过什么奇怪的事情吗?也许用ionic cordova platform remove ios删除它,然后用ionic cordova platform add ios再次添加它,然后再次尝试运行车道。 -
嗯,我不这么认为。我只需要具备推送通知和后台模式的功能。但我也试过没有它们。我将尝试再次删除 iOS 平台。
-
你不应该正常使用 Xcode(除了你的推送和后台模式 - 但即使你可以通过 Fastlane 做到这一点)。我建议尝试使用
ionic start新创建的新“处女”应用程序,看看这是否适合您。