Archive failed: Fastlane with Ionic 3

I am trying to deploy my Ionic 3 app in Testflight for the first time.

But when I run my command: "sudo fastlane beta" I always have this error:

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 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 **

I really don't know what I need to do to solve this problem.

What I've done:

Firstly, I am following this to generate my certificates and my profiles
https://codesigning.guide/ I have no problem with this. I can see my profiles in my account.

So, I installed the fastlane Ionic plugin. And I edited my Fastfile as follows:

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

My application file:

app_identifier "(APP_BUNDLE)"
apple_id "(MY APPLE ID)"
team_id "(TEAM_ID)"

But when I run: sudo fastlane beta, this step fails: ionic cordova compile ios --release --device -- --packageType=app-store --developmentTeam=(TEAM_ID) --provisioningProfile=(PROFILE_GUID)

EDIT: My Ionic Info:

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

EDIT

ios: ios 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 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, :

enter image description here

+6
2
  • sudo fastlane...! fastlane beta, root - , . , bundler .
  • Archive Xcode , .
  • fastlane match, ur ( iTunesConnect...)
    • - , , / ur: fastlane action match - ,
  • fastlane beta no sudo!
+1

, release ( prod) ionic(). Xcode , match().

:

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

+1

All Articles