diff --git a/.gitignore b/.gitignore index 348a11dc83..8697ad5c72 100644 --- a/.gitignore +++ b/.gitignore @@ -100,9 +100,8 @@ Statusgo.xcframework #ios /ios/Pods/ +/ios/logs/ /ios/StatusIm.xcworkspace -/ios/react-native-xcode.log -/ios/set_xcode_version.log .ruby-version status-e2e/ @@ -183,4 +182,4 @@ test/appium/tests/users.py /.calva/ ## component-tests -*.log \ No newline at end of file +*.log diff --git a/ci/Jenkinsfile.ios b/ci/Jenkinsfile.ios index 43a7c1be62..f3c872cdf5 100644 --- a/ci/Jenkinsfile.ios +++ b/ci/Jenkinsfile.ios @@ -63,6 +63,9 @@ pipeline { steps { script { api = ios.bundle() } } + post { + failure { archiveArtifacts 'ios/logs/*' } + } } stage('Parallel Upload') { parallel { diff --git a/fastlane/Fastfile b/fastlane/Fastfile index ad82ab464c..74e0568162 100644 --- a/fastlane/Fastfile +++ b/fastlane/Fastfile @@ -123,6 +123,7 @@ def build_ios_adhoc(readonly: false, pr_build: false) export_method: 'ad-hoc', output_name: 'StatusIm', output_directory: 'status-ios', + buildlog_path: 'ios/logs', export_options: { signingStyle: 'manual', provisioningProfiles: { @@ -162,6 +163,7 @@ def build_ios_e2e # 3. directory where to up StatusIm.app derived_data_path: 'status-ios', output_name: 'StatusIm.app', + buildlog_path: 'ios/logs', # ------------------------------------- # Normal stuff scheme: 'StatusIm', @@ -239,6 +241,7 @@ platform :ios do clean: true, export_method: 'app-store', output_directory: 'status-ios', + buildlog_path: 'ios/logs', include_symbols: false, export_options: { "combileBitcode": true, diff --git a/ios/StatusIm.xcodeproj/project.pbxproj b/ios/StatusIm.xcodeproj/project.pbxproj index 3bcc68bda0..2514e33433 100644 --- a/ios/StatusIm.xcodeproj/project.pbxproj +++ b/ios/StatusIm.xcodeproj/project.pbxproj @@ -526,7 +526,7 @@ ); runOnlyForDeploymentPostprocessing = 0; shellPath = "/usr/bin/env sh"; - shellScript = "set -o errexit\nexport NODE_BINARY=\"${NODE_BINARY:-node}\"\nexport NODE_ARGS=\" --openssl-legacy-provider --max-old-space-size=16384 \"\n\nbash -x ../node_modules/react-native/scripts/react-native-xcode.sh > ./react-native-xcode.log 2>&1"; + shellScript = "set -o errexit\nexport NODE_BINARY=\"${NODE_BINARY:-node}\"\nexport NODE_ARGS=\" --openssl-legacy-provider --max-old-space-size=16384 \"\n\nbash -x ../node_modules/react-native/scripts/react-native-xcode.sh > ./logs/react-native-xcode.log 2>&1"; }; 0F876BD5356F61BF142A01A0 /* [CP] Check Pods Manifest.lock */ = { isa = PBXShellScriptBuildPhase; @@ -584,7 +584,7 @@ ); runOnlyForDeploymentPostprocessing = 0; shellPath = "/usr/bin/env sh"; - shellScript = "set -o errexit\nexport NODE_BINARY=\"${NODE_BINARY:-node}\"\nexport NODE_ARGS=\" --openssl-legacy-provider --max-old-space-size=16384 \"\n\nbash -x ../node_modules/react-native/scripts/react-native-xcode.sh > ./react-native-xcode.log 2>&1"; + shellScript = "set -o errexit\nexport NODE_BINARY=\"${NODE_BINARY:-node}\"\nexport NODE_ARGS=\" --openssl-legacy-provider --max-old-space-size=16384 \"\n\nbash -x ../node_modules/react-native/scripts/react-native-xcode.sh > ./logs/react-native-xcode.log 2>&1"; }; 3AAD2AD724A3A60E0075D594 /* Run Script */ = { isa = PBXShellScriptBuildPhase; @@ -598,7 +598,7 @@ ); runOnlyForDeploymentPostprocessing = 1; shellPath = "/usr/bin/env sh"; - shellScript = "\"${PROJECT_DIR}/scripts/set_xcode_version.sh\" > ./set_xcode_version.log 2>&1"; + shellScript = "\"${PROJECT_DIR}/scripts/set_xcode_version.sh\" > ./logs/set_xcode_version.log 2>&1"; }; 3C1038075AE5E6FB86AC2319 /* [CP] Copy Pods Resources */ = { isa = PBXShellScriptBuildPhase; @@ -678,7 +678,7 @@ ); runOnlyForDeploymentPostprocessing = 1; shellPath = "/usr/bin/env sh"; - shellScript = "\"${PROJECT_DIR}/scripts/set_xcode_version.sh\" > ./set_xcode_version.log 2>&1"; + shellScript = "\"${PROJECT_DIR}/scripts/set_xcode_version.sh\" > ./logs/set_xcode_version.log 2>&1"; }; E732E3E1B024946173BF6D3D /* [CP] Copy Pods Resources */ = { isa = PBXShellScriptBuildPhase;