加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

ios – Cordova fastlane xcode 8配置文件

发布时间:2020-12-14 17:25:15 所属栏目:百科 来源:网络整理
导读:我尝试在 xcode 8上通过fastlane( https://github.com/platanus/fastlane-cordova)构建我的应用程序 如何在执行xcode.proj时在cordova中指定选择“正确”的配置文件? === BUILD TARGET app OF PROJECT app WITH CONFIGURATION Release ===[ios] [ios] Check
我尝试在 xcode 8上通过fastlane( https://github.com/platanus/fastlane-cordova)构建我的应用程序
如何在执行xcode.proj时在cordova中指定选择“正确”的配置文件?

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

解决方法

我有同样的问题,所以我最终创建了一个 Cordova plugin for Fastlane来解决这个问题.

了解如何在this blog post或以下使用它:

使用Cordova Fastlane插件

将Cordova Fastlane Plugin添加到您的项目:

fastlane add_plugin cordova

当被问到应该fastlane修改路径’Gemfile’的Gemfile吗? (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创建一次以在开发者成员中心和iTunes Connect上创建您的应用程序.

现在,您只需运行fastlane ios deploy和fastlane android deploy即可部署到商店!

从这往哪儿走

>您可以通过在Cordova应用程序的根目录下运行fastlane actions cordova来查看所有插件选项
> Fastlane docs非常适合了解它如何减轻您的生活
>如果您对插件有任何改进或想法,请让他们知道here

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读