通过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]", ) push_to_git_remote( local_branch: ENV["CIRCLE_BRANCH"], remote_branch: ENV["CIRCLE_BRANCH"] ) end end 

我的circle.yml

 machine: environment: PATH: '$PATH:$HOME/node/node-v8.1.3-darwin-x64/bin' xcode: version: 8.3.3 dependencies: cache_directories: - $HOME/node pre: - "ls \"$HOME/node/node-v8.1.3-darwin-x64\" || mkdir \"$HOME/node\"" - "ls \"$HOME/node/node-v8.1.3-darwin-x64\" || curl -L \"https://nodejs.org/dist/v8.1.3/node-v8.1.3-darwin-x64.tar.gz\" -o \"$HOME/node/node-v8.1.3-darwin-x64.tar.gz\"" - "ls \"$HOME/node/node-v8.1.3-darwin-x64\" || tar -xzf \"$HOME/node/node-v8.1.3-darwin-x64.tar.gz\" -C \"$HOME/node/\"" - "rm -f \"$HOME/node/node-v8.1.3-darwin-x64.tar.gz\"" override: - npm install -g react-native-cli - npm install test: override: - npm test post: - mkdir -p $CIRCLE_TEST_REPORTS/junit/ - find . -type f -regex ".*/test_out/.*xml" -exec cp {} $CIRCLE_TEST_REPORTS/junit/ \; deployment: pre: - gem install fastlane staging: branch: staging commands: - npm run build:ios - fastlane deploy_staging 

CircleCItesting的输出

CircleCI结果

在iTunes Connect上构build完成的处理

iTunes Connect

在TestFlight选项卡上构build不可用(不可见)

TestFlight

我尝试通过在本地存档相同的证书和configuration文件进行debugging,但成功上传,我可以在TestFlight上分发给内部testing人员。

非常感谢您的帮助。

find帮助解决这个问题的解决scheme。

两个部分似乎有助于解决这个问题

  1. 更改从adhocappstoreconfiguration文件

    一个。 我必须通过匹配来生成appstore供应configuration文件:

      fastlane match appstore -a com.myapp.app.staging 
  2. include_symbolsinclude_bitcode添加到我的gym构build参数。

处理花费的时间比正常长,但是在处理之后,它返回到构build列表, pilot识别它并将其发布到TestFlight。

我新的Fastfile:

  lane :deploy_staging do match( type: "appstore" ) increment_build_number( xcodeproj: './ios/MyApp.xcodeproj' ) gym( include_symbols: true, include_bitcode: true, export_method: "app-store", scheme: "MyApp Staging", project: "./ios/MyApp.xcodeproj" ) # Build your app - more options available pilot clean_build_artifacts git_add( path: '.' ) git_commit( path: '.', message: "Deployed new staging version #{lane_context[SharedValues::BUILD_NUMBER]} [skip ci]", ) push_to_git_remote( local_branch: ENV["CIRCLE_BRANCH"], remote_branch: ENV["CIRCLE_BRANCH"] ) end