fastlane: Pilot error when uploading
New Issue Checklist
- Updated fastlane to the latest version
- I have read the Contribution Guidelines
Issue Description
Pilot upload is failing without descriptive error.
Complete output when running fastlane, including the stack trace and command used
Using /Users/iosbuilder/.rvm/gems/ruby-2.3.1
Using i18n 0.7.0
Using json 1.8.3
Using minitest 5.9.1
Using thread_safe 0.3.5
Using addressable 2.4.0
Using babosa 1.0.2
Using colored 1.2
Using highline 1.7.8
Using security 0.1.3
Using excon 0.53.0
Using gh_inspector 1.0.2
Using multi_json 1.12.1
Using plist 3.1.0
Using rubyzip 1.1.7
Using terminal-table 1.4.5
Using multipart-post 2.0.0
Using unf_ext 0.0.7.2
Using multi_xml 0.5.5
Using claide 1.0.0
Using fuzzy_match 2.0.4
Using nap 1.1.0
Using cocoapods-deintegrate 1.0.1
Using cocoapods-downloader 1.1.1
Using cocoapods-search 1.0.0
Using cocoapods-stats 1.0.0
Using netrc 0.7.8
Using cocoapods-try 1.1.0
Using escape 0.0.4
Using fourflusher 0.3.2
Using molinillo 0.4.5
Using dotenv 2.1.1
Using bundler 1.13.2
Using mini_magick 4.5.1
Using rouge 1.11.1
Using net-ssh 3.2.0
Using slack-notifier 1.5.1
Using jwt 1.5.6
Using little-plugger 1.1.4
Using memoist 0.15.0
Using os 0.9.6
Using httpclient 2.8.2.4
Using hurley 0.2
Using mime-types-data 3.2016.0521
Using uber 0.0.15
Using retriable 2.1.0
Using terminal-notifier 1.6.3
Using word_wrap 1.0.0
Using ocunit2junit 1.5.1 from http://github.com/Sarkazein/OCUnit2JUnit.git (at master@3e26c4d)
Using tzinfo 1.2.2
Using fastimage 1.6.8
Using commander 4.4.0
Using faraday 0.9.2
Using unf 0.1.4
Using cocoapods-plugins 1.0.0
Using cocoapods-trunk 1.0.0
Using xcpretty 0.2.3
Using net-sftp 2.1.2
Using logging 2.1.0
Using mime-types 3.1
Using representable 2.3.0
Using activesupport 4.2.7.1
Using credentials_manager 0.16.1
Using faraday_middleware 0.10.0
Using signet 0.7.3
Using domain_name 0.5.20160826
Using xcpretty-travis-formatter 0.0.4
Using cocoapods-core 1.0.1
Using xcodeproj 1.3.1
Using fastlane_core 0.52.1
Using krausefx-shenzhen 0.14.10
Using googleauth 0.5.1
Using http-cookie 1.0.3
Using cocoapods 1.0.1
Using gym 1.11.0
Using scan 0.13.1
Using screengrab 0.5.4
Using snapshot 1.16.2
Using google-api-client 0.9.15
Using faraday-cookie_jar 0.0.6
Using supply 0.7.1
Using spaceship 0.34.3
Using cert 1.4.3
Using deliver 1.14.1
Using sigh 1.11.2
Using pem 1.3.2
Using pilot 1.10.1
Using produce 1.2.1
Using xcode-install 2.0.7
Using frameit 2.8.0
Using match 0.8.1
Using fastlane 1.105.0
Bundle complete! 3 Gemfile dependencies, 91 gems now installed.
Use `bundle show [gemname]` to see where a bundled gem is installed.
[13:14:33]: ---------------------------
[13:14:33]: --- Step: opt_out_usage ---
[13:14:33]: ---------------------------
[13:14:33]: Disabled upload of used actions
[13:14:33]: -------------------------------------------------
[13:14:33]: --- Step: Verifying required fastlane version ---
[13:14:33]: -------------------------------------------------
[13:14:33]: Your fastlane version 1.105.0 matches the minimum requirement of 1.104.0 ✅
[13:14:33]: ------------------------------
[13:14:33]: --- Step: default_platform ---
[13:14:33]: ------------------------------
[13:14:33]: Driving the lane 'ios beta' 🚀
[13:14:33]: -----------------------
[13:14:33]: --- Step: cocoapods ---
[13:14:33]: -----------------------
[13:14:33]: $ bundle exec pod install
[13:14:36]: ▸ Analyzing dependencies
[13:14:36]: ▸ Downloading dependencies
[13:14:36]: ▸ Using AFNetworking (2.5.4)
[13:14:36]: ▸ Using BKMoneyKit (0.0.7)
[13:14:36]: ▸ Using CocoaLumberjack (1.8.1)
[13:14:36]: ▸ Using CupertinoYankee (1.0.2)
[13:14:36]: ▸ Using Flannel (1.0.1)
[13:14:36]: ▸ Using GoogleAnalytics (3.14.0)
[13:14:36]: ▸ Using KIF (3.4.2)
[13:14:36]: ▸ Using KeychainItemWrapper (1.2)
[13:14:36]: ▸ Using MBProgressHUD (0.9.2)
[13:14:36]: ▸ Using Mantle (1.5.7)
[13:14:36]: ▸ Using NewRelicAgent (5.5.1)
[13:14:36]: ▸ Using OCHamcrest (4.3.0)
[13:14:36]: ▸ Using OCMock (3.0.2)
[13:14:36]: ▸ Using OCMockito (1.3.1)
[13:14:36]: ▸ Using Overcoat (2.0.2)
[13:14:36]: ▸ Using SDWebImage (3.7.1)
[13:14:36]: ▸ Using SWTableViewCell (0.3.7)
[13:14:36]: ▸ Using ThunderCats (2.0.1)
[13:14:36]: ▸ Generating Pods project
[13:14:39]: ▸ Integrating client project
[13:14:39]: ▸ Pod installation complete! There are 16 dependencies from the Podfile and 18 total pods installed.
[13:14:39]: -------------------------------
[13:14:39]: --- Step: number_of_commits ---
[13:14:39]: -------------------------------
[13:14:39]: $ git rev-parse HEAD
[13:14:39]: ▸ 181e08fa5ff21b0fa0b5c15691d72f7b8e2fe241
[13:14:39]: $ git rev-list HEAD --count
[13:14:39]: ▸ 965
[13:14:39]: ----------------------------------
[13:14:39]: --- Step: set_info_plist_value ---
[13:14:39]: ----------------------------------
[13:14:39]: ----------------------------------
[13:14:39]: --- Step: get_info_plist_value ---
[13:14:39]: ----------------------------------
[13:14:39]: -----------------------------
[13:14:39]: --- Step: last_git_commit ---
[13:14:39]: -----------------------------
[13:14:39]: -----------------------------------------
[13:14:39]: --- Step: update_project_provisioning ---
[13:14:39]: -----------------------------------------
[13:14:39]: You’re updating provisioning profiles directly in your project, but have you considered easier ways to do code signing?
[13:14:39]: https://docs.fastlane.tools/codesigning/GettingStarted/
[13:14:39]: Parsing mobile provisioning profile from '/Users/iosbuilder/Projects/TestFlight2.mobileprovision'
[13:14:39]: Going to update project './XXX.xcodeproj' with UUID
[13:14:39]: Updating target XXX...
[13:14:39]: Updating configuration Debug...
[13:14:39]: Skipping configuration Release as it doesn't match the filter 'Debug'
[13:14:39]: Updating target XXXTests...
[13:14:39]: Updating configuration Debug...
[13:14:39]: Skipping configuration Release as it doesn't match the filter 'Debug'
[13:14:39]: Updating target XXXTests...
[13:14:39]: Updating configuration Debug...
[13:14:39]: Skipping configuration Release as it doesn't match the filter 'Debug'
[13:14:40]: Successfully updated project settings in'./XXX.xcodeproj'
[13:14:40]: -----------------
[13:14:40]: --- Step: gym ---
[13:14:40]: -----------------
[13:14:40]: $ xcodebuild -list -workspace ./XXX.xcworkspace
[13:14:41]: $ xcodebuild clean -showBuildSettings -workspace ./XXX.xcworkspace -scheme XXX
+----------------------+-------------------------------------------------------+
| Summary for gym 1.11.0 |
+----------------------+-------------------------------------------------------+
| output_directory | /Users/iosbuilder/Projects/Builds/ |
| output_name | XXX_16.3.2_965 |
| scheme | XXX |
| codesigning_identity | iPhone Distribution: XXX, Inc. (TeamID) |
| configuration | Debug |
| clean | true |
| include_symbols | true |
| include_bitcode | true |
| workspace | ./XXX.xcworkspace |
| destination | generic/platform=iOS |
| silent | false |
| use_legacy_build_api | false |
| buildlog_path | ~/Library/Logs/gym |
+----------------------+-------------------------------------------------------+
[13:14:42]: $ set -o pipefail && xcodebuild -workspace ./XXX.xcworkspace -scheme XXX -configuration 'Debug' -destination 'generic/platform=iOS' -archivePath /Users/iosbuilder/Library/Developer/Xcode/Archives/2016-10-07/XXX_16.3.2_965\ 2016-10-07\ 13.14.42.xcarchive clean archive CODE_SIGN_IDENTITY=iPhone\ Distribution:\ XXX\,\ Inc.\ \(TeamID\) | tee /Users/iosbuilder/Library/Logs/gym/XXX-XXX.log | xcpretty --no-color
[13:14:44]: ▸ Cleaning Pods/CocoaLumberjack [Debug]
[13:14:44]: ▸ Check Dependencies
[13:14:44]: ▸ Cleaning Pods/CupertinoYankee [Debug]
[13:14:44]: ▸ Check Dependencies
[13:14:44]: ▸ Cleaning Pods/BKMoneyKit-BKMoneyKit [Debug]
[13:14:44]: ▸ Check Dependencies
[13:14:44]: ▸ Cleaning Pods/AFNetworking [Debug]
[13:14:44]: ▸ Check Dependencies
[13:14:44]: ▸ Cleaning Pods/BKMoneyKit [Debug]
[13:14:44]: ▸ Check Dependencies
[13:14:44]: ▸ Cleaning Pods/Flannel [Debug]
[13:14:44]: ▸ Check Dependencies
[13:14:44]: ▸ Cleaning Pods/MBProgressHUD [Debug]
[13:14:44]: ▸ Check Dependencies
[13:14:44]: ▸ Cleaning Pods/KeychainItemWrapper [Debug]
[13:14:44]: ▸ Check Dependencies
[13:14:44]: ▸ Cleaning Pods/Mantle [Debug]
[13:14:44]: ▸ Check Dependencies
[13:14:44]: ▸ Cleaning Pods/SDWebImage [Debug]
[13:14:44]: ▸ Check Dependencies
[13:14:44]: ▸ Cleaning Pods/SWTableViewCell [Debug]
[13:14:44]: ▸ Check Dependencies
[13:14:44]: ▸ Cleaning Pods/ThunderCats [Debug]
[13:14:44]: ▸ Check Dependencies
[13:14:44]: ▸ Cleaning Pods/Overcoat [Debug]
[13:14:44]: ▸ Check Dependencies
[13:14:44]: ▸ Cleaning Pods/Pods-XXX [Debug]
[13:14:44]: ▸ Check Dependencies
[13:14:44]: ▸ Cleaning XXX/XXX [Debug]
[13:14:44]: ▸ Check Dependencies
[13:14:47]: ▸ Clean Succeeded
[13:14:48]: ▸ Building Pods/AFNetworking [Debug]
[13:14:48]: ▸ Check Dependencies
.
.
.
.... giant pile of compilation
.
.
.
[13:16:05]: ▸ Processing XXX-iOS-Info.plist
[13:16:05]: ▸ Generating 'XXX.app.dSYM'
[13:16:08]: ▸ Running script 'Run Script'
[13:16:09]: ▸ Running script 'Run Script'
[13:16:10]: ▸ Running script '[CP] Embed Pods Frameworks'
[13:16:10]: ▸ Running script '[CP] Copy Pods Resources'
[13:16:11]: ▸ Touching XXX.app
[13:16:17]: ▸ Signing /Users/iosbuilder/Library/Developer/Xcode/DerivedData/XXX-bzsulovqvxjpsibgvfjxqgwhszyg/Build/Intermediates/ArchiveIntermediates/XXX/InstallationBuildProductsLocation/Applications/XXX.app
[13:16:17]: ▸ Touching XXX.app.dSYM
[13:16:19]: ▸ Archive Succeeded
[13:16:19]: $ /usr/bin/xcrun /Users/iosbuilder/.rvm/gems/ruby-2.3.1/gems/gym-1.11.0/lib/assets/wrap_xcodebuild/xcbuild-safe.sh -exportArchive -exportOptionsPlist '/var/folders/01/630bclhs6sgfs_jhxbszqrn00000gn/T/gym_config20161007-52040-14n0z8q.plist' -archivePath /Users/iosbuilder/Library/Developer/Xcode/Archives/2016-10-07/XXX_16.3.2_965\ 2016-10-07\ 13.14.42.xcarchive -exportPath '/var/folders/01/630bclhs6sgfs_jhxbszqrn00000gn/T/gym_output20161007-52040-y4mwi1'
[13:16:54]: Compressing 1 dSYM(s)
[13:16:54]: $ cd '/Users/iosbuilder/Library/Developer/Xcode/Archives/2016-10-07/XXX_16.3.2_965 2016-10-07 13.14.42.xcarchive/dSYMs' && zip -r '/Users/iosbuilder/Projects/Builds/XXX_16.3.2_965.app.dSYM.zip' *.dSYM
[13:16:55]: ▸ adding: XXX.app.dSYM/ (stored 0%)
[13:16:55]: ▸ adding: XXX.app.dSYM/Contents/ (stored 0%)
[13:16:55]: ▸ adding: XXX.app.dSYM/Contents/Info.plist (deflated 51%)
[13:16:55]: ▸ adding: XXX.app.dSYM/Contents/Resources/ (stored 0%)
[13:16:55]: ▸ adding: XXX.app.dSYM/Contents/Resources/DWARF/ (stored 0%)
[13:16:55]: ▸ adding: XXX.app.dSYM/Contents/Resources/DWARF/XXX (deflated 72%)
[13:16:55]: Successfully exported and compressed dSYM file
[13:16:55]: Successfully exported and signed the ipa file:
[13:16:55]: /Users/iosbuilder/Projects/Builds/XXX_16.3.2_965.ipa
[13:16:55]: -------------------
[13:16:55]: --- Step: pilot ---
[13:16:55]: -------------------
[13:16:55]: Login to iTunes Connect (iosbuilder@XXX.com)
[13:16:57]: Login successful
[13:16:58]: Ready to upload new build to TestFlight (App: AppID)...
[13:16:59]: Going to upload updated app to iTunes Connect
[13:16:59]: This might take a few minutes. Please don't interrupt the script.
[13:17:00]: The call to the iTMSTransporter completed with a non-zero exit status: 1. This indicates a failure.
[13:17:00]: Variable Dump:
[13:17:00]: {:DEFAULT_PLATFORM=>:ios, :PLATFORM_NAME=>:ios, :LANE_NAME=>"ios beta", :GET_INFO_PLIST_VALUE_CUSTOM_VALUE=>"16.3.2", :IPA_OUTPUT_PATH=>"/Users/iosbuilder/Projects/Builds/XXX_16.3.2_965.ipa", :DSYM_OUTPUT_PATH=>"/Users/iosbuilder/Projects/Builds/XXX_16.3.2_965.app.dSYM.zip", :XCODEBUILD_ARCHIVE=>"/Users/iosbuilder/Library/Developer/Xcode/Archives/2016-10-07/XXX_16.3.2_965 2016-10-07 13.14.42.xcarchive"}
[13:17:00]: Error uploading ipa file, for more information see above
+------+-------------------------------------+-------------+
| fastlane summary |
+------+-------------------------------------+-------------+
| Step | Action | Time (in s) |
+------+-------------------------------------+-------------+
| 1 | opt_out_usage | 0 |
| 2 | Verifying required fastlane version | 0 |
| 3 | default_platform | 0 |
| 4 | cocoapods | 6 |
| 5 | number_of_commits | 0 |
| 6 | set_info_plist_value | 0 |
| 7 | get_info_plist_value | 0 |
| 8 | last_git_commit | 0 |
| 9 | update_project_provisioning | 1 |
| 10 | gym | 134 |
| 💥 | pilot | 5 |
+------+-------------------------------------+-------------+
[13:17:00]: fastlane finished with errors
[!] Error uploading ipa file, for more information see above
/var/folders/01/630bclhs6sgfs_jhxbszqrn00000gn/T/8A07257C-4F43-41DD-8873-6DFB2BF63615-20110-0000A3CC6DD092A6: line 16: shell_session_update: command not found
Configuration Files
Please copy the complete content of your Fastfile
and any other configuration files you use below:
Fastfile:
# fastlane reports which actions are used
# No personal data is recorded. Learn more at https://github.com/fastlane/enhancer
# opt out of this behavior
opt_out_usage
# This is the minimum version number required.
fastlane_version "1.104.0"
default_platform :ios
platform :ios do
before_all do
ENV["SLACK_URL"] = "https://hooks.slack.com/services/"
cocoapods
end
desc "Runs all the tests"
lane :test do
scan
end
def last_commit_message
commit = last_git_commit
message = commit[:message]
author = commit[:author] # author of the commit
hash = commit[:commit_hash] # long sha of commit
short_hash = commit[:abbreviated_commit_hash] # short sha of commit
return message
end
################ Lanes
desc "Submit a new Beta Build to Apple TestFlight"
desc "This will also make sure the profile is up to date"
lane :beta do
plist_file = "./XXX/XXX-iOS-Info.plist"
provisioning_profile = "/Users/iosbuilder/Projects/TestFlight2.mobileprovision"
build_number = number_of_commits
set_info_plist_value(
path: plist_file,
key: 'CFBundleVersion',
value: build_number
)
version_number = get_info_plist_value(
path: plist_file,
key: 'CFBundleShortVersionString',
)
change_log = last_commit_message
signed_ipa = "XXX#{version_number}_#{build_number}.ipa"
build_dir = "/Users/iosbuilder/Projects/Builds/"
update_project_provisioning(
xcodeproj: "./XXX.xcodeproj",
profile: provisioning_profile,
build_configuration: "Debug"
)
gym(
output_directory: build_dir,
output_name: signed_ipa,
scheme: "XXX",
codesigning_identity: "iPhone Distribution: XXX, Inc. (TeamID)",
configuration: "Debug",
clean: true,
include_symbols: true,
include_bitcode: true
)
pilot(
changelog: change_log,
ipa: "#{build_dir}#{signed_ipa}",
wait_processing_interval: 30
)
slack(
message: "iOS TestFlight build #{version_number}.#{build_number} available.",
payload: [
"Version": version_number,
"Build Number": build_number,
"IPA": signed_ipa
],
default_payloads: [:lane, :git_branch, :git_author]
)
end
desc "Deploy a new version to the App Store"
lane :release do
end
after_all do |lane|
#slack(
# message: "Successfully deployed new TestFlight."
#)
end
error do |lane, exception|
# slack(
# message: exception.message,
# success: false
# )
end
end
Environment
fastlane version (run fastlane -v
):
fastlane 1.105.0
Do you use bundler to execute fastlane (i.e. bundle exec fastlane
)?
Yes- invoked via Xcode Server Bot
Bundler version 1.13.2
Do you use a Ruby environment manager (e.g. chruby
, rbenv
, rvm
)?
RVM- 1.27.0
Ruby 2.3.1p112
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 23 (2 by maintainers)
Alright, we’ll see what we need to do to not use automatic/override the provisioning UUID… I wasn’t a fan of this to begin with, but it seemed to actually work lol. I think we were having other code signing issues with XCS though, and hopefully can work through them now.
Thanks again for your help.