我尝试在xcode 8上通过fastlane (https://github.com/platanus/fastlane-cordova)构建我的应用程序我如何在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 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
来部署到商店!
从这里到哪里
你可以通过在你的Cordova应用的根目录下运行
fastlane actions cordova
来查看所有的插件选项Fastlane文档非常适合了解它如何让您的生活更轻松
如果你对插件有任何问题或改进的想法,请在这里告诉他们