fastlane: error: exportArchive: The data couldn’t be read because it isn’t in the correct format
Question Description:
Im doing only 2 lanes for now (will implement a third one when this gets to work), so if i try the betaTestflight lane it works normally, no issues, but when i try the beta lane, it keeps saying the following message, this is a Second project that only has a Label on it, because on my main project i was getting the same error, but it took longer to build thats why i decided to go with a simple one,
Hope that someone can help…
Thanks a lot.
Question 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
Fastlane Gym
No
[10:53:30]: Generated plist file with the following values:
[10:53:30]: ▸ -----------------------------------------
[10:53:30]: ▸ {
[10:53:30]: ▸ "provisioningProfiles": {
[10:53:30]: ▸ "com.imxn.Fastlane-Dev": "match Development com.imxn.Fastlane-Dev"
[10:53:30]: ▸ },
[10:53:30]: ▸ "method": "development",
[10:53:30]: ▸ "signingStyle": "manual"
[10:53:30]: ▸ }
[10:53:30]: ▸ -----------------------------------------
[10:53:30]: $ /usr/bin/xcrun /Users/mxnmike/.rvm/gems/ruby-2.6.3/gems/fastlane-2.127.0/gym/lib/assets/wrap_xcodebuild/xcbuild-safe.sh -exportArchive -exportOptionsPlist '/var/folders/rc/_dsryxmx5tz2l7h9rc9xqqc80000gn/T/gym_config20190710-70976-1l9c24k.plist' -archivePath /Users/mxnmike/Library/Developer/Xcode/Archives/2019-07-10/Fastlane\ Dev\ 2019-07-10\ 10.53.15.xcarchive -exportPath '/var/folders/rc/_dsryxmx5tz2l7h9rc9xqqc80000gn/T/gym_output20190710-70976-9iukab'
RVM detected, forcing to use system ruby
Now using system ruby.
+ xcodebuild -exportArchive -exportOptionsPlist /var/folders/rc/_dsryxmx5tz2l7h9rc9xqqc80000gn/T/gym_config20190710-70976-1l9c24k.plist -archivePath '/Users/mxnmike/Library/Developer/Xcode/Archives/2019-07-10/Fastlane Dev 2019-07-10 10.53.15.xcarchive' -exportPath /var/folders/rc/_dsryxmx5tz2l7h9rc9xqqc80000gn/T/gym_output20190710-70976-9iukab
2019-07-10 10:53:31.367 xcodebuild[71361:4395732] [MT] IDEDistribution: -[IDEDistributionLogging _createLoggingBundleAtPath:]: Created bundle at path '/var/folders/rc/_dsryxmx5tz2l7h9rc9xqqc80000gn/T/Fastlane - Dev_2019-07-10_10-53-31.367.xcdistributionlogs'.
error: exportArchive: The data couldn’t be read because it isn’t in the correct format.
Error Domain=NSCocoaErrorDomain Code=3840 "No value." UserInfo={NSDebugDescription=No value., NSFilePath=/var/folders/rc/_dsryxmx5tz2l7h9rc9xqqc80000gn/T/ipatool-json-filepath-~~~M5QqjP}
** EXPORT FAILED **
[10:53:31]: Exit status: 70 ```
🚫 fastlane environment 🚫
Stack
| Key | Value |
|---|---|
| OS | 10.14.5 |
| Ruby | 2.6.3 |
| Bundler? | true |
| Git | git version 2.20.1 (Apple Git-117) |
| Installation Source | ~/.rvm/gems/ruby-2.6.3/bin/fastlane |
| Host | Mac OS X 10.14.5 (18F203) |
| Ruby Lib Dir | ~/.rvm/rubies/ruby-2.6.3/lib |
| OpenSSL Version | OpenSSL 1.1.1c 28 May 2019 |
| Is contained | false |
| Is homebrew | false |
| Is installed via Fabric.app | false |
| Xcode Path | /Applications/Xcode.app/Contents/Developer/ |
| Xcode Version | 10.2.1 |
System Locale
| Error |
|---|
| No Locale with UTF8 found 🚫 |
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 :betaTestflight do
match(type: "appstore", app_identifier: "com.imxn.Fastlane-Prod")
gym(scheme: "Fastlane",
clean: true,
configuration: "AppStore",
include_symbols: true,
include_bitcode: false,
export_method: "app-store",
)
upload_to_testflight
end
desc "Send a build to Fabric for our Beta testers"
lane :beta do
match(type: "development", app_identifier: "com.imxn.Fastlane-Dev")
gym(scheme: "Fastlane - Dev",
configuration: "Dev",
export_method: "development",
clean: true,
include_symbols: true,
include_bitcode: false,)
crashlytics(api_token: "TOKEN", build_secret: "SECRET")
end
end
`./fastlane/Appfile`
# app_identifier("[[APP_IDENTIFIER]]") # The bundle identifier of your app
apple_id("myemail") # Your Apple email address
itc_team_id("TEAMID") # App Store Connect Team ID
team_id("TEAMID") # 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.127.0 | ✅ Up-To-Date |
Loaded fastlane plugins:
No plugins Loaded
Loaded gems
| Gem | Version |
|---|---|
| did_you_mean | 1.3.0 |
| executable-hooks | 1.6.0 |
| bundler-unload | 1.0.2 |
| rubygems-bundler | 1.4.5 |
| bundler | 1.17.3 |
| etc | 1.0.1 |
| forwardable | 1.2.0 |
| CFPropertyList | 3.0.0 |
| public_suffix | 2.0.5 |
| addressable | 2.6.0 |
| atomos | 0.1.3 |
| babosa | 1.0.2 |
| claide | 1.0.2 |
| colored | 1.2 |
| colored2 | 3.1.2 |
| highline | 1.7.10 |
| commander-fastlane | 4.4.6 |
| declarative | 0.0.10 |
| declarative-option | 0.1.0 |
| digest-crc | 0.4.1 |
| unf_ext | 0.0.7.6 |
| unf | 0.1.4 |
| domain_name | 0.5.20190701 |
| dotenv | 2.7.4 |
| emoji_regex | 1.0.1 |
| excon | 0.64.0 |
| multipart-post | 2.0.0 |
| faraday | 0.15.4 |
| http-cookie | 1.0.3 |
| faraday-cookie_jar | 0.0.6 |
| faraday_middleware | 0.13.1 |
| fastimage | 2.1.5 |
| gh_inspector | 1.1.3 |
| jwt | 2.1.0 |
| memoist | 0.16.0 |
| multi_json | 1.13.1 |
| os | 1.0.1 |
| signet | 0.11.0 |
| googleauth | 0.6.7 |
| httpclient | 2.8.3 |
| mime-types-data | 3.2019.0331 |
| mime-types | 3.2.2 |
| uber | 0.1.0 |
| representable | 3.0.4 |
| retriable | 3.1.2 |
| google-api-client | 0.23.9 |
| google-cloud-env | 1.2.0 |
| google-cloud-core | 1.3.0 |
| google-cloud-storage | 1.16.0 |
| json | 2.2.0 |
| mini_magick | 4.5.1 |
| multi_xml | 0.6.0 |
| plist | 3.5.0 |
| rubyzip | 1.2.3 |
| security | 0.1.3 |
| naturally | 2.2.0 |
| simctl | 1.6.5 |
| slack-notifier | 2.3.2 |
| terminal-notifier | 2.0.0 |
| unicode-display_width | 1.6.0 |
| terminal-table | 1.8.0 |
| tty-screen | 0.7.0 |
| tty-cursor | 0.7.0 |
| tty-spinner | 0.9.1 |
| word_wrap | 1.0.0 |
| nanaimo | 0.2.6 |
| xcodeproj | 1.11.0 |
| rouge | 2.0.7 |
| xcpretty | 0.3.0 |
| xcpretty-travis-formatter | 1.0.0 |
generated on: 2019-07-10
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 20 (9 by maintainers)
Well, after all the struggles we had, I ended up formatting, and this fixed my problem, I don’t know what environment bug I had, but this worked… Thanks.