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

gym xcarchive wrong folder name format #21021

Open
NikKovIos opened this issue Feb 2, 2023 · 5 comments
Open

gym xcarchive wrong folder name format #21021

NikKovIos opened this issue Feb 2, 2023 · 5 comments

Comments

@NikKovIos
Copy link

I use gym to make an xcarchive and then upload in to testflight.

Fastlane generate a default path for this archive:
-archivePath | | | /Users/xxx/Library/Developer/Xcode/Archives/2023-02-02/XXX\ ||| 2023-02-02\ 13.30.00.xcarchive

So the format is XXX 2023-02-02 13.30.00.xcarchive.

But in new Xcode (Version 14.2 (14C18)) the organizer reads the archives with format XXX 27.01.2023, 18.56.xcarchive otherwise this archive is not visible in Xcode Organizer.

Please change the default format to make Xcode see archives generated by gym!

Fastlane version 2.211.0
Installing via Bundler

@fastlane-bot
Copy link

It seems like you have not included the output of fastlane env
To make it easier for us help you resolve this issue, please update the issue to include the output of fastlane env 👍

@NikKovIos
Copy link
Author

✅ fastlane environment ✅

Stack

Key Value
OS 13.1
Ruby 2.6.0
Bundler? true
Git git version 2.37.1 (Apple Git-137.1)
Installation Source ~/.rvm/gems/ruby-2.6.0/bin/fastlane
Host macOS 13.1 (22C65)
Ruby Lib Dir ~/.rvm/rubies/ruby-2.6.0/lib
OpenSSL Version OpenSSL 1.1.1b 26 Feb 2019
Is contained false
Is homebrew false
Is installed via Fabric.app false
Xcode Path /Applications/Xcode.app/Contents/Developer/
Xcode Version 14.2
Swift Version 5.7.2

System Locale

Variable Value
LANG ru_RU.UTF-8
LC_ALL
LANGUAGE

fastlane gems

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

Loaded fastlane plugins:

Plugin Version Update-Status
fastlane-plugin-telegram 0.1.4 ✅ Up-To-Date
fastlane-plugin-xcconfig 2.0.0 ✅ Up-To-Date
Loaded gems
Gem Version
did_you_mean 1.6.3
bundler 2.3.12
rake 13.0.6
rexml 3.2.5
CFPropertyList 3.0.6
concurrent-ruby 1.1.10
i18n 1.12.0
minitest 5.16.2
tzinfo 2.0.5
zeitwerk 2.6.0
activesupport 6.1.6.1
public_suffix 4.0.7
addressable 2.8.1
httpclient 2.8.3
json 2.6.3
algoliasearch 1.27.5
artifactory 3.0.15
atomos 0.1.3
aws-eventstream 1.2.0
aws-partitions 1.703.0
aws-sigv4 1.5.2
jmespath 1.6.2
aws-sdk-core 3.170.0
aws-sdk-kms 1.62.0
aws-sdk-s3 1.119.0
babosa 1.0.4
claide 1.1.0
fuzzy_match 2.0.4
nap 1.1.0
netrc 0.11.0
ffi 1.15.5
ethon 0.15.0
typhoeus 1.4.0
cocoapods-core 1.11.3
cocoapods-deintegrate 1.0.5
cocoapods-downloader 1.6.3
cocoapods-plugins 1.0.0
cocoapods-search 1.0.1
cocoapods-trunk 1.6.0
cocoapods-try 1.2.0
colored2 3.1.2
escape 0.0.4
fourflusher 2.3.1
gh_inspector 1.1.3
molinillo 0.8.0
ruby-macho 2.5.1
nanaimo 0.3.0
xcodeproj 1.22.0
cocoapods 1.11.3
colored 1.2
highline 2.0.3
commander 4.6.0
declarative 0.0.20
digest-crc 0.6.4
unf_ext 0.0.8.2
unf 0.1.4
domain_name 0.5.20190701
dotenv 2.8.1
emoji_regex 3.2.3
excon 0.98.0
faraday-em_http 1.0.0
faraday-em_synchrony 1.0.0
faraday-excon 1.1.0
faraday-httpclient 1.0.1
multipart-post 2.0.0
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
http-cookie 1.0.5
faraday-cookie_jar 0.0.7
faraday_middleware 1.2.0
fastimage 2.2.6
jwt 2.7.0
memoist 0.16.2
multi_json 1.15.0
os 1.1.4
signet 0.17.0
googleauth 1.3.0
mini_mime 1.1.2
trailblazer-option 0.1.2
uber 0.1.0
representable 3.2.0
retriable 3.1.2
webrick 1.8.1
google-apis-core 0.10.0
google-apis-androidpublisher_v3 0.33.0
google-apis-playcustomapp_v1 0.12.0
google-apis-iamcredentials_v1 0.16.0
google-apis-storage_v1 0.19.0
google-cloud-env 1.6.0
google-cloud-errors 1.3.0
google-cloud-core 1.6.0
google-cloud-storage 1.44.0
mini_magick 4.12.0
naturally 2.2.1
optparse 0.1.1
plist 3.6.0
rubyzip 2.3.2
security 0.1.3
simctl 1.6.10
terminal-notifier 2.0.0
unicode-display_width 1.8.0
terminal-table 1.8.0
tty-screen 0.8.1
tty-cursor 0.7.1
tty-spinner 0.9.3
word_wrap 1.0.0
rouge 2.0.7
xcpretty 0.3.0
xcpretty-travis-formatter 1.0.1
fastlane-plugin-telegram 0.1.4
fastlane-plugin-xcconfig 2.0.0
http-accept 1.7.0
mime-types-data 3.2022.0105
mime-types 3.4.1
rest-client 2.1.0

generated on: 2023-02-02

@testableapple
Copy link
Contributor

Hi @NikKovIos,

From my point of view, the naming convention does not make any difference here. The default fastlane pattern is Time.now.strftime("%F %H.%M.%S"), the new Xcode pattern is something like Time.now.strftime("%-m-%-d-%y, %-I.%M %p"). I tested both and either works as expected and is treated by Xcode 14.2.0 like a proper xcarchive.

Feel free to test this locally by:

  1. Cloning fastlane repo
  2. Updating the strftime pattern in build_command_generator.rb
  3. Importing fastlane to your project from the source code (gem 'fastlane', path: 'path/to/fastlane/folder/')
  4. Running gym action with skip_archive: false option

Hope this helps.

@NikKovIos
Copy link
Author

On the my end only new folder naming is visible in xcode organizer. I think we need another opinions.
Just to think - would xcode support two folder name patterns or only one. I think apple would support only one pattern.

@testableapple
Copy link
Contributor

Just to confirm that we are on the same page - is this something that does not work for you?:

Screen.Recording.2023-03-03.at.8.13.05.AM.mov

In Finder you can see ChatSample 3-2-23, 9.43 PM.xcarchive and ChatSample 2023-03-02 21.45.59.xcarchive that were both generated via fastlane and both are visible in Xcode. Even after renaming one of the files, it's still available to Xcode.

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

3 participants