Configure Cordova fastlane xcode 8 profile

I am trying to create an application through fastlane ( https://github.com/platanus/fastlane-cordova ) on xcode 8 How can I specify in the cord to select the "correct" training profiles when generating xcode.proj?

=== BUILD TARGET app OF PROJECT app WITH CONFIGURATION Release ===
[ios] 
[ios] Check dependencies
[ios] Signing for "Eule" requires a development team. Select a development team in the project editor.
[ios] Code signing is required for product type 'Application' in SDK 'iOS 10.0'
[ios] 
[ios] ** BUILD FAILED **
[ios] 
[ios] 
[ios] The following build commands failed:
[ios]   Check dependencies
[ios] (1 failure)
[ios] Error: Error code 65 for command
+4
source share
1 answer

I had the same problem, so I decided to create a Cordova plugin for Fastlane to solve this problem.

See how to use it in this blog post or below:

Use the Cordova Fastlane plugin

Cordova Fastlane Plugin :

fastlane add_plugin cordova

Should fastlane modify the Gemfile at path 'Gemfile' for you? (y/n), y.

Fastlane, :

platform :ios do
  desc "Deploy ios app on the appstore"

  lane :create do
    produce(app_name: "myapp")
  end

  lane :deploy do
    match(
      type: "appstore",
      git_url: "https://bitbucket.org/Almouro/certificates" # REPLACE WITH YOUR PRIVATE REPO FOR MATCH
    )
    cordova(platform: 'ios') # Using the Cordova Fastlane Plugin
    appstore(ipa: ENV['CORDOVA_IOS_RELEASE_BUILD_PATH'])
  end
end

platform :android do
  desc "Deploy android app on play store"

  lane :deploy do
    cordova(
      platform: 'android',
      keystore_path: './prod.keystore', # REPLACE THESE LINES WITH YOUR KEYSTORE INFORMATION
      keystore_alias: 'prod',
      keystore_password: 'password'
    ) # Cordova Fastlane Plugin
    supply(apk: ENV['CORDOVA_ANDROID_RELEASE_BUILD_PATH'])
  end
end

Appfile,

app_identifier "com.awesome.app"
apple_id "apple@id.com"
team_id "28323HT"

!

iOS fastlane ios create , iTunes Connect.

fastlane ios deploy fastlane android deploy !

+1

Source: https://habr.com/ru/post/1655609/


All Articles