Tag: fastlane

如何从命令行构build和部署反应原生应用程序?

我想自动化我的React-Native应用程序的构build+部署,例如提交一个TestFlight构build。 在提交应用程序之前,我通常会执行以下操作: 我运行react-native bundle 我将构buildconfiguration切换到架构中的Release 我注释掉了与AppDelegate.m中的jsCodeLocation相关的代码 是否可以从terminal写一个单一的命令来完成这些步骤,以便我可以使用自动化工具(例如fastlane来部署它? 到目前为止,我只需要自动化第二步和第三步。 要改变jsCodeLocation我可以添加一个条件,例如 #if "<build configuration is release>" jsCodeLocation = [NSURL URLWithString:@"http://localhost:8081/index.ios.bundle"]; #else jsCodeLocation = [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"]; #end 但我不知道如何达到构buildconfiguration设置。

通过CircleCI fastlane部署进行内部testing的iTunes Connect上不可用

我目前正尝试通过CircleCI使用Fastlane来设置React-Native应用程序的iOS部署,并且我遇到了一个问题,即在我的fastlane脚本中pilot ,我将该版本上传到iTunes Connect,但构build消失被用于TestFlight内部testing仪。 如果我在本地存档并上传到iTunes Connect,它将可用于testing。 我的Fastfile ,使用版本2.51.0 platform :ios do lane :deploy_staging do match( type: "adhoc", force: true ) increment_build_number( xcodeproj: './ios/MyApp.xcodeproj' ) gym( export_method: "ad-hoc", scheme: "MyApp Staging", project: "./ios/MyApp.xcodeproj" ) pilot( skip_submission: false, distribute_external: false, ) clean_build_artifacts git_add( path: '.' ) git_commit( path: '.', message: "Deployed new staging version #{lane_context[SharedValues::BUILD_NUMBER]} [skip ci]", ) […]