[deliver] Spaceship::UnexpectedResponse: An attribute value is not acceptable for the current resource state.

New Issue Checklist

[x] Updated fastlane to the latest version
[x] I read the Contribution Guidelines
[x] I read docs.fastlane.tools
[x] I searched for existing GitHub issues

Issue Description

After updating to 2.160.0, I am getting the following error from deliver: Spaceship::UnexpectedResponse: [!]  An attribute value is not acceptable for the current resource state. Honestly, I have no idea what's wrong, it happens after processing is done and deliver trying to submit the build. I went online to App Store Connect and finished the submission manually, which worked perfectly fine and without making any further configuration adjustments.
Command executed

upload_to_app_store
Complete output when running fastlane, including the stack trace and command used

$ bundle exec fastlane deploy_apps lane:${LANE}
+------------------------------------+---------+--------------------------+
|                              Used plugins                               |
+------------------------------------+---------+--------------------------+
| Plugin                             | Version | Action                   |
+------------------------------------+---------+--------------------------+
| fastlane-plugin-versioning_android | 0.1.0   | android_get_version_name |
|                                    |         | android_set_version_code |
|                                    |         | android_set_version_name |
|                                    |         | android_get_version_code |
+------------------------------------+---------+--------------------------+
[17:48:35]: Driving the lane 'deploy_apps' 🚀
[17:48:35]: LANE: release
[17:48:35]: Current working directory, before processing target ~~redacted~~: /Users/~~redacted~~/builds/uqJsUiKb/0/~~redacted~~/appdir/fastlane
[17:48:35]: -----------------------
[17:48:35]: --- Step: cocoapods ---
[17:48:35]: -----------------------
[17:48:36]: $ cd '/Users/~~redacted~~/builds/uqJsUiKb/0/~~redacted~~/appdir/fastlane/../ios' && bundle exec pod install --clean-install
[17:48:39]: ▸ Auto-linking React Native modules for target `~~redacted~~`: BVLinearGradient, RNCAsyncStorage, RNCMaskedView, RNDeviceInfo, RNGestureHandler, RNInAppBrowser, RNKeychain, RNLocalize, RNPermissions, RNReanimated, RNSVG, RNScreens, RNSelligent, RNVectorIcons, react-native-blur, react-native-camera, react-native-netinfo, react-native-safe-area-context, react-native-splash-screen, react-native-ultimate-config, react-native-viewpager, and react-native-webview
[17:48:39]: ▸ Installing unimodules:
[17:48:39]: ▸<EMAIL_ADDRESS>from ../../node_modules/expo-local-authentication/ios
[17:48:39]: ▸<EMAIL_ADDRESS>from ../../node_modules/unimodules-app-loader/ios
[17:48:39]: ▸<EMAIL_ADDRESS>from ../../node_modules/unimodules-constants-interface/ios
[17:48:39]: ▸<EMAIL_ADDRESS>from ../../node_modules/@unimodules/core/ios
[17:48:39]: ▸<EMAIL_ADDRESS>from ../../node_modules/unimodules-font-interface/ios
[17:48:39]: ▸<EMAIL_ADDRESS>from ../../node_modules/@unimodules/react-native-adapter/ios
[17:48:39]: ▸ Analyzing dependencies
[17:48:39]: ▸ Fetching podspec for `DoubleConversion` from `../../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec`
[17:48:39]: ▸ Fetching podspec for `Folly` from `../../node_modules/react-native/third-party-podspecs/Folly.podspec`
[17:48:39]: ▸ Fetching podspec for `glog` from `../../node_modules/react-native/third-party-podspecs/glog.podspec`
[17:48:53]: ▸ Downloading dependencies
[17:48:53]: ▸ Installing BVLinearGradient (2.5.6)
[17:48:53]: ▸ Installing CocoaAsyncSocket (7.6.4)
[17:48:53]: ▸ Installing CocoaLibEvent (1.0.0)
[17:48:53]: ▸ Installing DoubleConversion (1.1.6)
[17:48:53]: ▸ Installing EXLocalAuthentication (9.2.0)
[17:48:53]: ▸ Installing FBLazyVector (0.63.2)
[17:48:53]: ▸ Installing FBReactNativeSpec (0.63.2)
[17:48:53]: ▸ Installing Flipper (0.49.2)
[17:48:53]: ▸ Installing Flipper-DoubleConversion (1.1.7)
[17:48:53]: ▸ Installing Flipper-Folly (2.2.0)
[17:48:53]: ▸ Installing Flipper-Glog (0.3.6)
[17:48:53]: ▸ Installing Flipper-PeerTalk (0.0.4)
[17:48:53]: ▸ Installing Flipper-RSocket (1.1.0)
[17:48:53]: ▸ Installing FlipperKit (0.49.2)
[17:48:53]: ▸ Installing Folly (2<IP_ADDRESS>)
[17:48:53]: ▸ Installing OpenSSL-Universal (<IP_ADDRESS>)
[17:48:53]: ▸ Installing Permission-FaceID (2.1.5)
[17:48:53]: ▸ Installing PlotPlugin (3.2.0)
[17:48:53]: ▸ Installing RCTRequired (0.63.2)
[17:48:53]: ▸ Installing RCTTypeSafety (0.63.2)
[17:48:53]: ▸ Installing RNCAsyncStorage (1.11.0)
[17:48:53]: ▸ Installing RNCMaskedView (0.1.10)
[17:48:53]: ▸ Installing RNDeviceInfo (5.6.3)
[17:48:53]: ▸ Installing RNGestureHandler (1.7.0)
[17:48:53]: ▸ Installing RNInAppBrowser (3.4.0)
[17:48:53]: ▸ Installing RNKeychain (6.1.1)
[17:48:53]: ▸ Installing RNLocalize (1.4.1)
[17:48:53]: ▸ Installing RNPermissions (2.1.5)
[17:48:53]: ▸ Installing RNReanimated (1.13.0)
[17:48:53]: ▸ Installing RNSVG (12.1.0)
[17:48:53]: ▸ Installing RNScreens (2.9.0)
[17:48:53]: ▸ Installing RNSelligent (2.1.0)
[17:48:53]: ▸ Installing RNVectorIcons (7.0.0)
[17:48:53]: ▸ Installing React (0.63.2)
[17:48:53]: ▸ Installing React-Core (0.63.2)
[17:48:53]: ▸ Installing React-CoreModules (0.63.2)
[17:48:53]: ▸ Installing React-RCTActionSheet (0.63.2)
[17:48:53]: ▸ Installing React-RCTAnimation (0.63.2)
[17:48:53]: ▸ Installing React-RCTBlob (0.63.2)
[17:48:53]: ▸ Installing React-RCTImage (0.63.2)
[17:48:53]: ▸ Installing React-RCTLinking (0.63.2)
[17:48:53]: ▸ Installing React-RCTNetwork (0.63.2)
[17:48:53]: ▸ Installing React-RCTSettings (0.63.2)
[17:48:53]: ▸ Installing React-RCTText (0.63.2)
[17:48:53]: ▸ Installing React-RCTVibration (0.63.2)
[17:48:53]: ▸ Installing React-callinvoker (0.63.2)
[17:48:53]: ▸ Installing React-cxxreact (0.63.2)
[17:48:53]: ▸ Installing React-jsi (0.63.2)
[17:48:53]: ▸ Installing React-jsiexecutor (0.63.2)
[17:48:53]: ▸ Installing React-jsinspector (0.63.2)
[17:48:53]: ▸ Installing ReactCommon (0.63.2)
[17:48:53]: ▸ Installing UMAppLoader (1.2.0)
[17:48:53]: ▸ Installing UMConstantsInterface (5.2.1)
[17:48:53]: ▸ Installing UMCore (5.3.0)
[17:48:53]: ▸ Installing UMFontInterface (5.2.1)
[17:48:53]: ▸ Installing UMReactNativeAdapter (5.4.0)
[17:48:53]: ▸ Installing Yoga (1.14.0)
[17:48:53]: ▸ Installing YogaKit (1.18.1)
[17:48:53]: ▸ Installing boost-for-react-native (1.63.0)
[17:48:53]: ▸ Installing glog (0.3.5)
[17:48:53]: ▸ Installing react-native-blur (0.8.0)
[17:48:53]: ▸ Installing react-native-camera (3.35.0)
[17:48:53]: ▸ Installing react-native-netinfo (5.9.5)
[17:48:53]: ▸ Installing react-native-safe-area-context (3.1.1)
[17:48:53]: ▸ Installing react-native-splash-screen (3.2.0)
[17:48:53]: ▸ Installing react-native-ultimate-config (3.1.5)
[17:48:53]: ▸ Installing react-native-viewpager (4.1.4)
[17:48:53]: ▸ Installing react-native-webview (10.9.0)
[17:48:53]: ▸ Generating Pods project
[17:48:53]: ▸ Integrating client project
[17:48:53]: ▸ Pod installation complete! There are 76 dependencies from the Podfile and 68 total pods installed.
cd ../..
[17:48:53]: --------------------------------------------------------
[17:48:53]: --- Step: yarn app-~~redacted~~ rnuc .env.~~redacted~~.yml ---
[17:48:53]: --------------------------------------------------------
[17:48:53]: $ yarn app-~~redacted~~ rnuc .env.~~redacted~~.yml
[17:48:53]: ▸ yarn run v1.22.5
[17:48:53]: ▸ $ yarn --cwd app-~~redacted~~ rnuc .env.~~redacted~~.yml
[17:48:53]: ▸ $ /Users/~~redacted~~/builds/uqJsUiKb/0/mobile-apps/packages/node_modules/.bin/rnuc .env.~~redacted~~.yml
[17:48:54]: ▸ Done in 0.54s.
[17:48:54]: PROJECT_ROOT: /Users/~~redacted~~/builds/uqJsUiKb/0/~~redacted~~/appdir
[17:48:54]: Path to rnuc JSON file: /Users/~~redacted~~/builds/uqJsUiKb/0/~~redacted~~/appdir/rnuc.json
[17:48:54]: PROJECT_NAME: ~~redacted~~
[17:48:54]: PRODUCT_NAME: ~~redacted~~
[17:48:54]: APP_NAME: ~~redacted~~
[17:48:54]: BUNDLE_ID_SUFFIX: .~~redacted~~
[17:48:54]: VERSION: 3.0.0
[17:48:54]: THEME: light
[17:48:54]: USES_CUSTOM_LOGO: true
[17:48:54]: PRIMARY_COLOR_LIGHT: #D20514
[17:48:54]: PRIMARY_COLOR_DARK: #D20514
[17:48:54]: URL_SCHEME: ~~redacted~~
[17:48:54]: ACTIVE_MODULES: ["movies", "products", "vouchers", "events"]
[17:48:54]: RESET_CACHE: true
cd -
[17:48:54]: Current working directory: /Users/~~redacted~~/builds/uqJsUiKb/0/~~redacted~~/appdir/fastlane
[17:48:54]: ------------------------------------
[17:48:54]: --- Step: Switch to release lane ---
[17:48:54]: ------------------------------------
[17:48:54]: Cruising over to lane 'release' 🚖
[17:48:54]: options: {:languages=>"[\"de-DE\"]"}
[17:48:54]: --------------------------------------------
[17:48:54]: --- Step: Switch to release_android lane ---
[17:48:54]: --------------------------------------------
[17:48:54]: Cruising over to lane 'release_android' 🚖
[17:48:54]: --------------------------------------------------
[17:48:54]: --- Step: Switch to build_android_release lane ---
[17:48:54]: --------------------------------------------------
[17:48:54]: Cruising over to lane 'build_android_release' 🚖
[17:48:54]: --------------------------------------
[17:48:54]: --- Step: android_get_version_code ---
[17:48:54]: --------------------------------------
[17:48:54]: 👍  Current Android Version Code is: 65
[17:48:54]: German changelog file path: '../android/fastlane/metadata/android/~~redacted~~/de-DE/changelogs/66.txt'
[17:48:54]: German changelog file exists.
[17:48:54]: ----------------------------------------
[17:48:54]: --- Step: Switch to build_clean lane ---
[17:48:54]: ----------------------------------------
[17:48:54]: Cruising over to lane 'build_clean' 🚖
[17:48:54]: -------------------
[17:48:54]: --- Step: clean ---
[17:48:54]: -------------------
[17:48:54]: $ /Users/~~redacted~~/builds/uqJsUiKb/0/~~redacted~~/appdir/android/gradlew clean -p ./android -Pandroid.enableJetifier=true -Pandroid.useAndroidX=true
[17:49:10]: -----------------------------
[17:49:10]: --- Step: cleanBuildCache ---
[17:49:10]: -----------------------------
[17:49:10]: $ /Users/~~redacted~~/builds/uqJsUiKb/0/~~redacted~~/appdir/android/gradlew cleanBuildCache -p ./android -Pandroid.enableJetifier=true -Pandroid.useAndroidX=true
[17:49:21]: Cruising back to lane 'build_android_release' 🚘
[17:49:21]: --------------------------------------
[17:49:21]: --- Step: android_set_version_code ---
[17:49:21]: --------------------------------------
[17:49:21]: ☝  Android Version Code has been set to: 66
[17:49:21]: ------------------------------------------
[17:49:21]: --- Step: Switch to build_release lane ---
[17:49:21]: ------------------------------------------
[17:49:21]: Cruising over to lane 'build_release' 🚖
[17:49:21]: Android keystore path: '~~redacted~~.jks'
[17:49:21]: Key alias: '~~redacted~~'
[17:49:21]: Android keystore for variant '~~redacted~~' exists.
[17:49:21]: Password for Android keystore '~~redacted~~.jks' has been set.
[17:49:21]: Key alias for variant '~~redacted~~' has been set
[17:49:21]: Key password for variant '~~redacted~~' has been set.
[17:49:21]: ------------------------------------
[17:49:21]: --- Step: bundle~~redacted~~Release ---
[17:49:21]: ------------------------------------
[17:51:25]: Cruising back to lane 'build_android_release' 🚘
[17:51:25]: Cruising back to lane 'release_android' 🚘
[17:51:25]: ----------------------------------
[17:51:25]: --- Step: upload_to_play_store ---
[17:51:25]: ----------------------------------
+---------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------+
|                                                                            Summary for supply 2.160.0                                                                             |
+---------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------+
| package_name                    | ~~redacted~~                                                                                |
| metadata_path                   | ./android/fastlane/metadata/android/~~redacted~~                                                                                |
| aab                             | /Users/~~redacted~~/builds/uqJsUiKb/0/~~redacted~~/appdir/android/app/build/outputs/bundle/~~redacted~~Release/app-~~redacted~~-release.aab     |
| release_status                  | completed                                                                                |
| track                           | production                                                                                |
| json_key                        | ./android/fastlane/~~redacted~~.json                                                                                |
| skip_upload_apk                 | false                                                                                |
| skip_upload_aab                 | false                                                                                |
| skip_upload_metadata            | false                                                                                |
| skip_upload_changelogs          | false                                                                                |
| skip_upload_images              | false                                                                                |
| skip_upload_screenshots         | false                                                                                |
| validate_only                   | false                                                                                |
| check_superseded_tracks         | false                                                                                |
| timeout                         | 300                                                                                |
| deactivate_on_promote           | true                                                                                |
| ack_bundle_installation_warning | false                                                                                |
+---------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------+
[17:51:26]: Preparing aab at path '/Users/~~redacted~~/builds/uqJsUiKb/0/~~redacted~~/appdir/android/app/build/outputs/bundle/~~redacted~~Release/app-~~redacted~~-release.aab' for upload...
[17:52:34]: Updating track 'production'...
[17:52:35]: Preparing to upload for language 'de-DE'...
[17:52:35]: Uploading image file ./android/fastlane/metadata/android/~~redacted~~/de-DE/images/featureGraphic.png...
[17:52:38]: Uploading image file ./android/fastlane/metadata/android/~~redacted~~/de-DE/images/icon.png...
[17:52:40]: Uploading screenshot ./android/fastlane/metadata/android/~~redacted~~/de-DE/images/phoneScreenshots/1_de-DE.jpg...
[17:52:43]: Uploading screenshot ./android/fastlane/metadata/android/~~redacted~~/de-DE/images/phoneScreenshots/2_de-DE.jpg...
[17:52:45]: Uploading screenshot ./android/fastlane/metadata/android/~~redacted~~/de-DE/images/phoneScreenshots/3_de-DE.jpg...
[17:52:47]: Uploading screenshot ./android/fastlane/metadata/android/~~redacted~~/de-DE/images/phoneScreenshots/4_de-DE.jpg...
[17:52:50]: Uploading screenshot ./android/fastlane/metadata/android/~~redacted~~/de-DE/images/phoneScreenshots/5_de-DE.jpg...
[17:52:52]: Uploading screenshot ./android/fastlane/metadata/android/~~redacted~~/de-DE/images/phoneScreenshots/6_de-DE.jpg...
[17:52:55]: Updating changelog for '66' and language 'de-DE'...
[17:52:55]: Uploading all changes to Google Play...
[17:53:10]: Successfully finished the upload to Google Play
[17:53:10]: Cruising back to lane 'release' 🚘
[17:53:10]: ----------------------------------------
[17:53:10]: --- Step: Switch to release_ios lane ---
[17:53:10]: ----------------------------------------
[17:53:10]: Cruising over to lane 'release_ios' 🚖
[17:53:10]: ----------------------------------------------
[17:53:10]: --- Step: Switch to build_ios_release lane ---
[17:53:10]: ----------------------------------------------
[17:53:10]: Cruising over to lane 'build_ios_release' 🚖
[17:53:10]: ------------------------------------
[17:53:10]: --- Step: increment_build_number ---
[17:53:10]: ------------------------------------
Current version of project ~~redacted~~ is:
    65
/Users/~~redacted~~/builds/uqJsUiKb/0/~~redacted~~/appdir
[17:53:11]: $ cd /Users/~~redacted~~/builds/uqJsUiKb/0/~~redacted~~/appdir/ios && agvtool next-version -all && cd -
[17:53:11]: ▸ Setting version of project ~~redacted~~ to:
[17:53:11]: ▸ 66.
[17:53:11]: ▸ Also setting CFBundleVersion key (assuming it exists)
[17:53:11]: ▸ Updating CFBundleVersion in Info.plist(s)...
[17:53:11]: ▸ Updated CFBundleVersion in "~~redacted~~.xcodeproj/../~~redacted~~-tvOS/Info.plist" to 66
[17:53:11]: ▸ Updated CFBundleVersion in "~~redacted~~.xcodeproj/../~~redacted~~-tvOSTests/Info.plist" to 66
[17:53:11]: ▸ Updated CFBundleVersion in "~~redacted~~.xcodeproj/../~~redacted~~/Info.plist" to 66
[17:53:11]: ▸ Updated CFBundleVersion in "~~redacted~~.xcodeproj/../~~redacted~~Tests/Info.plist" to 66
[17:53:11]: ▸ /Users/~~redacted~~/builds/uqJsUiKb/0/~~redacted~~/appdir
[17:53:12]: -------------------------------
[17:53:12]: --- Step: sync_code_signing ---
[17:53:12]: -------------------------------
[17:53:12]: Successfully loaded '/Users/~~redacted~~/builds/uqJsUiKb/0/~~redacted~~/appdir/fastlane/Matchfile' 📄
+----------------+---------------------------------------------------------------+
|                  Detected Values from './fastlane/Matchfile'                   |
+----------------+---------------------------------------------------------------+
| git_url        | ~~redacted~~                                                  |
| git_branch     | master                                                        |
| git_user_email | ~~redacted~~                                                  |
| storage_mode   | git                                                           |
| type           | appstore                                                      |
| username       | ~~redacted~~                                                  |
+----------------+---------------------------------------------------------------+
+--------------------------------+---------------------------------------------------------------+
|                                   Summary for match 2.160.0                                    |
+--------------------------------+---------------------------------------------------------------+
| app_identifier                 | ["~~redacted~~"]                                              |
| type                           | appstore                                                      |
| readonly                       | false                                                         |
| generate_apple_certs           | true                                                          |
| skip_provisioning_profiles     | false                                                         |
| username                       | ~~redacted~~                                                  |
| team_id                        | ~~redacted~~                                                    |
| storage_mode                   | git                                                           |
| git_url                        | ~~redacted~~                                                  |
| git_branch                     | master                                                        |
| git_user_email                 | ~~redacted~~                                                  |
| shallow_clone                  | false                                                         |
| clone_branch_directly          | false                                                         |
| keychain_name                  | login.keychain                                                |
| keychain_password              | ********                                                      |
| force                          | false                                                         |
| force_for_new_devices          | false                                                         |
| skip_confirmation              | false                                                         |
| skip_docs                      | false                                                         |
| platform                       | ios                                                           |
| derive_catalyst_app_identifier | false                                                         |
| fail_on_name_taken             | false                                                         |
| verbose                        | false                                                         |
+--------------------------------+---------------------------------------------------------------+
[17:53:12]: Cloning remote git repo...
[17:53:12]: If cloning the repo takes too long, you can use the `clone_branch_directly` option in match.
[17:53:13]: Add git user config to local git repo...
[17:53:13]: Checking out branch master...
[17:53:13]: 🔓  Successfully decrypted certificates repo
[17:53:13]: Verifying that the certificate and profile are still valid on the Dev Portal...
Available session is not valid any more. Continuing with normal login.
[17:53:17]: Installing certificate...
+-------------------+-------------------------------------------------------------------------------+
|                                       Installed Certificate                                       |
+-------------------+-------------------------------------------------------------------------------+
| User ID           | ~~redacted~~                                                                  |
| Common Name       | ~~redacted~~                                                                  |
| Organisation Unit | ~~redacted~~                                                                  |
| Organisation      | ~~redacted~~                                                                  |
| Country           | US                                                                            |
| Start Datetime    | 2020-08-31 14:57:39 UTC                                                       |
| End Datetime      | 2021-08-31 14:57:39 UTC                                                       |
+-------------------+-------------------------------------------------------------------------------+
[17:53:18]: Installing provisioning profile...
+---------------------+---------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------+
|                                                                                Installed Provisioning Profile                                                                                |
+---------------------+---------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------+
| Parameter           | Environment Variable                                                | Value                                                                                |
+---------------------+---------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------+
| App Identifier      |                                                                     | ~~redacted~~                                                                       |
| Type                |                                                                     | appstore                                                                                |
| Platform            |                                                                     | ios                                                                                |
| Profile UUID        | sigh_~~redacted~~_appstore              | 257b23a0-e0da-484e-8561-07d0dc79d6b9                                                                           |
| Profile Name        | sigh_~~redacted~~_appstore_profile-name | match AppStore ~~redacted~~                                                        |
| Profile Path        | sigh_~~redacted~~_appstore_profile-path | /Users/~~redacted~~/Library/MobileDevice/Provisioning Profiles/257b23a0-e0da-484e-8561-07d0dc79d6b9.mobileprovision |
| Development Team ID | sigh_~~redacted~~_appstore_team-id      | BG94UHYLJZ                                                                                |
+---------------------+---------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------+
[17:53:19]: All required keys, certificates and provisioning profiles are installed 🙌
[17:53:19]: Setting Provisioning Profile type to 'app-store'
[17:53:19]: PRODUCT_NAME is defined: ~~redacted~~
[17:53:19]: -----------------------
[17:53:19]: --- Step: build_app ---
[17:53:19]: -----------------------
[17:53:19]: Resolving Swift Package Manager dependencies...
[17:53:19]: $ xcodebuild -resolvePackageDependencies -workspace ./ios/~~redacted~~.xcworkspace -scheme ~~redacted~~ -configuration Release
[17:53:21]: ▸ Command line invocation:
[17:53:21]: ▸     /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -resolvePackageDependencies -workspace ./ios/~~redacted~~.xcworkspace -scheme ~~redacted~~ -configuration Release
[17:53:23]: ▸ resolved source packages:
[17:53:23]: $ xcodebuild -showBuildSettings -workspace ./ios/~~redacted~~.xcworkspace -scheme ~~redacted~~ -configuration Release
[17:53:25]: Detected provisioning profile mapping: {:"~~redacted~~"=>"match AppStore ~~redacted~~"}
+------------------------------------------------------------------------------+------------------------------------------------------------+
|                                                          Summary for gym 2.160.0                                                          |
+------------------------------------------------------------------------------+------------------------------------------------------------+
| workspace                                                                    | ./ios/~~redacted~~.xcworkspace                             |
| scheme                                                                       | ~~redacted~~                                               |
| output_name                                                                  | ~~redacted~~                                               |
| configuration                                                                | Release                                                    |
| clean                                                                        | true                                                       |
| suppress_xcode_output                                                        | true                                                       |
| export_options.method                                                        | app-store                                                  |
| export_options.provisioningProfiles.~~redacted~~                             | match AppStore ~~redacted~~                                |
| export_method                                                                | app-store                                                  |
| destination                                                                  | generic/platform=iOS                                       |
| build_path                                                                   | /Users/~~redacted~~/Library/Developer/Xcode/Archives/2020-09-23 |
| output_directory                                                             | .                                                          |
| silent                                                                       | false                                                      |
| skip_package_ipa                                                             | false                                                      |
| skip_package_pkg                                                             | false                                                      |
| result_bundle                                                                | false                                                      |
| buildlog_path                                                                | ~/Library/Logs/gym                                         |
| skip_profile_detection                                                       | false                                                      |
| xcode_path                                                                   | /Applications/Xcode.app                                    |
+------------------------------------------------------------------------------+------------------------------------------------------------+
[17:53:26]: $ set -o pipefail && xcodebuild -workspace ./ios/~~redacted~~.xcworkspace -scheme ~~redacted~~ -configuration Release -destination 'generic/platform=iOS' -archivePath /Users/~~redacted~~/Library/Developer/Xcode/Archives/2020-09-23/~~redacted~~\ 2020-09-23\ 17.53.26.xcarchive clean archive | tee /Users/~~redacted~~/Library/Logs/gym/~~redacted~~-~~redacted~~.log | xcpretty > /dev/null
[18:00:53]: Generated plist file with the following values:
[18:00:53]: ▸ -----------------------------------------
[18:00:53]: ▸ {
[18:00:53]: ▸   "method": "app-store",
[18:00:53]: ▸   "provisioningProfiles": {
[18:00:53]: ▸     "~~redacted~~": "match AppStore ~~redacted~~"
[18:00:53]: ▸   },
[18:00:53]: ▸   "signingStyle": "manual"
[18:00:53]: ▸ }
[18:00:53]: ▸ -----------------------------------------
[18:00:53]: $ /usr/bin/xcrun /Users/~~redacted~~/.gems/gems/fastlane-2.160.0/gym/lib/assets/wrap_xcodebuild/xcbuild-safe.sh -exportArchive -exportOptionsPlist '/var/folders/hx/k03n_4y1655_5d02rcfw83yr0000gn/T/gym_config20200923-29928-9vum28.plist' -archivePath /Users/~~redacted~~/Library/Developer/Xcode/Archives/2020-09-23/~~redacted~~\ 2020-09-23\ 17.53.26.xcarchive -exportPath '/var/folders/hx/k03n_4y1655_5d02rcfw83yr0000gn/T/gym_output20200923-29928-1nwoyq1'
[18:01:15]: Mapping dSYM(s) using generated BCSymbolMaps
[18:01:15]: $ dsymutil --symbol-map /Users/~~redacted~~/Library/Developer/Xcode/Archives/2020-09-23/~~redacted~~\ 2020-09-23\ 17.53.26.xcarchive/BCSymbolMaps/D23880AA-320E-36E7-A65A-98004284F4BE.bcsymbolmap /Users/~~redacted~~/Library/Developer/Xcode/Archives/2020-09-23/~~redacted~~\ 2020-09-23\ 17.53.26.xcarchive/dSYMs/~~redacted~~.app.dSYM
[18:01:17]: $ dsymutil --symbol-map /Users/~~redacted~~/Library/Developer/Xcode/Archives/2020-09-23/~~redacted~~\ 2020-09-23\ 17.53.26.xcarchive/BCSymbolMaps/FC2E5ADC-15F6-3136-BC96-53119B8D9BFC.bcsymbolmap /Users/~~redacted~~/Library/Developer/Xcode/Archives/2020-09-23/~~redacted~~\ 2020-09-23\ 17.53.26.xcarchive/dSYMs/~~redacted~~.app.dSYM
[18:01:18]: Compressing 1 dSYM(s)
[18:01:18]: $ cd '/Users/~~redacted~~/Library/Developer/Xcode/Archives/2020-09-23/~~redacted~~ 2020-09-23 17.53.26.xcarchive/dSYMs' && zip -r '/Users/~~redacted~~/builds/uqJsUiKb/0/~~redacted~~/appdir/~~redacted~~.app.dSYM.zip' *.dSYM
[18:01:20]: ▸   adding: ~~redacted~~.app.dSYM/ (stored 0%)
[18:01:20]: ▸   adding: ~~redacted~~.app.dSYM/Contents/ (stored 0%)
[18:01:20]: ▸   adding: ~~redacted~~.app.dSYM/Contents/Resources/ (stored 0%)
[18:01:20]: ▸   adding: ~~redacted~~.app.dSYM/Contents/Resources/DWARF/ (stored 0%)
[18:01:20]: ▸   adding: ~~redacted~~.app.dSYM/Contents/Resources/DWARF/~~redacted~~ (deflated 75%)
[18:01:20]: ▸   adding: ~~redacted~~.app.dSYM/Contents/Info.plist (deflated 52%)
[18:01:20]: Successfully exported and compressed dSYM file
[18:01:20]: Successfully exported and signed the ipa file:
[18:01:20]: /Users/~~redacted~~/builds/uqJsUiKb/0/~~redacted~~/appdir/~~redacted~~.ipa
[18:01:20]: Cruising back to lane 'release_ios' 🚘
[18:01:20]: ---------------------------------
[18:01:20]: --- Step: upload_to_app_store ---
[18:01:20]: ---------------------------------
[18:01:20]: Successfully loaded '/Users/~~redacted~~/builds/uqJsUiKb/0/~~redacted~~/appdir/fastlane/Deliverfile' 📄
+-----------------------+-----------------------+
| Detected Values from './fastlane/Deliverfile' |
+-----------------------+-----------------------+
| force                 | true                  |
| submit_for_review     | true                  |
| reject_if_possible    | true                  |
| automatic_release     | true                  |
| username              | ~~redacted~~    |
+-----------------------+-----------------------+
[18:01:20]: Login to App Store Connect (~~redacted~~)
Available session is not valid any more. Continuing with normal login.
[18:01:24]: Login successful
+----------------------------------------------------------------------------+-----------------------------------------------------------------------------------+
|                                                                    deliver 2.160.0 Summary                                                                     |
+----------------------------------------------------------------------------+-----------------------------------------------------------------------------------+
| app_identifier                                                             | ~~redacted~~                                          |
| metadata_path                                                              | ./ios/fastlane/metadata/~~redacted~~                                                 |
| screenshots_path                                                           | ./ios/fastlane/screenshots/~~redacted~~                                              |
| app_rating_config_path                                                     | ./ios/fastlane/metadata/~~redacted~~/age-rating-config.json                          |
| release_notes.default                                                      | ~~redacted~~                                                                      |
| release_notes.de-DE                                                        | ~~redacted~~                                                                      |
| overwrite_screenshots                                                      | true                                                                              |
| submission_information.add_id_info_limits_tracking                         | false                                                                             |
| submission_information.add_id_info_serves_ads                              | false                                                                             |
| submission_information.add_id_info_tracks_action                           | false                                                                             |
| submission_information.add_id_info_tracks_install                          | false                                                                             |
| submission_information.add_id_info_uses_idfa                               | false                                                                             |
| submission_information.content_rights_has_rights                           | false                                                                             |
| submission_information.content_rights_contains_third_party_content         | false                                                                             |
| submission_information.export_compliance_platform                          | ios                                                                               |
| submission_information.export_compliance_compliance_required               | false                                                                             |
| submission_information.export_compliance_encryption_updated                | false                                                                             |
| submission_information.export_compliance_uses_encryption                   | false                                                                             |
| submission_information.export_compliance_is_exempt                         | false                                                                             |
| submission_information.export_compliance_contains_third_party_cryptography | false                                                                             |
| submission_information.export_compliance_contains_proprietary_cryptography | false                                                                             |
| submission_information.export_compliance_available_on_french_store         | false                                                                             |
| ipa                                                                        | /Users/~~redacted~~/builds/uqJsUiKb/0/~~redacted~~/appdir/~~redacted~~.ipa        |
| app_version                                                                | 3.0.0                                                                             |
| username                                                                   | ~~redacted~~                                                                      |
| platform                                                                   | ios                                                                               |
| edit_live                                                                  | false                                                                             |
| use_live_version                                                           | false                                                                             |
| skip_binary_upload                                                         | false                                                                             |
| skip_screenshots                                                           | false                                                                             |
| skip_metadata                                                              | false                                                                             |
| skip_app_version_update                                                    | false                                                                             |
| force                                                                      | true                                                                              |
| submit_for_review                                                          | true                                                                              |
| reject_if_possible                                                         | true                                                                              |
| automatic_release                                                          | true                                                                              |
| phased_release                                                             | false                                                                             |
| reset_ratings                                                              | false                                                                             |
| team_id                                                                    | ~~redacted~~                                                                      |
| dev_portal_team_id                                                         | ~~redacted~~                                                                      |
| run_precheck_before_submit                                                 | true                                                                              |
| precheck_default_rule_level                                                | warn                                                                              |
| ignore_language_directory_validation                                       | false                                                                             |
| precheck_include_in_app_purchases                                          | true                                                                              |
+----------------------------------------------------------------------------+-----------------------------------------------------------------------------------+
[18:01:28]: Making sure the latest version on App Store Connect matches '3.0.0'...
[18:01:29]: '3.0.0' is the latest version on App Store Connect
[18:01:29]: Loading './ios/fastlane/metadata/~~redacted~~/de-DE/description.txt'...
[18:01:29]: Loading './ios/fastlane/metadata/~~redacted~~/de-DE/keywords.txt'...
[18:01:29]: Loading './ios/fastlane/metadata/~~redacted~~/de-DE/promotional_text.txt'...
[18:01:29]: Loading './ios/fastlane/metadata/~~redacted~~/default/keywords.txt'...
[18:01:29]: Loading './ios/fastlane/metadata/~~redacted~~/default/support_url.txt'...
[18:01:30]: Loading './ios/fastlane/metadata/~~redacted~~/default/marketing_url.txt'...
[18:01:30]: Loading './ios/fastlane/metadata/~~redacted~~/default/name.txt'...
[18:01:30]: Loading './ios/fastlane/metadata/~~redacted~~/default/subtitle.txt'...
[18:01:30]: Loading './ios/fastlane/metadata/~~redacted~~/default/privacy_url.txt'...
[18:01:30]: Loading './ios/fastlane/metadata/~~redacted~~/default/apple_tv_privacy_policy.txt'...
[18:01:30]: Loading './ios/fastlane/metadata/~~redacted~~/copyright.txt'...
[18:01:30]: Loading './ios/fastlane/metadata/~~redacted~~/primary_category.txt'...
[18:01:30]: Loading './ios/fastlane/metadata/~~redacted~~/secondary_category.txt'...
[18:01:30]: Loading './ios/fastlane/metadata/~~redacted~~/primary_first_sub_category.txt'...
[18:01:30]: Loading './ios/fastlane/metadata/~~redacted~~/primary_second_sub_category.txt'...
[18:01:30]: Loading './ios/fastlane/metadata/~~redacted~~/secondary_first_sub_category.txt'...
[18:01:30]: Loading './ios/fastlane/metadata/~~redacted~~/secondary_second_sub_category.txt'...
[18:01:30]: Loading './ios/fastlane/metadata/~~redacted~~/review_information/first_name.txt'...
[18:01:30]: Loading './ios/fastlane/metadata/~~redacted~~/review_information/last_name.txt'...
[18:01:30]: Loading './ios/fastlane/metadata/~~redacted~~/review_information/phone_number.txt'...
[18:01:30]: Loading './ios/fastlane/metadata/~~redacted~~/review_information/email_address.txt'...
[18:01:30]: Loading './ios/fastlane/metadata/~~redacted~~/review_information/demo_user.txt'...
[18:01:30]: Loading './ios/fastlane/metadata/~~redacted~~/review_information/demo_password.txt'...
[18:01:30]: Loading './ios/fastlane/metadata/~~redacted~~/review_information/notes.txt'...
[18:01:30]: Detected languages: ["de-DE", "default"]
[18:01:34]: Will begin uploading metadata for '3.0.0' on App Store Connect
[18:01:34]: Uploading metadata to App Store Connect for version
[18:01:35]: Uploading metadata to App Store Connect for localized version 'de-DE'
[18:01:35]: Uploading metadata to App Store Connect for localized info 'de-DE'
[18:01:42]: Uploading app review information to App Store Connect
[18:01:45]: Setting the app's age rating...
[18:01:46]: Will begin uploading snapshots for '3.0.0' on App Store Connect
[18:01:46]: Starting with the upload of screenshots...
[18:01:51]: Deleted 'de-DE APP_IPHONE_55 1557a91c-5011-4b82-9d99-730f4138236d' -  (3.604386 secs)
[18:01:51]: Deleted 'de-DE APP_IPAD_PRO_129 a58558c0-c4ec-475d-9ce1-d8a2f15c00cb' -  (3.609866 secs)
[18:01:51]: Deleted 'de-DE APP_IPHONE_65 9a66018b-e1e3-4191-87ff-d25cec3978dd' -  (3.634361 secs)
[18:01:51]: Deleted 'de-DE APP_IPHONE_55 7728faaf-3bad-4a2b-b8b4-c63e6edbc096' -  (3.648556 secs)
[18:01:51]: Deleted 'de-DE APP_IPHONE_55 90ad4fba-d8a9-4ee0-b91d-7296c25f10cf' -  (3.663254 secs)
[18:01:51]: Deleted 'de-DE APP_IPHONE_65 8a4f61b9-fd34-46d3-b35c-18968a326b16' -  (3.695189 secs)
[18:01:51]: Deleted 'de-DE APP_IPHONE_55 2be29d17-619d-443a-a541-55ac3057bb84' -  (3.774055 secs)
[18:01:51]: Deleted 'de-DE APP_IPHONE_65 f26e467f-46b2-4fd7-a3ed-b594bc88a0aa' -  (3.930175 secs)
[18:01:51]: Deleted 'de-DE APP_IPHONE_55 8b1de049-e579-4e16-8103-9bf95d40f89e' -  (3.932516 secs)
[18:01:51]: Deleted 'de-DE APP_IPHONE_55 611a474a-4f73-40dc-98b3-b277ddc588de' -  (4.051353 secs)
[18:01:52]: Deleted 'de-DE APP_IPHONE_65 1854f6dc-50c6-41c8-a404-9d7e9c91f384' -  (0.939659 secs)
[18:01:52]: Deleted 'de-DE APP_IPHONE_58 dabff3df-633f-4214-965b-25615cb5f065' -  (0.902778 secs)
[18:01:52]: Deleted 'de-DE APP_IPHONE_58 a21d02b6-a6ec-4fd1-a2f5-f0e0c16242aa' -  (1.113441 secs)
[18:01:52]: Deleted 'de-DE APP_IPHONE_58 47ca1260-8420-4070-9a9e-3ab3c1a6f723' -  (0.881129 secs)
[18:01:52]: Deleted 'de-DE APP_IPHONE_58 cb0120ad-ce31-4e84-ba9b-d26f5a210f0f' -  (0.945357 secs)
[18:01:52]: Deleted 'de-DE APP_IPHONE_65 3e71996e-cead-48ba-829b-ced52653f2a9' -  (1.343709 secs)
[18:01:52]: Deleted 'de-DE APP_IPAD_PRO_3GEN_129 02323954-fb49-4b3f-b4f1-fcd8c092df6f' -  (0.950913 secs)
[18:01:52]: Deleted 'de-DE APP_IPHONE_65 9b2a20ce-d13f-460f-9ade-9474a5b71581' -  (1.367723 secs)
[18:01:52]: Deleted 'de-DE APP_IPHONE_58 339ae74d-a0f7-4909-97b0-c53236824f25' -  (1.29705 secs)
[18:01:52]: Deleted 'de-DE APP_IPHONE_58 d325bdaf-d8d6-42f1-8055-4e0bd5a1d138' -  (1.452821 secs)
[18:01:53]: Number of screenshots not deleted: 0
[18:01:53]: Successfully deleted all screenshots
[18:01:57]: Uploaded './ios/fastlane/screenshots/~~redacted~~/de-DE/iPhone11_05_de-DE.png'... (2.900451 secs)
[18:01:57]: Uploaded './ios/fastlane/screenshots/~~redacted~~/de-DE/iPhone11_04_de-DE.png'... (2.97138 secs)
[18:01:57]: Uploaded './ios/fastlane/screenshots/~~redacted~~/de-DE/iPhone8_03_de-DE.png'... (3.040155 secs)
[18:01:57]: Uploaded './ios/fastlane/screenshots/~~redacted~~/de-DE/iPhone11_03_de-DE.png'... (3.114022 secs)
[18:01:57]: Uploaded './ios/fastlane/screenshots/~~redacted~~/de-DE/iPadPro2G_01_de-DE.png'... (3.510486 secs)
[18:01:57]: Uploaded './ios/fastlane/screenshots/~~redacted~~/de-DE/iPhone8_02_de-DE.png'... (3.553797 secs)
[18:02:00]: Uploaded './ios/fastlane/screenshots/~~redacted~~/de-DE/iPhone8_05_de-DE.png'... (3.164636 secs)
[18:02:00]: Uploaded './ios/fastlane/screenshots/~~redacted~~/de-DE/iPhone8_04_de-DE.png'... (3.244265 secs)
[18:02:00]: Uploaded './ios/fastlane/screenshots/~~redacted~~/de-DE/iPhone8_01_de-DE.png'... (6.198767 secs)
[18:02:00]: Uploaded './ios/fastlane/screenshots/~~redacted~~/de-DE/iPhone11_02_de-DE.png'... (6.23287 secs)
[18:02:00]: Uploaded './ios/fastlane/screenshots/~~redacted~~/de-DE/iPhone11_01_de-DE.png'... (6.254002 secs)
[18:02:00]: Uploaded './ios/fastlane/screenshots/~~redacted~~/de-DE/iPhone11_06_de-DE.png'... (6.26753 secs)
[18:02:02]: Uploaded './ios/fastlane/screenshots/~~redacted~~/de-DE/ipadPro129_01_de-DE.png'... (5.165613 secs)
[18:02:02]: Uploaded './ios/fastlane/screenshots/~~redacted~~/de-DE/iPhone8_06_de-DE.png'... (5.782971 secs)
[18:02:02]: Waiting for all the screenshots processed...
[18:02:14]: Successfully uploaded all screenshots
[18:02:14]: Sorting screenshots uploaded...
[18:02:15]: Successfully uploaded screenshots to App Store Connect
[18:02:15]: Uploading binary to App Store Connect
[18:02:16]: Going to upload updated app to App Store Connect
[18:02:16]: This might take a few minutes. Please don't interrupt the script.
[18:03:21]: iTunes Transporter successfully finished its job
[18:03:21]: --------------------------------------------------------------------
[18:03:21]: Successfully uploaded package to App Store Connect. It might take a few minutes until it's visible online.
[18:03:21]: --------------------------------------------------------------------
[18:03:21]: Finished the upload to App Store Connect
[18:03:21]: Running precheck before submitting to review, if you'd like to disable this check you can set run_precheck_before_submit to false
[18:03:21]: Making sure we pass precheck 👮♀ 👮 before we submit  🛫
+--------------------------+------------------------------------------+
|                    Summary for precheck 2.160.0                     |
+--------------------------+------------------------------------------+
| default_rule_level       | warn                                     |
| include_in_app_purchases | true                                     |
| app_identifier           | ~~redacted~~                             |
| username                 | ~~redacted~~                             |
| platform                 | ios                                      |
| team_id                  | ~~redacted~~                             |
+--------------------------+------------------------------------------+
[18:03:21]: Checking app for precheck rule violations
[18:03:37]: Reading in-app purchases. If you have a lot, this might take a while
[18:03:37]: You can disable IAP checking by setting the `include_in_app_purchases` flag to `false`
[18:03:38]: Done reading in-app purchases
[18:03:38]: ✅  Passed: No negative  sentiment
[18:03:38]: ✅  Passed: No placeholder text
[18:03:38]: ✅  Passed: No mentioning  competitors
[18:03:38]: ✅  Passed: No future functionality promises
[18:03:38]: ✅  Passed: No words indicating test content
[18:03:38]: ✅  Passed: No curse words
[18:03:38]: ✅  Passed: No words indicating your IAP is free
[18:03:38]: ✅  Passed: Incorrect, or missing copyright date
[18:03:38]: ✅  Passed: No broken urls
[18:03:38]: precheck 👮♀ 👮  finished without detecting any potential problems 🛫
[18:03:38]: Selecting the latest build...
[18:03:38]: Waiting for processing on... app_id: ~~redacted~~, app_version: 3.0.0, build_version: 66, platform: IOS
[18:03:39]: Read more information on why this build isn't showing up yet - https://github.com/fastlane/fastlane/issues/14997
[18:03:39]: Waiting for the build to show up in the build list - this may take a few minutes (check your email for processing issues if this continues)
[18:03:55]: Waiting for the build to show up in the build list - this may take a few minutes (check your email for processing issues if this continues)
[18:04:12]: Waiting for the build to show up in the build list - this may take a few minutes (check your email for processing issues if this continues)
[18:04:27]: Waiting for the build to show up in the build list - this may take a few minutes (check your email for processing issues if this continues)
[18:04:42]: Waiting for the build to show up in the build list - this may take a few minutes (check your email for processing issues if this continues)
[18:04:58]: Waiting for the build to show up in the build list - this may take a few minutes (check your email for processing issues if this continues)
[18:05:13]: Waiting for the build to show up in the build list - this may take a few minutes (check your email for processing issues if this continues)
[18:05:28]: Waiting for the build to show up in the build list - this may take a few minutes (check your email for processing issues if this continues)
[18:05:44]: Waiting for App Store Connect to finish processing the new build (3.0.0 - 66) for IOS
[18:06:00]: Waiting for App Store Connect to finish processing the new build (3.0.0 - 66) for IOS
[18:06:18]: Waiting for App Store Connect to finish processing the new build (3.0.0 - 66) for IOS
[18:06:35]: Waiting for App Store Connect to finish processing the new build (3.0.0 - 66) for IOS
[18:06:53]: Waiting for App Store Connect to finish processing the new build (3.0.0 - 66) for IOS
[18:07:08]: Waiting for App Store Connect to finish processing the new build (3.0.0 - 66) for IOS
[18:07:25]: Waiting for App Store Connect to finish processing the new build (3.0.0 - 66) for IOS
[18:07:42]: Waiting for App Store Connect to finish processing the new build (3.0.0 - 66) for IOS
[18:07:57]: Waiting for App Store Connect to finish processing the new build (3.0.0 - 66) for IOS
[18:08:13]: Waiting for App Store Connect to finish processing the new build (3.0.0 - 66) for IOS
[18:08:32]: Waiting for App Store Connect to finish processing the new build (3.0.0 - 66) for IOS
[18:08:48]: Waiting for App Store Connect to finish processing the new build (3.0.0 - 66) for IOS
[18:09:07]: Waiting for App Store Connect to finish processing the new build (3.0.0 - 66) for IOS
[18:09:23]: Waiting for App Store Connect to finish processing the new build (3.0.0 - 66) for IOS
[18:09:38]: Waiting for App Store Connect to finish processing the new build (3.0.0 - 66) for IOS
[18:09:55]: Waiting for App Store Connect to finish processing the new build (3.0.0 - 66) for IOS
[18:10:11]: Waiting for App Store Connect to finish processing the new build (3.0.0 - 66) for IOS
[18:10:29]: Waiting for App Store Connect to finish processing the new build (3.0.0 - 66) for IOS
[18:10:46]: Waiting for App Store Connect to finish processing the new build (3.0.0 - 66) for IOS
[18:11:02]: Waiting for App Store Connect to finish processing the new build (3.0.0 - 66) for IOS
[18:11:21]: Waiting for App Store Connect to finish processing the new build (3.0.0 - 66) for IOS
[18:11:39]: Waiting for App Store Connect to finish processing the new build (3.0.0 - 66) for IOS
[18:11:56]: Waiting for App Store Connect to finish processing the new build (3.0.0 - 66) for IOS
[18:12:13]: Waiting for App Store Connect to finish processing the new build (3.0.0 - 66) for IOS
[18:12:31]: Waiting for App Store Connect to finish processing the new build (3.0.0 - 66) for IOS
[18:12:47]: Waiting for App Store Connect to finish processing the new build (3.0.0 - 66) for IOS
[18:13:04]: Waiting for App Store Connect to finish processing the new build (3.0.0 - 66) for IOS
[18:13:19]: Waiting for App Store Connect to finish processing the new build (3.0.0 - 66) for IOS
[18:13:40]: Waiting for App Store Connect to finish processing the new build (3.0.0 - 66) for IOS
[18:13:58]: Waiting for App Store Connect to finish processing the new build (3.0.0 - 66) for IOS
[18:14:15]: Waiting for App Store Connect to finish processing the new build (3.0.0 - 66) for IOS
[18:14:30]: Waiting for App Store Connect to finish processing the new build (3.0.0 - 66) for IOS
[18:14:49]: Waiting for App Store Connect to finish processing the new build (3.0.0 - 66) for IOS
[18:15:07]: Successfully finished processing the build 3.0.0 - 66 for IOS
[18:15:07]: Selecting build 3.0.0 (66)...
[18:15:08]: Successfully selected build
[18:15:12]: Successfully updated IDFA declarations on App Store Connect
+-------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------+
|                                                                                Lane Context                                                                                |
+-------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------+
| PLATFORM_NAME                       |                                                                                |
| LANE_NAME                           | deploy_apps                                                                                |
| ANDROID_VERSION_CODE                | 65                                                                                |
| ANDROID_NEW_VERSION_CODE            | 66                                                                                |
| GRADLE_BUILD_TYPE                   | Release                                                                                |
| GRADLE_FLAVOR                       | ~~redacted~~                                                                                |
| GRADLE_ALL_APK_OUTPUT_PATHS         | []                                                                                |
| GRADLE_ALL_AAB_OUTPUT_PATHS         | ["/Users/~~redacted~~/builds/uqJsUiKb/0/~~redacted~~/appdir/android/app/build/outputs/bundle/~~redacted~~Release/app-~~redacted~~-release.aab"] |
| GRADLE_ALL_OUTPUT_JSON_OUTPUT_PATHS | []                                                                                |
| GRADLE_ALL_MAPPING_TXT_OUTPUT_PATHS | []                                                                                |
| GRADLE_AAB_OUTPUT_PATH              | /Users/~~redacted~~/builds/uqJsUiKb/0/~~redacted~~/appdir/android/app/build/outputs/bundle/~~redacted~~Release/app-~~redacted~~-release.aab     |
| BUILD_NUMBER                        | 66                                                                                |
| SIGH_PROFILE_TYPE                   | app-store                                                                                |
| MATCH_PROVISIONING_PROFILE_MAPPING  | {"~~redacted~~"=>"match AppStore ~~redacted~~"}                                             |
| IPA_OUTPUT_PATH                     | /Users/~~redacted~~/builds/uqJsUiKb/0/~~redacted~~/appdir/~~redacted~~.ipa                                                                   |
| XCODEBUILD_ARCHIVE                  | /Users/~~redacted~~/Library/Developer/Xcode/Archives/2020-09-23/~~redacted~~ 2020-09-23 17.53.26.xcarchive                                                  |
| DSYM_OUTPUT_PATH                    | /Users/~~redacted~~/builds/uqJsUiKb/0/~~redacted~~/appdir/~~redacted~~.app.dSYM.zip                                                          |
+-------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------+
[18:15:12]: An attribute value is not acceptable for the current resource state.
+------+--------------------------------------------+-------------+
|                        fastlane summary                         |
+------+--------------------------------------------+-------------+
| Step | Action                                     | Time (in s) |
+------+--------------------------------------------+-------------+
| 1    | cocoapods                                  | 18          |
| 2    | yarn app-~~redacted~~ rnuc .env.~~redacted~~.yml | 0           |
| 3    | Switch to release lane                     | 0           |
| 4    | Switch to release_android lane             | 0           |
| 5    | Switch to build_android_release lane       | 0           |
| 6    | android_get_version_code                   | 0           |
| 7    | Switch to build_clean lane                 | 0           |
| 8    | clean                                      | 16          |
| 9    | cleanBuildCache                            | 10          |
| 10   | android_set_version_code                   | 0           |
| 11   | Switch to build_release lane               | 0           |
| 12   | bundle~~redacted~~Release                     | 123         |
| 13   | upload_to_play_store                       | 105         |
| 14   | Switch to release_ios lane                 | 0           |
| 15   | Switch to build_ios_release lane           | 0           |
| 16   | increment_build_number                     | 1           |
| 17   | sync_code_signing                          | 7           |
| 18   | build_app                                  | 481         |
| 💥   | upload_to_app_store                        | 831         |
+------+--------------------------------------------+-------------+
[18:15:12]: fastlane finished with errors
Looking for related GitHub issues on fastlane/fastlane...
➡  Deliver Error: An app cannot have CUSTOM distribution but no organizations or users.
    https://github.com/fastlane/fastlane/issues/17143 [open] 4 💬
    a day ago
➡  Availability and B2B information through ConnectAPI?
    https://github.com/fastlane/fastlane/issues/17244 [open] 4 💬
    a day ago
➡  Error during uploading metadata: The attribute 'releaseType' can not be modified.
    https://github.com/fastlane/fastlane/issues/16911 [open] 17 💬
    2 days ago
and 3 more at: https://github.com/fastlane/fastlane/search?q=An%20attribute%20value%20is%20not%20acceptable%20for%20the%20current%20resource%20state.&type=Issues&utf8=✓
🔗  You can ⌘ + double-click on links to open them directly in your browser.
bundler: failed to load command: fastlane (/Users/~~redacted~~/.gems/bin/fastlane)
Spaceship::UnexpectedResponse: [!] An attribute value is not acceptable for the current resource state.
  /Users/~~redacted~~/.gems/gems/fastlane-2.160.0/spaceship/lib/spaceship/connect_api/api_client.rb:188:in `handle_response'
  /Users/~~redacted~~/.gems/gems/fastlane-2.160.0/spaceship/lib/spaceship/connect_api/api_client.rb:135:in `patch'
  /Users/~~redacted~~/.gems/gems/fastlane-2.160.0/spaceship/lib/spaceship/connect_api/tunes/tunes.rb:197:in `patch_app'
  /usr/local/Cellar/ruby/2.6.5/lib/ruby/2.6.0/forwardable.rb:230:in `patch_app'
  /Users/~~redacted~~/.gems/gems/fastlane-2.160.0/spaceship/lib/spaceship/connect_api/models/app.rb:84:in `update'
  /Users/~~redacted~~/.gems/gems/fastlane-2.160.0/deliver/lib/deliver/submit_for_review.rb:178:in `update_submission_information'
  /Users/~~redacted~~/.gems/gems/fastlane-2.160.0/deliver/lib/deliver/submit_for_review.rb:24:in `submit!'
  /Users/~~redacted~~/.gems/gems/fastlane-2.160.0/deliver/lib/deliver/runner.rb:194:in `submit_for_review'
  /Users/~~redacted~~/.gems/gems/fastlane-2.160.0/deliver/lib/deliver/runner.rb:64:in `run'
  /Users/~~redacted~~/.gems/gems/fastlane-2.160.0/fastlane/lib/fastlane/actions/upload_to_app_store.rb:17:in `run'
  /Users/~~redacted~~/.gems/gems/fastlane-2.160.0/fastlane/lib/fastlane/runner.rb:263:in `block (2 levels) in execute_action'
  /Users/~~redacted~~/.gems/gems/fastlane-2.160.0/fastlane/lib/fastlane/actions/actions_helper.rb:50:in `execute_action'
  /Users/~~redacted~~/.gems/gems/fastlane-2.160.0/fastlane/lib/fastlane/runner.rb:255:in `block in execute_action'
  /Users/~~redacted~~/.gems/gems/fastlane-2.160.0/fastlane/lib/fastlane/runner.rb:229:in `chdir'
  /Users/~~redacted~~/.gems/gems/fastlane-2.160.0/fastlane/lib/fastlane/runner.rb:229:in `execute_action'
  /Users/~~redacted~~/.gems/gems/fastlane-2.160.0/fastlane/lib/fastlane/runner.rb:157:in `trigger_action_by_name'
  /Users/~~redacted~~/.gems/gems/fastlane-2.160.0/fastlane/lib/fastlane/fast_file.rb:159:in `method_missing'
  ../ios/fastlane/Fastfile:139:in `block in parsing_binding'
  /Users/~~redacted~~/.gems/gems/fastlane-2.160.0/fastlane/lib/fastlane/lane.rb:33:in `call'
  /Users/~~redacted~~/.gems/gems/fastlane-2.160.0/fastlane/lib/fastlane/runner.rb:204:in `try_switch_to_lane'
  /Users/~~redacted~~/.gems/gems/fastlane-2.160.0/fastlane/lib/fastlane/runner.rb:146:in `trigger_action_by_name'
  /Users/~~redacted~~/.gems/gems/fastlane-2.160.0/fastlane/lib/fastlane/fast_file.rb:159:in `method_missing'
  Fastfile:133:in `block in parsing_binding'
  /Users/~~redacted~~/.gems/gems/fastlane-2.160.0/fastlane/lib/fastlane/lane.rb:33:in `call'
  /Users/~~redacted~~/.gems/gems/fastlane-2.160.0/fastlane/lib/fastlane/runner.rb:204:in `try_switch_to_lane'
  /Users/~~redacted~~/.gems/gems/fastlane-2.160.0/fastlane/lib/fastlane/runner.rb:146:in `trigger_action_by_name'
  /Users/~~redacted~~/.gems/gems/fastlane-2.160.0/fastlane/lib/fastlane/fast_file.rb:159:in `method_missing'
  Fastfile:69:in `block in parsing_binding'
  /Users/~~redacted~~/.gems/gems/fastlane-2.160.0/fastlane/lib/fastlane/lane.rb:33:in `call'
  /Users/~~redacted~~/.gems/gems/fastlane-2.160.0/fastlane/lib/fastlane/runner.rb:49:in `block in execute'
  /Users/~~redacted~~/.gems/gems/fastlane-2.160.0/fastlane/lib/fastlane/runner.rb:45:in `chdir'
  /Users/~~redacted~~/.gems/gems/fastlane-2.160.0/fastlane/lib/fastlane/runner.rb:45:in `execute'
  /Users/~~redacted~~/.gems/gems/fastlane-2.160.0/fastlane/lib/fastlane/lane_manager.rb:47:in `cruise_lane'
  /Users/~~redacted~~/.gems/gems/fastlane-2.160.0/fastlane/lib/fastlane/command_line_handler.rb:36:in `handle'
  /Users/~~redacted~~/.gems/gems/fastlane-2.160.0/fastlane/lib/fastlane/commands_generator.rb:108:in `block (2 levels) in run'
  /usr/local/lib/ruby/gems/2.6.0/gems/commander-fastlane-4.4.6/lib/commander/command.rb:178:in `call'
  /usr/local/lib/ruby/gems/2.6.0/gems/commander-fastlane-4.4.6/lib/commander/command.rb:153:in `run'
  /usr/local/lib/ruby/gems/2.6.0/gems/commander-fastlane-4.4.6/lib/commander/runner.rb:476:in `run_active_command'
  /Users/~~redacted~~/.gems/gems/fastlane-2.160.0/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb:76:in `run!'
  /usr/local/lib/ruby/gems/2.6.0/gems/commander-fastlane-4.4.6/lib/commander/delegates.rb:15:in `run!'
  /Users/~~redacted~~/.gems/gems/fastlane-2.160.0/fastlane/lib/fastlane/commands_generator.rb:352:in `run'
  /Users/~~redacted~~/.gems/gems/fastlane-2.160.0/fastlane/lib/fastlane/commands_generator.rb:41:in `start'
  /Users/~~redacted~~/.gems/gems/fastlane-2.160.0/fastlane/lib/fastlane/cli_tools_distributor.rb:119:in `take_off'
  /Users/~~redacted~~/.gems/gems/fastlane-2.160.0/bin/fastlane:23:in `'
  /Users/~~redacted~~/.gems/bin/fastlane:23:in `load'
  /Users/~~redacted~~/.gems/bin/fastlane:23:in `'

Environment

✅ fastlane environment ✅
Stack

Key
Value

OS
10.15.6

Ruby
2.6.5

Bundler?
true

Git
git version 2.23.0

Installation Source
~/.gems/bin/fastlane

Host
Mac OS X 10.15.6 (19G2021)

Ruby Lib Dir
/usr/local/Cellar/ruby/2.6.5/lib

OpenSSL Version
OpenSSL 1.1.1d 10 Sep 2019

Is contained
false

Is homebrew
false

Is installed via Fabric.app
false

Xcode Path
/Applications/Xcode.app/Contents/Developer/

Xcode Version
12.0

System Locale

Variable
Value

LANG
en_US.UTF-8
✅

LC_ALL
en_US.UTF-8
✅

LANGUAGE

fastlane files:
`./fastlane/Fastfile`
# This file contains the fastlane.tools configuration
# You can find the documentation at https://docs.fastlane.tools
#
# For a list of all available actions, check out
#
#     https://docs.fastlane.tools/actions
#
# For a list of all available plugins, check out
#
#     https://docs.fastlane.tools/plugins/available-plugins
#

# Uncomment the line if you want fastlane to automatically update itself
# update_fastlane

import("../ios/fastlane/Fastfile")
import("../android/fastlane/Fastfile")

desc "Deploy both an iOS and Android version of multiple apps to either beta or public track"
lane :deploy_apps do |options|
  UI.message "LANE: #{options[:lane]}"

  # add changelogs for the respective languages
  UI.message "Current working directory, before processing target ~~redacted~~: #{FileUtils.pwd}"

  # install iOS pods
  cocoapods(podfile: File.join(FileUtils.pwd, "../ios"), clean_install: true)

  # move up one directory into the /packages root dir
  FileUtils.cd("../..", verbose: true) do
    # set up environment
    sh("yarn", "~~redacted~~", "rnuc", ".env.~~redacted~~.yml")
    # set the project root env variable
    ENV["PROJECT_ROOT"] = File.join(FileUtils.pwd, "~~redacted~~")
    UI.message "PROJECT_ROOT: #{ENV["PROJECT_ROOT"]}"
    rnuc_json_path = File.join(ENV["PROJECT_ROOT"], "rnuc.json")
    # check for correct path
    if (Pathname(rnuc_json_path).exist?) then
      UI.success "Path to rnuc JSON file: #{rnuc_json_path}"
      # read the JSON file
      rnuc_json_file = File.read(rnuc_json_path)
      # parse the JSON content into a hash
      rnuc_json_content = JSON.parse(rnuc_json_file)
      # set env variable for each of the keys
      rnuc_json_content.keys.each do |rnuc_key|
        value = rnuc_json_content[rnuc_key]
        if (!!value == value) then
          # convert to string if value is boolean
          value = "#{value}"
        end
        ENV[rnuc_key] = value
        UI.message "#{rnuc_key}: #{ENV[rnuc_key]}"
      end
    else
      UI.abort_with_message! "rnuc JSON file does NOT exist."
    end
  end
  UI.message "Current working directory: #{FileUtils.pwd}"

  # ~~redacted~~ is only available in German, as of Sept. 2020
  languages = '["de-DE"]'

  case options[:lane]
  when "build_only"
    build_apps_release(languages: languages)
  when "beta"
    beta(languages: languages)
  when "release"
    release(languages: languages)
  end

  UI.message "Current working directory, after processing target ~~redacted~~: #{FileUtils.pwd}"

  UI.message "LANE: #{options[:lane]}"
  if (options[:lane] != "build_only") then
    UI.message "APP: ~~redacted~~"
    version = ENV["VERSION"]
    UI.message "VERSION: #{version}"
    # define the branch name, based on selected lane
    branch = options[:lane] == "release" ? "master" : "beta"
    # set the correct credentials to be able to push and merge
    sh("git", "remote", "set-url", "origin"<EMAIL_ADDRESS>    sh("git", "config", "--global", "user.email", "~~redacted~~")
    sh("git", "config", "--global", "user.name", "~~redacted~~")
    sh("git", "config", "--global", "push.followTags", "true")
    # add and commit the changes made by CI/CD
    git_add
    git_commit(path: "*", message: "~~redacted~~ app v#{version} post-deployment [skip ci]", skip_git_hooks: true, allow_nothing_to_commit: true)
    # push the commit to origin/master|beta
    push_to_git_remote(
      local_branch: "HEAD",
      remote_branch: branch
    )
    # merge the changes back into dev branch and push it
    sh("git", "fetch", "origin")
    # create and push new release branch for archiving purposes
    sh("git", "checkout", "-b", "release-#{version}", "origin/#{branch}")
    push_to_git_remote(local_branch: "release-#{version}")
    # create new local branches master and dev
    sh("git", "checkout", "-b", branch, "origin/#{branch}")
    sh("git", "checkout", "-b", "dev", "origin/dev")
    # merge master into dev and push afterwards
    sh("git", "merge", "--no-ff", branch)
    push_to_git_remote(local_branch: "dev")
  end

  UI.message "Current working directory, after processing all targets: #{FileUtils.pwd}"
end

desc "Build both the iOS and Android app with Release configuration"
lane :build_apps_release do |options|
  UI.message "options: #{options}"
  build_android_release(languages: options[:languages], prod: false)

  build_ios_release
  clean_build_artifacts
end

desc "Deploy both an iOS and Android version of one app to the beta track"
lane :beta do |options|
  UI.message "options: #{options}"
  beta_android(languages: options[:languages])

  beta_ios(languages: options[:languages])
  clean_build_artifacts
end

desc "Deploy both an iOS and Android version of one app to the public track"
lane :release do |options|
  UI.message "options: #{options}"
  release_android(languages: options[:languages])

  release_ios(languages: options[:languages])
  clean_build_artifacts
end

`./android/fastlane/Fastfile`
# frozen_string_literal: true
#
# This file contains the fastlane.tools configuration
# You can find the documentation at https://docs.fastlane.tools
#
# For a list of all available actions, check out
#     https://docs.fastlane.tools/actions
#
# For a list of all available plugins, check out
#     https://docs.fastlane.tools/plugins/available-plugins
#
# Uncomment the line if you want fastlane to automatically update itself
# update_fastlane

# helper lanes
desc "Cleans the project directory"
lane :build_clean do
  build_android_app(
    task: "clean",
    project_dir: "./android",
    print_command_output: false,
    properties: {
      "android.enableJetifier" => true,
      "android.useAndroidX" => true
    }
  )

  build_android_app(
    task: "cleanBuildCache",
    project_dir: "./android",
    print_command_output: false,
    properties: {
      "android.enableJetifier" => true,
      "android.useAndroidX" => true
    }
  )
end

desc "Builds an Android App Bundle with debug config"
lane :build_debug do
  build_android_app(
    task: "bundle",
    flavor: "~~redacted~~",
    build_type: "Debug",
    project_dir: "./android",
    print_command_output: false,
    properties: {
      "android.enableJetifier" => true,
      "android.useAndroidX" => true
    }
  )
end

desc "Builds an Android App Bundle with release config"
lane :build_release do
  flavor = "~~redacted~~"

  store_file = "#{ENV["KEYSTORE_PATH"]}/~~redacted~~.jks"
  store_password = ENV["~~redacted~~"]
  key_alias = ENV["#{flavor}_key_alias"]
  key_password = ENV["#{flavor}_key_password"]

  UI.message "Android keystore path: '#{store_file}'"
  UI.message "Key alias: '#{key_alias}'"

  if (Pathname(store_file).exist?) then
    UI.success "Android keystore for variant '#{flavor}' exists."
  else
    UI.abort_with_message! "Cannot find Android keystore file for variant '#{flavor}'. Please copy the needed .jks file to '#{store_file}'."
  end

  if (store_password.to_s.length > 0) then
    UI.success "Password for Android keystore '#{store_file}' has been set."
  else
    UI.abort_with_message! "No password for Android keystore '#{store_file}' set. Please set the keystore password as an environment variable."
  end

  if (key_alias.to_s.length > 0) then
    UI.success "Key alias for variant '#{flavor}' has been set"
  else
    UI.abort_with_message! "No key alias for variant '#{flavor}' set. Please set key alias and password as environment variables."
  end

  if (key_password.to_s.length > 0) then
    UI.success "Key password for variant '#{flavor}' has been set."
  else
    UI.abort_with_message! "No key password for variant '#{flavor}' set. Please set key alias and password as environment variables."
  end

  build_android_app(
    task: "bundle",
    flavor: flavor,
    build_type: "Release",
    project_dir: "./android",
    print_command: false,
    print_command_output: false,
    properties: {
      "android.enableJetifier" => true,
      "android.useAndroidX" => true,
      "android.injected.signing.store.file" => store_file,
      "android.injected.signing.store.password" => store_password,
      "android.injected.signing.key.alias" => key_alias,
      "android.injected.signing.key.password" => key_password
    }
  )
end

# actual lanes used for building and deploying the app
desc "Clean the project and build the Android app with Release configuration"
lane :build_android_release do |options|
  # fetch and increment version/build number
  version_code = android_get_version_code(gradle_file: "./android/app/build.gradle")
  version_code = version_code.to_i + 1

  # parse languages from params
  languages = JSON.parse(options[:languages])

  # check whether the respective changelogs exist
  languages.each do |language|
    # setup path strings to metadata directories
    changelog_file_path = File.join(File.dirname(__FILE__), "/metadata/android/~~redacted~~", language, "changelogs", "#{version_code}.txt")

    if (language == "de-DE") then
      lang_string = "German"
    elsif (language == "en-US") then
      lang_string = "English"
    end

    UI.message "#{lang_string} changelog file path: '#{changelog_file_path}'"

    if (Pathname(changelog_file_path).exist?) then
      UI.success "#{lang_string} changelog file exists."
    elsif (options[:prod])
      UI.abort_with_message! "#{lang_string} changelog file does NOT exist."
    else
      UI.important "#{lang_string} changelog file does NOT exist."
    end
  end

  # clean the project first
  build_clean

  # set the incremented version code
  android_set_version_code(
    version_code: version_code.to_s,
    gradle_file: "./android/app/build.gradle"
  )

  # finally, build an AAB
  build_release
end

desc "Clean the project and build the Android app with Debug configuration"
lane :build_android_debug do
  build_clean
  build_debug
end

desc "Deploy a new beta version to the Google Play Store"
lane :beta_android do |options|
  build_android_release(languages: options[:languages], prod: true)

  upload_to_play_store(
    track: "internal",
    package_name: "~~redacted~~",
    metadata_path: "./android/fastlane/metadata/android/~~redacted~~"
  )
end

desc "Deploy a new release version to the Google Play Store"
lane :release_android do |options|
  build_android_release(languages: options[:languages], prod: true)

  upload_to_play_store(
    package_name: "~~redacted~~",
    metadata_path: "./android/fastlane/metadata/android/~~redacted~~"
  )
end

`./ios/fastlane/Fastfile`
# This file contains the fastlane.tools configuration
# You can find the documentation at https://docs.fastlane.tools
#
# For a list of all available actions, check out
#
#     https://docs.fastlane.tools/actions
#
# For a list of all available plugins, check out
#
#     https://docs.fastlane.tools/plugins/available-plugins
#

# Uncomment the line if you want fastlane to automatically update itself
# update_fastlane

desc "Build the iOS app with Release configuration"
lane :build_ios_release do
  bundle_id = "~~redacted~~"

  # increment the build number
  build_number = increment_build_number(xcodeproj: "./ios/~~redacted~~.xcodeproj")

  # manage certificates and provisioning profiles
  sync_code_signing(
    app_identifier: bundle_id
  )

  if (defined?(ENV["PRODUCT_NAME"])) then
    UI.success "PRODUCT_NAME is defined: #{ENV["PRODUCT_NAME"]}"

    # build the app before deploying it to TestFlight
    build_app(
      workspace: "./ios/~~redacted~~.xcworkspace",
      scheme: "~~redacted~~",
      output_name: ENV["PRODUCT_NAME"],
      configuration: "Release",
      clean: true,
      suppress_xcode_output: true,
      export_options: {
        method: "app-store",
        provisioningProfiles: {
          bundle_id => "match AppStore #{bundle_id}"
        }
      }
    )
  else
    UI.abort_with_message! "PRODUCT_NAME env variable is not defined."
  end

  build_number
end

desc "Build the iOS app with Debug configuration"
lane :build_ios_debug do
  bundle_id = "com.compeso.cloudticket.mobile.~~redacted~~"

  sync_code_signing(
    type: "development",
    app_identifier: bundle_id
  )

  if (defined?(ENV["PRODUCT_NAME"])) then
    UI.success "PRODUCT_NAME is defined: #{ENV["PRODUCT_NAME"]}"

    build_app(
      workspace: "./ios/~~redacted~~.xcworkspace",
      scheme: "~~redacted~~",
      output_name: ENV["PRODUCT_NAME"],
      configuration: "Debug",
      clean: true,
      suppress_xcode_output: true,
      export_options: {
        method: "development",
        provisioningProfiles: {
          bundle_id => "match Development #{bundle_id}"
        }
      }
    )
  else
    UI.abort_with_message! "PRODUCT_NAME env variable is not defined."
  end
end

desc "Push a new beta build to TestFlight"
lane :beta_ios do |options|
  build_number = build_ios_release

  localized_build_info = {
    "default": {
      whats_new: File.read("../android/fastlane/metadata/android/~~redacted~~/de-DE/changelogs/#{build_number}.txt")
    }
  }

  # parse languages from params
  languages = JSON.parse(options[:languages])

  # add changelogs for the respective languages
  languages.each do |language|
    localized_build_info[language] = {
      whats_new: File.read("../android/fastlane/metadata/android/~~redacted~~/#{language}/changelogs/#{build_number}.txt")
    }
  end

  upload_to_testflight(
    localized_build_info: localized_build_info.to_json,
    app_identifier: "~~redacted~~",
    beta_app_feedback_email: "~~redacted~~",
    demo_account_required: false,
    beta_app_review_info: {
      contact_email: "~~redacted~~",
      contact_first_name: "~~redacted~~",
      contact_last_name: "~~redacted~~",
      contact_phone: "~~redacted~~",
      demo_account_name: "",
      demo_account_password: ""
    },
    reject_build_waiting_for_review: true,
    distribute_external: true,
    groups: ["~~redacted~~"]
  )
end

desc "Deploy a new release build to the App Store"
lane :release_ios do |options|
  build_number = build_ios_release

  release_notes = {
    "default" => File.read("../android/fastlane/metadata/android/~~redacted~~/de-DE/changelogs/#{build_number}.txt")
  }

  # parse languages from params
  languages = JSON.parse(options[:languages])

  # add release notes for the respective languages
  languages.each do |language|
    release_notes[language] = File.read("../android/fastlane/metadata/android/~~redacted~~/#{language}/changelogs/#{build_number}.txt")
  end

  upload_to_app_store(
    app_identifier: "~~redacted~~",
    metadata_path: "./ios/fastlane/metadata/~~redacted~~",
    screenshots_path: "./ios/fastlane/screenshots/~~redacted~~",
    app_rating_config_path: "./ios/fastlane/metadata/~~redacted~~/age-rating-config.json",
    release_notes: release_notes,
    overwrite_screenshots: true,
    submission_information: {
      add_id_info_limits_tracking: false,
      add_id_info_serves_ads: false,
      add_id_info_tracks_action: false,
      add_id_info_tracks_install: false,
      add_id_info_uses_idfa: false,
      content_rights_has_rights: false,
      content_rights_contains_third_party_content: false,
      export_compliance_platform: 'ios',
      export_compliance_compliance_required: false,
      export_compliance_encryption_updated: false,
      export_compliance_app_type: nil,
      export_compliance_uses_encryption: false,
      export_compliance_is_exempt: false,
      export_compliance_contains_third_party_cryptography: false,
      export_compliance_contains_proprietary_cryptography: false,
      export_compliance_available_on_french_store: false
    }
  )
end

`./fastlane/Appfile`
# For more information about the Appfile, see:
#     https://docs.fastlane.tools/advanced/#appfile

# iOS stuff
apple_id("~~redacted~~") # Your Apple email address
itc_team_id("~~redacted~~") # App Store Connect Team ID
team_id("~~redacted~~") # Developer Portal Team ID

# Android stuff
json_key_file("./android/fastlane/~~redacted~~.json") # Path to the json secret file - Follow https://docs.fastlane.tools/actions/supply/#setup to get one

fastlane gems

Gem
Version
Update-Status

fastlane
2.160.0
✅ Up-To-Date

Loaded fastlane plugins:

Plugin
Version
Update-Status

fastlane-plugin-versioning_android
0.1.0
✅ Up-To-Date

Loaded gems

Gem
Version

did_you_mean
1.3.0

bundler
2.0.2

rake
13.0.1

CFPropertyList
3.0.2

concurrent-ruby
1.1.7

i18n
0.9.5

minitest
5.14.2

thread_safe
0.3.6

tzinfo
1.2.7

activesupport
<IP_ADDRESS>

public_suffix
4.0.6

addressable
2.7.0

httpclient
2.8.3

json
2.3.1

algoliasearch
1.27.4

atomos
0.1.3

aws-eventstream
1.1.0

aws-partitions
1.373.0

aws-sigv4
1.2.2

jmespath
1.4.0

aws-sdk-core
3.107.0

aws-sdk-kms
1.38.0

aws-sdk-s3
1.81.0

babosa
1.0.3

claide
1.0.3

fuzzy_match
2.0.4

nap
1.1.0

netrc
0.11.0

ffi
1.13.1

ethon
0.12.0

typhoeus
1.4.0

cocoapods-core
1.9.3

cocoapods-deintegrate
1.0.4

cocoapods-downloader
1.4.0

cocoapods-plugins
1.0.0

cocoapods-search
1.0.0

cocoapods-stats
1.1.0

cocoapods-trunk
1.5.0

cocoapods-try
1.2.0

colored2
3.1.2

escape
0.0.4

fourflusher
2.3.1

gh_inspector
1.1.3

molinillo
0.6.6

ruby-macho
1.4.0

nanaimo
0.3.0

xcodeproj
1.18.0

cocoapods
1.9.3

colored
1.2

highline
1.7.10

commander-fastlane
4.4.6

declarative
0.0.20

declarative-option
0.1.0

digest-crc
0.6.1

unf_ext
<IP_ADDRESS>

unf
0.1.4

domain_name
0.5.20190701

dotenv
2.7.6

emoji_regex
3.0.0

excon
0.76.0

multipart-post
2.0.0

faraday
1.0.1

http-cookie
1.0.3

faraday-cookie_jar
0.0.7

faraday_middleware
1.0.0

fastimage
2.2.0

jwt
2.2.2

memoist
0.16.2

multi_json
1.15.0

os
1.1.1

signet
0.14.0

googleauth
0.13.1

mini_mime
1.0.2

uber
0.1.0

representable
3.0.4

retriable
3.1.2

google-api-client
0.38.0

google-cloud-env
1.3.3

google-cloud-errors
1.0.1

google-cloud-core
1.5.0

google-cloud-storage
1.28.0

mini_magick
4.10.1

plist
3.5.0

rubyzip
2.3.0

security
0.1.3

naturally
2.2.0

simctl
1.6.8

slack-notifier
2.3.2

terminal-notifier
2.0.0

unicode-display_width
1.7.0

terminal-table
1.8.0

tty-screen
0.8.1

tty-cursor
0.7.1

tty-spinner
0.9.3

word_wrap
1.0.0

rouge
2.0.7

xcpretty
0.3.0

xcpretty-travis-formatter
1.0.0

fastlane-plugin-versioning_android
0.1.0

generated on: 2020-09-23

What are the full commands (lane or similar) your are using?

What are the full commands (lane or similar) your are using?

@max-ott That's a bit complicated to answer. In general, I just execute bundle exec fastlane deploy_apps lane:${LANE} with LANE == 'release' | 'beta' set in the env. But I pasted a thorough breakdown into the "Complete output when running fastlane, including the stack trace and command used" section. Does that help, or do you need any additional information?

One other potentially crucial piece of information is that I get this error for uploading an update to an app that has been on the App Store for multiple years (at least 5-6), and hasn't been updated for 3.5 years. Maybe there is some deprecated configuration value that had been set back in the day and now causes trouble or whatever. Curiously, as I mentioned before, I was able to submit the update for review via the App Store Connect web interface (it's also live now).
@joshdholtz Do you have an idea maybe? I think you're one of the most knowledgable people when it comes to deliver.

@TheWirv I wish we could have gotten back a more useful error from the API there. Did you have any issues showing to you in the dashboard at all when submitting?
Your logs showed that it failed during the update of submission information (which is 👇 from your logs above)
submission_information.add_id_info_limits_tracking                         | false                                                                             |
| submission_information.add_id_info_serves_ads                              | false                                                                             |
| submission_information.add_id_info_tracks_action                           | false                                                                             |
| submission_information.add_id_info_tracks_install                          | false                                                                             |
| submission_information.add_id_info_uses_idfa                               | false                                                                             |
| submission_information.content_rights_has_rights                           | false                                                                             |
| submission_information.content_rights_contains_third_party_content         | false                                                                             |
| submission_information.export_compliance_platform                          | ios                                                                               |
| submission_information.export_compliance_compliance_required               | false                                                                             |
| submission_information.export_compliance_encryption_updated                | false                                                                             |
| submission_information.export_compliance_uses_encryption                   | false                                                                             |
| submission_information.export_compliance_is_exempt                         | false                                                                             |
| submission_information.export_compliance_contains_third_party_cryptography | false                                                                             |
| submission_information.export_compliance_contains_proprietary_cryptography | false                                                                             |
| submission_information.export_compliance_available_on_french_store         | false

Is this all true? Did you have to adjust any of these settings when you submitted through the dashboard?
And future thanks for answering my questions 😊

@joshdholtz Thanks for getting back to me on this!
First of all, no. I didn't have any problems whatsoever when submitting through the dashboard.
Secondly, regarding the submission_information: To be honest, I don't really know and just assumed that all of this is true since that's the submission info I have been using for our other apps (which have been deployed via fastlane from the start, whereas this is an app from before we were using fastlane). I also have no idea where to check all of these values, honestly. I can find a few obvious ones like add_id_info_uses_idfa. But other than that I don't see much else on the dashboard.
Update (while writing):
I think I just found the breaking setting while composing this message and back-checking on App Store Connect. Our other apps have "Content rights" set to "This app does not contain, show, or access third-party content.", whereas this app has it set to "This app has the necessary rights to its third-party content.", which obviously doesn't go well with these two:
submission_information.content_rights_has_rights: false,
submission_information.content_rights_contains_third_party_content: false,

But wouldn't it just overwrite this setting with the newly supplied build?

@TheWirv You should be able to switch it both ways (in my experience) but I’m there could be some secret rules that we don’t know about 🤔
So if your app has “This app has the necessary rights to its third-party content.” then maybe you need to set submission_information.content_rights_contains_third_party_content: true
This was changed up in the latest App Store Connect update so I’m personally still trying to figure out all the information about them 😬

But also, would you be able to run fastlane run spaceship_logs after this fails for you the next time and send me the contents of the file? It shows the raw request/response and maybe there is some more error messages in the response that we are missing that could help think 🤷♂

Hey @joshdholtz 👋
I stumbled upon the same error and had the chance to run the spaceship_logs, so here is the crucial part:
INFO  [14:31:21]: >> PATCH apps/1041830513: {"data":{"type":"apps","id":"1041830513","attributes":{"contentRightsDeclaration":"DOES_NOT_USE_THIRD_PARTY_CONTENT"}}}
DEBUG [14:31:21]: << PATCH apps/1041830513: 409 {"errors"=>[{"id"=>"cb1c08ab-bdb2-479d-99f4-b2fe0667fe31", "status"=>"409", "code"=>"ENTITY_ERROR.ATTRIBUTE.INVALID.INVALID_STATE", "title"=>"An attribute value is not acceptable for the current resource state.", "source"=>{"pointer"=>"contentRightsDeclaration"}}]}

I think @TheWirv might be right. I actually realized I had selected that I am using third-party content and now I had it set as
content_rights_has_rights: true,
content_rights_contains_third_party_content: false

Furthermore, I don't see the option to change this on AppStoreConnect, so it's probably a one-way street.

@patreu22 I don’t think its the order but it looks like you have a different value for content_rights_contains_third_party_content in your example? One was true and one was false. It seems like for some reason that your app was in some state that doesn’t allow the changing of contentRightsDeclaration.
Do you know if you app had a version that was in review or something? I’ll see if I can get an answer from the App Store Connect API team on what this reasoning may be 🤷♂

Yeah you're right, I didn't mean the order but the proper value, but you figured out what I actually meant 🤓  I'm not aware of anything like that, it wasn't supposed to be in review, so hopefully the API team might help us out with some more information :)


Add support for const

Example:
          @vertex fn vs(
            @builtin(vertex_index) VertexIndex : u32
          ) -> @builtin(position) vec4<f32> {
            var pos = array<vec2<f32>, 3>(
              vec2(0.0, 0.5),
              vec2(-0.5, -0.5),
              vec2(0.5, -0.5)
            );

            return vec4(pos[VertexIndex], 0.0, 1.0);
          }

          const FOO = radians(90);
          const BAR = sin(FOO);
          const NUM_COLORS = u32(BAR + 3); // result 4
          @group(0) @binding(0) var<uniform> uni: array<vec4f, NUM_COLORS>;

          @fragment fn fs() -> @location(0) vec4<f32> {
            return uni[NUM_COLORS - 1];
          }

works: https://jsgist.org/?src=bcebe5c22fc9ed9ecc18f46fdf986ffc
I get that this is non-trivial as you actually have to do the math and that includes all of the math functions :(

Just an idea, it's probably not so common to do much math on const so maybe in order of priorities

handle single numbers as in const NUM_LIGHTS = 12;
handle operators as in const NUM_LIGHTS = 10 + 2;
handle functions as in const NUM_LIGHTS = u32(sin(radians(90)) * 10 + 2;

I wonder if I can figure out 1.

Thanks. It shouldn't be too bad to evaluate the const AST to reduce it to a number or string, though it would be an annoying number of functions to implement assuming all the built-ins could be in const expressions (even if some like refract are highly unlikely).
But I won't have time to look into it for at least several weeks since I've been really busy with work.

So much for not having to write a preprocessor :-)

Hmmm.... I'm not sure how I'll deal with const-functions. Evaluating a const expression doesn't seem to bad, but to evaluate a const function seems more complicated. I suppose I could leave that unsupported for now.
WGSL got more complicated with the recent spec changes.

Oh, nevermind, "The const attribute cannot be applied to user-declared functions."  False alarm.

I'm picking away at it whenever I get a free moment. I pushed some basic const handling. Still needs the rest of the WGSL const functions to evaluate, I just have basic trig functions in there currently. Also need to go through and find any other places const's should be evaluated. I currently added it for array counts.
I added a test for
const FOO = radians(90);
const BAR = sin(FOO);
const NUM_COLORS = u32(BAR + 3); // result 4
@group(0) @binding(0) var<uniform> uni: array<vec4f, NUM_COLORS>;

And reflect.getUniformBufferInfo(reflect.uniforms[0]) says the buffer size is 64.

Awesome Brendan!
I started writing some tests and looking at example. I cobbled this WGSL snippet together which shows some more issues
            alias foo = u32;
            alias bar = foo;

            struct Vehicle {
              num_wheels: bar,
              mass_kg: f32,
            }

            alias Car = Vehicle;

            struct Ship {
                cars: array<Car, 4>,
            };

            const a_bicycle = Car(2, 10.5);
            const bike_num_wheels = a_bicycle.num_wheels;

            struct Ocean {
                things: array<Ship, a_bicycle.num_wheels>,
            };

This appears to compile in WGSL but not the parser. I didn't know that you can create a structure at runtime and it gets an automatic constructor which you can use as a const.

if you're curious that example started here: https://google.github.io/tour-of-wgsl/types/structures/

I'm still picking away at it. Added some basic const struct handling, so the above example evaluates now.
    alias foo = u32;
    alias bar = foo;
    struct Vehicle {
      num_wheels: bar,
      mass_kg: f32,
    }
    alias Car = Vehicle;
    const num_cars = 2 * 2;
    struct Ship {
        cars: array<Car, num_cars>,
    };
    const a_bicycle = Car(2, 10.5);
    const bike_num_wheels = a_bicycle.num_wheels;
    struct Ocean {
        things: array<Ship, a_bicycle.num_wheels>,
    };
    @group(0) @binding(0) var<uniform> ocean: Ocean;

with
    const bufferInfo = reflect.getUniformBufferInfo(reflect.uniforms[0]);
    test.equals(bufferInfo.size, 64);

I feel like the code is getting a bit messy as I add in all these const and alias cases. At some point I'll do a clean up pass. And I still need to go through and make sure it's evaluating consts in all the places it needs to, and add the rest of the const functions.

Also would love to see support for consts; I've got some switch-cases that don't work without replacing the consts manually sadly.

If you have an example that isn't parsing correctly, please let me know what it is.

Here's a cut-down version of what I'm trying to parse:
alias material_type = u32;
const MATERIAL_TYPE_LAMBERTIAN : material_type = 0;
const MATERIAL_TYPE_METAL : material_type = 1;
const MATERIAL_TYPE_DIELECTRIC : material_type = 2;

fn scatter(ty: material_type) -> bool {
    switch (ty) {
        case MATERIAL_TYPE_LAMBERTIAN {
            return true;
        }
        case MATERIAL_TYPE_METAL {
            return false;
        }
        case MATERIAL_TYPE_DIELECTRIC {
            return true;
        }
        default {
            return false;
        }
    }
}

Thanks. I'll get it fixed up as soon as I can.

@edelmanjm I pushed a fix for switch case when it has a const expression.