簡體   English   中英

Cordova fastlane xcode 8配置配置文件

[英]Cordova fastlane xcode 8 configure profile

我嘗試通過fastlane( https://github.com/platanus/fastlane-cordova )在xcode 8上構建我的應用程序如何在cordova中指定在生成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

我有同樣的問題,所以我最終為Fastlane創建了一個Cordova插件來解決這個問題。

請參閱此博客文章或以下內容中的使用方法:

使用Cordova Fastlane插件

Cordova Fastlane插件添加到您的項目中:

fastlane add_plugin cordova

當被問到Should fastlane modify the Gemfile at path 'Gemfile' for you? (y/n) 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 deployfastlane android deploy即可部署到商店!

從這往哪兒走

  • 您可以通過在Cordova應用程序的根目錄下運行fastlane actions cordova來查看所有插件選項

  • Fastlane文檔非常適合了解它如何緩解您的生活

  • 如果您對插件有任何改進或想法,請在此處告知

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM