Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not able to upload to Test Flight #21288

Closed
4 tasks done
devops-emesbee opened this issue May 18, 2023 · 0 comments
Closed
4 tasks done

Not able to upload to Test Flight #21288

devops-emesbee opened this issue May 18, 2023 · 0 comments

Comments

@devops-emesbee
Copy link

devops-emesbee commented May 18, 2023

New Issue Checklist

Issue Description

I am using Jenkins to deploy my iOS application. The deploy works directly when executing on Mac slave but when I run through the pipeline it doesnt work.

Command executed

fastlane beta

`# 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

default_platform(:ios)

platform :ios do
desc "Push a new beta build to TestFlight"
lane :beta do
cert
sigh(force: true)
increment_build_number(xcodeproj: "ShiftHero.xcodeproj")
#increment_version_number(bump_type: "patch")
git_commit(path: "", message: "iOS Build Number Bump to: " + get_build_number + " for version: " + get_version_number)
push_to_git_remote
gym(scheme: "ShiftHero")
upload_to_testflight
end
desc "Push a new release build to the App Store"
lane :release do
cert
sigh(force: true)
increment_version_number(bump_type: "patch")
increment_build_number(xcodeproj: "ShiftHero.xcodeproj")
git_commit(path: "
", message: "iOS Build Number Bump to: " + get_build_number + " for version: " + get_version_number)
push_to_git_remote
gym(scheme: "ShiftHero")
upload_to_app_store(force: true, skip_metadata: true)
end
end`

FastFile

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

I/Users/emesbeedevops/build/workspace/ShiftHero/Mobile\ Applications/shift-hero-ios/ios/Pods/Headers/Public/FBLazyVector -I/Users/emesbeedevops/build/workspace/ShiftHero/Mobile\ Applications/shift-hero-ios/ios/Pods/Headers/Public/RCT-Folly -I/Users/emesbeedevops/build/workspace/ShiftHero/Mobile\ Applications/shift-hero-ios/ios/Pods/Headers/Public/RCTRequired -I/Users/emesbeedevops/build/workspace/ShiftHero/Mobile\ Applications/shift-hero-ios/ios/Pods/Headers/Public/RCTTypeSafety -I/Users/emesbeedevops/build/workspace/ShiftHero/Mobile\ Applications/shift-hero-ios/ios/Pods/Headers/Public/React-Core -I/Users/emesbeedevops/build/workspace/ShiftHero/Mobile\ Applications/shift-hero-ios/ios/Pods/Headers/Public/React-callinvoker -I/Users/emesbeedevops/build/workspace/ShiftHero/Mobile\ Applications/shift-hero-ios/ios/Pods/Headers/Public/React-cxxreact -I/Users/emesbeedevops/build/workspace/ShiftHero/Mobile\ Applications/shift-hero-ios/ios/Pods/Headers/Public/React-hermes -I/Users/emesbeedevops/build/workspace/ShiftHero/Mobile\ Applications/shift-hero-ios/ios/Pods/Headers/Public/React-jsi -I/Users/emesbeedevops/build/workspace/ShiftHero/Mobile\ Applications/shift-hero-ios/ios/Pods/Headers/Public/React-jsiexecutor -I/Users/emesbeedevops/build/workspace/ShiftHero/Mobile\ Applications/shift-hero-ios/ios/Pods/Headers/Public/React-jsinspector -I/Users/emesbeedevops/build/workspace/ShiftHero/Mobile\ Applications/shift-hero-ios/ios/Pods/Headers/Public/React-logger -I/Users/emesbeedevops/build/workspace/ShiftHero/Mobile\ Applications/shift-hero-ios/ios/Pods/Headers/Public/React-perflogger -I/Users/emesbeedevops/build/workspace/ShiftHero/Mobile\ Applications/shift-hero-ios/ios/Pods/Headers/Public/React-runtimeexecutor -I/Users/emesbeedevops/build/workspace/ShiftHero/Mobile\ Applications/shift-hero-ios/ios/Pods/Headers/Public/ReactCommon -I/Users/emesbeedevops/build/workspace/ShiftHero/Mobile\ Applications/shift-hero-ios/ios/Pods/Headers/Public/Yoga -I/Users/emesbeedevops/build/workspace/ShiftHero/Mobile\ Applications/shift-hero-ios/ios/Pods/Headers/Public/fmt -I/Users/emesbeedevops/build/workspace/ShiftHero/Mobile\ Applications/shift-hero-ios/ios/Pods/Headers/Public/glog -I/Users/emesbeedevops/build/workspace/ShiftHero/Mobile\ Applications/shift-hero-ios/ios/Pods/Headers/Public/hermes-engine -I/Users/emesbeedevops/build/workspace/ShiftHero/Mobile\ Applications/shift-hero-ios/ios/Pods/Headers/Public/libevent -I/Users/emesbeedevops/build/workspace/ShiftHero/Mobile\ Applications/shift-hero-ios/ios/Pods/Headers/Public/react-native-safe-area-context -I/Users/emesbeedevops/build/workspace/ShiftHero/Mobile\ Applications/shift-hero-ios/ios/Pods/boost -I/Users/emesbeedevops/Library/Developer/Xcode/DerivedData/ShiftHero-ayoxcdakqwefojfbqxuomrhixkvi/Build/Intermediates.noindex/ArchiveIntermediates/ShiftHero/IntermediateBuildFilesPath/Pods.build/Release-iphoneos/react-native-safe-area-context.build/DerivedSources-normal/arm64 -I/Users/emesbeedevops/Library/Developer/Xcode/DerivedData/ShiftHero-ayoxcdakqwefojfbqxuomrhixkvi/Build/Intermediates.noindex/ArchiveIntermediates/ShiftHero/IntermediateBuildFilesPath/Pods.build/Release-iphoneos/react-native-safe-area-context.build/DerivedSources/arm64 -I/Users/emesbeedevops/Library/Developer/Xcode/DerivedData/ShiftHero-ayoxcdakqwefojfbqxuomrhixkvi/Build/Intermediates.noindex/ArchiveIntermediates/ShiftHero/IntermediateBuildFilesPath/Pods.build/Release-iphoneos/react-native-safe-area-context.build/DerivedSources -F/Users/emesbeedevops/Library/Developer/Xcode/DerivedData/ShiftHero-ayoxcdakqwefojfbqxuomrhixkvi/Build/Intermediates.noindex/ArchiveIntermediates/ShiftHero/BuildProductsPath/Release-iphoneos/react-native-safe-area-context -F/Users/emesbeedevops/build/workspace/ShiftHero/Mobile\ Applications/shift-hero-ios/ios/Pods/hermes-engine/destroot/Library/Frameworks/universal -F/Users/emesbeedevops/Library/Developer/Xcode/DerivedData/ShiftHero-ayoxcdakqwefojfbqxuomrhixkvi/Build/Intermediates.noindex/ArchiveIntermediates/ShiftHero/BuildProductsPath/Release-iphoneos/XCFrameworkIntermediates/hermes-engine/Pre-built -fmodule-map-file\=/Users/emesbeedevops/build/workspace/ShiftHero/Mobile\ Applications/shift-hero-ios/ios/Pods/Headers/Public/RCTTypeSafety/RCTTypeSafety.modulemap -fmodule-map-file\=/Users/emesbeedevops/build/workspace/ShiftHero/Mobile\ Applications/shift-hero-ios/ios/Pods/Headers/Public/React/React-Core.modulemap -fmodule-map-file\=/Users/emesbeedevops/build/workspace/ShiftHero/Mobile\ Applications/shift-hero-ios/ios/Pods/Headers/Public/ReactCommon/ReactCommon.modulemap -fmodule-map-file\=/Users/emesbeedevops/build/workspace/ShiftHero/Mobile\ Applications/shift-hero-ios/ios/Pods/Headers/Public/folly/RCT-Folly.modulemap -fmodule-map-file\=/Users/emesbeedevops/build/workspace/ShiftHero/Mobile\ Applications/shift-hero-ios/ios/Pods/Headers/Public/yoga/Yoga.modulemap -DFOLLY_NO_CONFIG -DFOLLY_MOBILE\=1 -DFOLLY_USE_LIBCPP\=1 -Wno-comma -Wno-shorten-64-to-32 -include /Users/emesbeedevops/build/workspace/ShiftHero/Mobile\ Applications/shift-hero-ios/ios/Pods/Target\ Support\ Files/react-native-safe-area-context/react-native-safe-area-context-prefix.pch -MMD -MT dependencies -MF /Users/emesbeedevops/Library/Developer/Xcode/DerivedData/ShiftHero-ayoxcdakqwefojfbqxuomrhixkvi/Build/Intermediates.noindex/ArchiveIntermediates/ShiftHero/IntermediateBuildFilesPath/Pods.build/Release-iphoneos/react-native-safe-area-context.build/Objects-normal/arm64/RNCSafeAreaViewMode.d --serialize-diagnostics /Users/emesbeedevops/Library/Developer/Xcode/DerivedData/ShiftHero-ayoxcdakqwefojfbqxuomrhixkvi/Build/Intermediates.noindex/ArchiveIntermediates/ShiftHero/IntermediateBuildFilesPath/Pods.build/Release-iphoneos/react-native-safe-area-context.build/Objects-normal/arm64/RNCSafeAreaViewMode.dia -c /Users/emesbeedevops/build/workspace/ShiftHero/Mobile\ Applications/shift-hero-ios/node_modules/react-native-safe-area-context/ios/RNCSafeAreaViewMode.m -o /Users/emesbeedevops/Library/Developer/Xcode/DerivedData/ShiftHero-ayoxcdakqwefojfbqxuomrhixkvi/Build/Intermediates.noindex/ArchiveIntermediates/ShiftHero/IntermediateBuildFilesPath/Pods.build/Release-iphoneos/react-native-safe-area-context.build/Objects-normal/arm64/RNCSafeAreaViewMode.o�[0m [23:48:48]: ▸ �[35mwarning: Run script build phase 'Start Packager' will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'ShiftHero' from project 'ShiftHero')�[0m [23:48:48]: ▸ �[35mwarning: Run script build phase 'Bundle React Native code and images' will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'ShiftHero' from project 'ShiftHero')�[0m [23:48:48]: [23:48:48]: �[31m⬆️ Check out the few lines of raw xcodebuildoutput above for potential hints on how to solve this error�[0m [23:48:48]: �[33m📋 For the complete and more detailed error log, check the full log at:�[0m [23:48:48]: �[33m📋 /Users/emesbeedevops/Library/Logs/gym/ShiftHero-ShiftHero.log�[0m [23:48:48]: [23:48:48]: �[31mLooks like fastlane ran into a build/archive error with your project�[0m [23:48:48]: �[31mIt's hard to tell what's causing the error, so we wrote some guides on how�[0m [23:48:48]: �[31mto troubleshoot build and signing issues: [https://docs.fastlane.tools/codesigning/getting-started/�[0m](https://docs.fastlane.tools/codesigning/getting-started/%1B[0m) [23:48:48]: �[31mBefore submitting an issue on GitHub, please follow the guide above and make�[0m [23:48:48]: �[31msure your project is set up correctly.�[0m [23:48:48]: �[31mfastlane usesxcodebuild` commands to generate your binary, you can see the�[0m
[23:48:48]: �[31mthe full commands printed out in yellow in the above log.�[0m
[23:48:48]: �[31mMake sure to inspect the output above, as usually you'll find more error information there�[0m
[23:48:48]:
+---------------------+------------------------------------------------------------------------------------------------------------------------------------------+
| �[33mLane Context�[0m |
+---------------------+------------------------------------------------------------------------------------------------------------------------------------------+
| DEFAULT_PLATFORM | ios |
| PLATFORM_NAME | ios |
| LANE_NAME | ios beta |
| CERT_FILE_PATH | /Users/emesbeedevops/build/workspace/ShiftHero/Mobile Applications/shift-hero-ios/ios/MFFMS37LAZ.cer |
| CERT_CERTIFICATE_ID | MFFMS37LAZ |
| SIGH_PROFILE_PATH | /Users/emesbeedevops/build/workspace/ShiftHero/Mobile Applications/shift-hero-ios/ios/AppStore_com.emesbee.ShiftHero.mobileprovision |
| SIGH_PROFILE_PATHS | ["/Users/emesbeedevops/build/workspace/ShiftHero/Mobile Applications/shift-hero-ios/ios/AppStore_com.emesbee.ShiftHero.mobileprovision"] |
| SIGH_UDID | 92517537-98db-4697-ac6f-79987cafc692 |
| SIGH_UUID | 92517537-98db-4697-ac6f-79987cafc692 |
| SIGH_NAME | com.emesbee.ShiftHero AppStore |
| SIGH_PROFILE_TYPE | app-store |
| BUILD_NUMBER | 18 |
| VERSION_NUMBER | 1.0.1 |
+---------------------+------------------------------------------------------------------------------------------------------------------------------------------+
[23:48:48]: �[31mError building the application - see the log above�[0m

+------+------------------------+-------------+
| �[32mfastlane summary�[0m |
+------+------------------------+-------------+
| Step | Action | Time (in s) |
+------+------------------------+-------------+
| 1 | default_platform | 0 |
| 2 | cert | 3 |
| 3 | sigh | 4 |
| 4 | increment_build_number | 4 |
| 5 | get_build_number | 1 |
| 6 | get_version_number | 0 |
| 7 | git_commit | 0 |
| 8 | push_to_git_remote | 1 |
| 💥 | �[31mgym�[0m | 294 |
+------+------------------------+-------------+

[23:48:48]: �[31mfastlane finished with errors�[0m
�[31m`

 [REPLACE THIS WITH YOUR INFORMATION] 

Environment

✅ fastlane environment ✅

Stack

Key Value
OS 13.3.1
Ruby 3.1.4
Bundler? false
Git git version 2.37.1 (Apple Git-137.1)
Installation Source /usr/local/Cellar/fastlane/2.212.2/libexec/bin/fastlane
Host macOS 13.3.1 ((a))
Ruby Lib Dir /usr/local/Cellar/ruby@3.1/3.1.4/lib
OpenSSL Version OpenSSL 3.1.0 14 Mar 2023
Is contained false
Is homebrew true
Is installed via Fabric.app false
Xcode Path ~/Downloads/Xcode.app/Contents/Developer/
Xcode Version 14.2
Swift Version 5.7.2

System Locale

Variable Value
LANG en_US.UTF-8
LC_ALL
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

default_platform(:ios)



platform :ios do
  desc "Push a new beta build to TestFlight"
  lane :beta do
    cert
    sigh(force: true)
    increment_build_number(xcodeproj: "ShiftHero.xcodeproj")
    #increment_version_number(bump_type: "patch")
    git_commit(path: "*", message: "iOS Build Number Bump to: " + get_build_number + " for version: " + get_version_number)
    push_to_git_remote
    gym(scheme: "ShiftHero")
    upload_to_testflight
  end
  desc "Push a new release build to the App Store"
  lane :release do
    cert
    sigh(force: true)
    increment_version_number(bump_type: "patch")
    increment_build_number(xcodeproj: "ShiftHero.xcodeproj")
    git_commit(path: "*", message: "iOS Build Number Bump to: " + get_build_number + " for version: " + get_version_number)
    push_to_git_remote
    gym(scheme: "ShiftHero")
    upload_to_app_store(force: true, skip_metadata: true)
  end
end
`./fastlane/Appfile`
app_identifier("com.emesbee.ShiftHero") # The bundle identifier of your app
apple_id("devops@emesbee.com") # Your Apple Developer Portal username

itc_team_id("126246467") # App Store Connect Team ID
team_id("S37JUZL57K") # Developer Portal Team ID

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

fastlane gems

Gem Version Update-Status
fastlane 2.212.2 ✅ Up-To-Date

Loaded fastlane plugins:

No plugins Loaded

Loaded gems
Gem Version
error_highlight 0.3.0
did_you_mean 1.6.1
atomos 0.1.3
rexml 3.2.5
CFPropertyList 3.0.6
claide 1.1.0
colored2 3.1.2
nanaimo 0.3.0
xcodeproj 1.22.0
rouge 2.0.7
xcpretty 0.3.0
terminal-notifier 2.0.0
unicode-display_width 1.8.0
terminal-table 1.8.0
plist 3.7.0
addressable 2.8.4
multipart-post 2.0.0
word_wrap 1.0.0
optparse 0.1.1
tty-screen 0.8.1
tty-cursor 0.7.1
tty-spinner 0.9.3
artifactory 3.0.15
babosa 1.0.4
colored 1.2
highline 2.0.3
commander 4.6.0
excon 0.99.0
faraday-em_http 1.0.0
faraday-em_synchrony 1.0.0
faraday-excon 1.1.0
faraday-httpclient 1.0.1
faraday-multipart 1.0.4
faraday-net_http 1.0.1
faraday-net_http_persistent 1.2.0
faraday-patron 1.0.0
faraday-rack 1.0.0
faraday-retry 1.0.3
ruby2_keywords 0.0.5
faraday 1.10.3
unf_ext 0.0.8.2
unf 0.1.4
domain_name 0.5.20190701
http-cookie 1.0.5
faraday-cookie_jar 0.0.7
faraday_middleware 1.2.0
fastimage 2.2.6
gh_inspector 1.1.3
mini_magick 4.12.0
naturally 2.2.1
rubyzip 2.3.2
security 0.1.3
xcpretty-travis-formatter 1.0.1
dotenv 2.8.1
bundler 2.4.10
simctl 1.6.10
jwt 2.7.0
uber 0.1.0
declarative 0.0.20
trailblazer-option 0.1.2
representable 3.2.0
retriable 3.1.2
mini_mime 1.1.2
memoist 0.16.2
multi_json 1.15.0
os 1.1.4
signet 0.17.0
googleauth 1.5.2
httpclient 2.8.3
webrick 1.8.1
google-apis-core 0.11.0
google-apis-playcustomapp_v1 0.13.0
google-cloud-env 1.6.0
google-cloud-errors 1.3.1
google-cloud-core 1.6.0
google-apis-iamcredentials_v1 0.17.0
google-apis-storage_v1 0.19.0
rake 13.0.6
digest-crc 0.6.4
google-cloud-storage 1.44.0
emoji_regex 3.2.3
set 1.0.2
public_suffix 5.0.1
json 2.6.3
google-apis-androidpublisher_v3 0.41.0
aws-eventstream 1.2.0
aws-sigv4 1.5.2
aws-partitions 1.758.0
jmespath 1.6.2
aws-sdk-core 3.171.0
aws-sdk-kms 1.64.0
aws-sdk-s3 1.121.0
forwardable 1.3.2
logger 1.5.0
pathname 0.2.0
shellwords 0.1.0
cgi 0.3.6
date 3.2.2
timeout 0.2.0
stringio 3.0.1
securerandom 0.2.0
uri 0.12.1
openssl 3.0.1
digest 3.1.0
io-nonblock 0.1.0
ipaddr 1.2.4
io-wait 0.2.1
zlib 2.1.1
resolv 0.2.1
time 0.2.2
open-uri 0.2.0
mutex_m 0.1.1
net-http 0.3.0
net-protocol 0.1.2
ostruct 0.5.2
english 0.7.1
erb 2.2.3
strscan 3.0.1
abbrev 0.1.0
io-console 0.5.11
tempfile 0.1.2
delegate 0.2.0
fileutils 1.6.0
tmpdir 0.1.2
base64 0.1.1
singleton 0.1.1
open3 0.1.1
nkf 0.1.1
prettyprint 0.1.1
pp 0.3.0
find 0.1.1
yaml 0.2.0
psych 4.0.4

generated on: 2023-05-18

 [REPLACE THIS WITH YOUR INFORMATION] 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant