gpt4 book ai didi

ios - Cordova faSTLane xcode 8 配置文件

转载 作者:可可西里 更新时间:2023-11-01 06:02:29 25 4
gpt4 key购买 nike

我尝试在 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 create 以在开发者成员(member)中心和 iTunes Connect 上创建您的应用。

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

从这里去哪里

  • 您可以通过在 Cordova 应用程序的根目录运行 faSTLane actions cordova 查看所有插件选项

  • Fastlane docs很高兴了解更多关于它如何让您的生活更轻松

  • 如果您对插件有任何问题或改进想法,请告知他们here

关于ios - Cordova faSTLane xcode 8 配置文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39659476/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com