2017-08-02 8 views
2

現在、CircleCIからFastlaneを使用してReact-NativeアプリのiOSデプロイメントを設定しようとしていますが、問題が発生してpilot fastlaneスクリプトを使用してビルドをiTunes Connectにアップロードしますが、ビルドはTestFlight内部テスターで使用されなくなりました。ローカルにアーカイブしてビルドをiTunes Connectにアップロードすると、それをテストすることができます。CircleCIファストレーンによる内部テスト用にビルドできません

マイ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 

上の処理を完了マイCircleCIテストから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 

出力

CircleCI results

ビルドを使用してTestFlight]タブで利用可能(見えない)ではないのiTunesに接続

iTunes Connect

ビルド

TestFlight

私が同じ証明書とプロファイルにローカルにアーカイブすることによって、これをデバッグしようとしたが、それが正常にアップロードし、私はTestFlightの内部テスターに​​配布することができます。

ありがとうございました。

答えて

1

この問題の解決に役立つ解決策が見つかりました。

2つの部分がそれ

  1. appstore

    adhocから使用するプロファイルを変更する修正するのに役立つように見えます。私は試合を通じてAppStoreのプロビジョニングプロファイルを生成する必要がありました:

    fastlane match appstore -a com.myapp.app.staging 
    
  2. は私gymビルドパラメータにinclude_symbolsinclude_bitcodeを追加します。

処理は、通常より長いかかったが、処理後に、それは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 
関連する問題