fastlane: Export Failed - Error Packaging up the application, Rsync failed issues

Issue Description

Every time I try to run fastlane the process halts with: :> ** EXPORT FAILED ** Followed by a: [!] Error packaging up the application

Complete output when running fastlane, including the stack trace and command used
galileo:ventus-ipad administrator$ fastlane beta
[21:34:09]: -------------------------------------------------
[21:34:09]: --- Step: Verifying required fastlane version ---
[21:34:09]: -------------------------------------------------
[21:34:09]: fastlane version valid
[21:34:09]: ------------------------------
[21:34:09]: --- Step: default_platform ---
[21:34:09]: ------------------------------
[21:34:09]: Driving the lane 'ios beta' 🚀
[21:34:09]: -------------------------------------
[21:34:09]: --- Step: ensure_git_status_clean ---
[21:34:09]: -------------------------------------
[21:34:09]: Git status is clean, all good! 💪
[21:34:09]: -----------------------
[21:34:09]: --- Step: cocoapods ---
[21:34:09]: -----------------------
[21:34:09]: $ pod install
[21:34:10]: â–¸ Updating local specs repositories
[21:34:12]: â–¸ CocoaPods 1.0.0.beta.6 is available.
[21:34:12]: â–¸ To update use: `gem install cocoapods --pre`
[21:34:12]: â–¸ [!] This is a test version we'd love you to try.
[21:34:12]: â–¸ For more information see http://blog.cocoapods.org
[21:34:12]: â–¸ and the CHANGELOG for this version http://git.io/BaH8pQ.
[21:34:12]: â–¸ Analyzing dependencies
[21:34:18]: â–¸ Fetching podspec for `ScanAPI` from `../ScanApiSDK-10.2.227`
[21:34:18]: â–¸ Pre-downloading: `TSMessages` from `https://github.com/KrauseFx/TSMessages.git`, commit `f7d0e8cece3ca79852e49807812601e2d89f5719`
[21:34:18]: â–¸ Downloading dependencies
[21:34:18]: â–¸ Installing AFNetworking (2.6.0)
[21:34:18]: â–¸ Installing EasyMapping (0.15.3)
[21:34:18]: â–¸ Installing GRMustache (7.3.2)
[21:34:18]: â–¸ Installing Groot (1.2)
[21:34:18]: â–¸ Installing HexColors (2.3.0)
[21:34:18]: â–¸ Installing InflectorKit (0.0.1)
[21:34:18]: â–¸ Installing JRSwizzle (1.0)
[21:34:18]: â–¸ Installing KVOController (1.0.3)
[21:34:18]: â–¸ Installing MBProgressHUD (0.9.1)
[21:34:18]: â–¸ Installing MurmurHash (0.0.1)
[21:34:18]: â–¸ Installing REMenu (1.10)
[21:34:18]: â–¸ Installing RESideMenu (4.0.7)
[21:34:18]: â–¸ Installing SDWebImage (3.7.3)
[21:34:18]: â–¸ Installing SHSPhoneComponent (2.15)
[21:34:18]: â–¸ Using ScanAPI (10.2.227)
[21:34:18]: â–¸ Installing Socket.IO-Client-Swift (3.1.2)
[21:34:18]: â–¸ Installing TSMessages (0.9.13)
[21:34:18]: â–¸ Installing UIAlertController+Blocks (0.9)
[21:34:18]: â–¸ Generating Pods project
[21:34:22]: â–¸ Integrating client project
[21:34:22]: â–¸ Sending stats
[21:34:22]: â–¸ Pod installation complete! There are 16 dependencies from the Podfile and 18 total pods installed.
[21:34:22]: -------------------
[21:34:22]: --- Step: slack ---
[21:34:22]: -------------------
[21:34:23]: Successfully sent Slack notification
[21:34:23]: -------------------------------
[21:34:23]: --- Step: ensure_git_branch ---
[21:34:23]: -------------------------------
[21:34:23]: Git branch match `develop`, all good! 💪
[21:34:23]: ----------------------
[21:34:23]: --- Step: git_pull ---
[21:34:23]: ----------------------
[21:34:23]: $ git pull && git fetch --tags
[21:34:24]: â–¸ Already up-to-date.
[21:34:25]: ------------------------------------
[21:34:25]: --- Step: increment_build_number ---
[21:34:25]: ------------------------------------
[21:34:25]: $ cd /Users/administrator/Documents/Dev/ventus-ipad && agvtool next-version -all
[21:34:26]: â–¸ Setting version of project Ventus to:
[21:34:26]: â–¸ 120.
[21:34:26]: â–¸ Also setting CFBundleVersion key (assuming it exists)
[21:34:26]: â–¸ Updating CFBundleVersion in Info.plist(s)...
[21:34:26]: â–¸ Updated CFBundleVersion in "Ventus.xcodeproj/../Ventus/Info.plist" to 120
[21:34:26]: â–¸ Updated CFBundleVersion in "Ventus.xcodeproj/../VentusTests/Info.plist" to 120
[21:34:27]: -------------------
[21:34:27]: --- Step: slack ---
[21:34:27]: -------------------
[21:34:27]: Successfully sent Slack notification
[21:34:27]: ------------------
[21:34:27]: --- Step: sigh ---
[21:34:27]: ------------------

+-------------------------------------+-----------------+
|                Summary for sigh 1.6.1                 |
+-------------------------------------+-----------------+
| adhoc                               | false           |
| skip_install                        | false           |
| development                         | false           |
| force                               | false           |
| ignore_profiles_with_different_name | false           |
| skip_fetch_profiles                 | false           |
| skip_certificate_verification       | false           |
+-------------------------------------+-----------------+

[21:34:27]: Starting login with user 'xxxxxx'
[21:34:31]: Successfully logged in
[21:34:31]: Fetching profiles...
[21:34:33]: Certificate for Provisioning Profile 'xx.xxx.xxxxx AppStore' not available locally: XXXXXXXX
[21:34:34]: Found 1 matching profile(s)
[21:34:34]: Downloading provisioning profile...
[21:34:34]: Successfully downloaded provisioning profile...
[21:34:34]: Installing provisioning profile...
/Users/administrator/Documents/Dev/ventus-ipad/AppStore_mx.xxxxx.Vyyyy.mobileprovision
[21:34:35]: Setting Provisioning Profile type to 'app-store'
[21:34:35]: -------------------
[21:34:35]: --- Step: slack ---
[21:34:35]: -------------------
[21:34:35]: Successfully sent Slack notification
[21:34:35]: -----------------
[21:34:35]: --- Step: gym ---
[21:34:35]: -----------------
[21:34:35]: Installing provisioning profile...
[21:34:35]: xcrun xcodebuild -list -workspace './Ventus.xcworkspace'

+---------------------------+----------------------------------------------------------------------+
|                                      Summary for gym 1.6.2                                       |
+---------------------------+----------------------------------------------------------------------+
| scheme                    | Ventus                                                               |
| provisioning_profile_path | /Users/administrator/Documents/Dev/ventus-ipad/Ac.... |
| export_method             | app-store                                                            |
| workspace                 | ./Ventus.xcworkspace                                                 |
| destination               | generic/platform=iOS                                                 |
| output_name               | Ventus                                                               |
| clean                     | false                                                                |
| output_directory          | .                                                                    |
| silent                    | false                                                                |
| use_legacy_build_api      | false                                                                |
| buildlog_path             | ~/Library/Logs/gym                                                   |
+---------------------------+----------------------------------------------------------------------+

[21:34:40]: $ set -o pipefail && xcodebuild -workspace './Ventus.xcworkspace' -scheme 'Ventus' -destination 'generic/platform=iOS' -archivePath '/Users/administrator/Library/Developer/Xcode/Archives/2016-04-10/Ventus 2016-04-10 21.34.40.xcarchive' archive | tee /Users/administrator/Library/.... | xcpretty
[21:34:42]: â–¸ Building Pods/EasyMapping [Release]
[21:34:42]: â–¸ Check Dependencies
[21:34:43]: â–¸ Processing Info.plist
[21:34:43]: â–¸ Compiling EasyMapping-dummy.m
   [OMMITING NORMAL COMPILE OUTPUTS]
[21:39:36]: â–¸ Processing Info.plist
[21:39:36]: â–¸ Generating 'Ventus.app.dSYM'
[21:39:38]: â–¸ Running script 'Copy Pods Resources'
[21:39:39]: â–¸ Running script 'Embed Pods Frameworks'
[21:39:45]: â–¸ Touching Ventus.app
[21:39:52]: â–¸ Signing /Volumes/RAM\ Disk/Ventus-eustmolyrnhnikgicdwokzvmxkbu/Build/Intermediates/ArchiveIntermediates/Ventus/InstallationBuildProductsLocation/Applications/Ventus.app
[21:39:54]: â–¸ Touching Ventus.app.dSYM
[21:39:59]: â–¸ Archive Succeeded
[21:40:01]: Successfully stored the archive. You can find it in the Xcode Organizer.
[21:40:01]: $ /usr/bin/xcrun /Library/Ruby/Gems/2.0.0/gems/gym-1.6.2/lib/assets/wrap_xcodebuild/xcbuild-safe.sh -exportArchive -exportOptionsPlist '/var/folders/_8/gyq8wg7x5cbb9rgb6wqdwrsh0000gp/T/gym20160410-21596-1mbxuft_config.plist' -archivePath '/Users/administrator/Library/Developer/Xcode/Archives/2016-04-10/Ventus 2016-04-10 21.34.40.xcarchive' -exportPath '/var/folders/_8/gyq8wg7x5cbb9rgb6wqdwrsh0000gp/T/gym20160410-21596-1fcrztw.gym_output' 
+ xcodebuild -exportArchive -exportOptionsPlist /var/folders/_8/gyq8wg7x5cbb9rgb6wqdwrsh0000gp/T/gym20160410-21596-1mbxuft_config.plist -archivePath '/Users/administrator/Library/Developer/Xcode/Archives/2016-04-10/Ventus 2016-04-10 21.34.40.xcarchive' -exportPath /var/folders/_8/gyq8wg7x5cbb9rgb6wqdwrsh0000gp/T/gym20160410-21596-1fcrztw.gym_output
2016-04-10 21:40:06.333 xcodebuild[25324:2200506] [MT] IDEDistribution: -[IDEDistributionLogging _createLoggingBundleAtPath:]: Created bundle at path '/var/folders/_8/gyq8wg7x5cbb9rgb6wqdwrsh0000gp/T/Ventus_2016-04-10_21-40-06.322.xcdistributionlogs'.
2016-04-10 21:40:06.760 xcodebuild[25324:2200506] [MT] DeveloperPortal: Using pre-existing current store at URL (file:///Users/administrator/Library/Developer/Xcode/DeveloperPortal%207.3.db).
2016-04-10 21:40:44.848 xcodebuild[25324:2200506] [MT] IDEDistribution: Step failed: <IDEDistributionPackagingStep: 0x7fb1cb04b120>: Error Domain=IDEFoundationErrorDomain Code=1 "Rsync failed" UserInfo={NSLocalizedDescription=Rsync failed}
error: exportArchive: Rsync failed

Error Domain=IDEFoundationErrorDomain Code=1 "Rsync failed" UserInfo={NSLocalizedDescription=Rsync failed}

** EXPORT FAILED **
[21:40:44]: Exit status: 70
[21:40:44]: -------------------
[21:40:44]: --- Step: slack ---
[21:40:44]: -------------------
[21:40:46]: Successfully sent Slack notification
[21:40:46]: ----------------------------
[21:40:46]: --- Step: reset_git_repo ---
[21:40:46]: ----------------------------
[21:40:46]: $ git reset --hard HEAD
[21:40:50]: ▸ HEAD is now at e182ef7 minor [UI] Mejorar diseño de detalle de venta
[21:40:50]: $ git clean -qfdx
[21:40:51]: Git repo was reset and cleaned back to a pristine state.
[21:40:51]: Variable Dump:
[21:40:51]: {:DEFAULT_PLATFORM=>:ios, :PLATFORM_NAME=>:ios, :LANE_NAME=>"ios beta", :GIT_REPO_WAS_CLEAN_ON_START=>true, :BUILD_NUMBER=>"120", :SIGH_PROFILE_PATH=>"/Users/administrator/Documents/Dev/ventus-ipad/AppStore_mx.movic.Ventus.mobileprovision", :SIGH_PROFILE_PATHS=>["/Users/administrator/Documents/Dev/ventus-ipad/AppStore_mx.movic.Ventus.mobileprovision"], :SIGH_UDID=>"863d826f-1db9-4f76-a9e1-76f66fe60057", :SIGH_PROFILE_TYPE=>"app-store"}
[21:40:51]: Error packaging up the application

+------+-------------------------------------+-------------+
|                     fastlane summary                     |
+------+-------------------------------------+-------------+
| Step | Action                              | Time (in s) |
+------+-------------------------------------+-------------+
| 1    | Verifying required fastlane version | 0           |
| 2    | default_platform                    | 0           |
| 3    | ensure_git_status_clean             | 0           |
| 4    | cocoapods                           | 13          |
| 5    | slack                               | 0           |
| 6    | ensure_git_branch                   | 0           |
| 7    | git_pull                            | 2           |
| 8    | increment_build_number              | 1           |
| 9    | slack                               | 0           |
| 10   | sigh                                | 7           |
| 11   | slack                               | 0           |
| 12   | gym                                 | 369         |
| 13   | slack                               | 1           |
| 14   | reset_git_repo                      | 4           |
+------+-------------------------------------+-------------+

[21:40:51]: fastlane finished with errors

[!] Error packaging up the application

Configuration Files

Please copy the complete content of your Fastfile and any other configuration files you use below:

Fastfile:


# =======================[SETUP]=======================
fastlane_version "1.48.0"
default_platform :ios


platform :ios do
  before_all do
    ENV["SLACK_URL"] = "XXXXX"    

    ensure_git_status_clean

    cocoapods

    # xctool # run the tests of your app
  end

# =======================[BETA]=======================
  desc "Submit a new Beta Build to Apple TestFlight"  
  lane :beta do


    slack(
        message: "[Fastlane] Starting GIT Activities (Pull, BuildBump).",
        payload: { 
            'At :' => Time.new.to_s        
        })

    ensure_git_branch(
      branch: 'develop'
    )

    git_pull                

    increment_build_number

  slack(
      message: "[Fastlane] Starting Signing of provisioning profiles.",
      success: true,
    payload: { 
        'At :' => Time.new.to_s        
    })

    sigh

    slack(
        message: "[Fastlane] Building the App (XCODE)",
        success: true,
    payload: { 
        'At :' => Time.new.to_s        
    })

    gym(scheme: "Ventus"        
        ) # Build your app - more options available    

    slack(
        message: "[Fastlane] Delivering app to Testflight servers.",
        success: true,
    payload: { 
        'At :' => Time.new.to_s        
    })

    pilot(distribute_external: true, 
        changelog: 'Misc. bug fixes and improvements throughout the app.'
    ) # Also Distribute to external testers

    slack(
        message: "[Fastlane] Performing final GIT Activities (Commit & Push BuildBump, Reset).",
        success: true,
        payload: { 
        'At :' => Time.new.to_s        
    })


    commit_version_bump(
      message: 'minor [CI] Build Bump'                    # create a commit with a custom message
    )

    push_to_git_remote  

    reset_git_repo

  end



  # ======================= ======================= =========
  # GENERAL HANDLERS
  # ======================= ======================= =========
  # =======================[AFTER ALL]=======================
  after_all do |lane|
    # This block is called, only if the executed lane was successful

     slack(
       message: "Successfully deployed new App Update to TestFlight",
       success: true
     )
  end

  error do |lane, exception|
     slack(
       message: exception.message,
       success: false
     )
  reset_git_repo
  end
end

Environment

fastlane version (fastlane -v): 1.81.0 Do you use bundler, rbenv or rvm? No.

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Comments: 52 (4 by maintainers)

Most upvoted comments

@TKBurner Hi Todd. I noticed that after manually uploading from the organizer in Xcode, iTunes connect was giving back strange errors. After a few retries it was fixed, then Fastlane also worked again. So this must be iTunes Connect related, not Fastlane.