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

ArgumentError: [!] same file #17365

Closed
AndreVasilev opened this issue Oct 2, 2020 · 8 comments · Fixed by #17397
Closed

ArgumentError: [!] same file #17365

AndreVasilev opened this issue Oct 2, 2020 · 8 comments · Fixed by #17397

Comments

@AndreVasilev
Copy link

AndreVasilev commented Oct 2, 2020

Issue Description

Just after updating to Xcode 12 and Fastlane 2.162 my builds started to fail
Projects with Bundle name in Russian fails, but projects with English bundle names are ok. Seems to be the main reason of the issue.

Command executed

build_app(scheme: "myscheme")

Complete output when running fastlane, including the stack trace and command used
bundler: failed to load command: fastlane (/usr/local/bin/fastlane)
ArgumentError: [!] same file: /var/folders/rl/tll64rc12j78qr60h_mm6mp00000gn/T/gym_output20201002-29737-y9jgjr/Транспондеры.ipa and /var/folders/rl/tll64rc12j78qr60h_mm6mp00000gn/T/gym_output20201002-29737-y9jgjr/Транспондеры.ipa
  /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/fileutils.rb:1556:in `block in fu_each_src_dest'
  /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/fileutils.rb:1573:in `fu_each_src_dest0'
  /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/fileutils.rb:1555:in `fu_each_src_dest'
  /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/fileutils.rb:520:in `mv'
  /Library/Ruby/Gems/2.6.0/gems/fastlane-2.162.0/gym/lib/gym/generators/package_command_generator_xcode7.rb:69:in `ipa_path'
  /Library/Ruby/Gems/2.6.0/gems/fastlane-2.162.0/gym/lib/gym/generators/package_command_generator.rb:25:in `ipa_path'
  /Library/Ruby/Gems/2.6.0/gems/fastlane-2.162.0/gym/lib/gym/runner.rb:235:in `move_ipa'
  /Library/Ruby/Gems/2.6.0/gems/fastlane-2.162.0/gym/lib/gym/runner.rb:35:in `run'
  /Library/Ruby/Gems/2.6.0/gems/fastlane-2.162.0/gym/lib/gym/manager.rb:19:in `work'
  /Library/Ruby/Gems/2.6.0/gems/fastlane-2.162.0/fastlane/lib/fastlane/actions/build_app.rb:66:in `run'
  /Library/Ruby/Gems/2.6.0/gems/fastlane-2.162.0/fastlane/lib/fastlane/runner.rb:263:in `block (2 levels) in execute_action'
  /Library/Ruby/Gems/2.6.0/gems/fastlane-2.162.0/fastlane/lib/fastlane/actions/actions_helper.rb:69:in `execute_action'
  /Library/Ruby/Gems/2.6.0/gems/fastlane-2.162.0/fastlane/lib/fastlane/runner.rb:255:in `block in execute_action'
  /Library/Ruby/Gems/2.6.0/gems/fastlane-2.162.0/fastlane/lib/fastlane/runner.rb:229:in `chdir'
  /Library/Ruby/Gems/2.6.0/gems/fastlane-2.162.0/fastlane/lib/fastlane/runner.rb:229:in `execute_action'
  /Library/Ruby/Gems/2.6.0/gems/fastlane-2.162.0/fastlane/lib/fastlane/runner.rb:157:in `trigger_action_by_name'
  /Library/Ruby/Gems/2.6.0/gems/fastlane-2.162.0/fastlane/lib/fastlane/fast_file.rb:159:in `method_missing'
  Fastfile:47:in `block (2 levels) in parsing_binding'
  /Library/Ruby/Gems/2.6.0/gems/fastlane-2.162.0/fastlane/lib/fastlane/lane.rb:33:in `call'
  /Library/Ruby/Gems/2.6.0/gems/fastlane-2.162.0/fastlane/lib/fastlane/runner.rb:49:in `block in execute'
  /Library/Ruby/Gems/2.6.0/gems/fastlane-2.162.0/fastlane/lib/fastlane/runner.rb:45:in `chdir'
  /Library/Ruby/Gems/2.6.0/gems/fastlane-2.162.0/fastlane/lib/fastlane/runner.rb:45:in `execute'
  /Library/Ruby/Gems/2.6.0/gems/fastlane-2.162.0/fastlane/lib/fastlane/lane_manager.rb:47:in `cruise_lane'
  /Library/Ruby/Gems/2.6.0/gems/fastlane-2.162.0/fastlane/lib/fastlane/command_line_handler.rb:36:in `handle'
  /Library/Ruby/Gems/2.6.0/gems/fastlane-2.162.0/fastlane/lib/fastlane/commands_generator.rb:108:in `block (2 levels) in run'
  /Library/Ruby/Gems/2.6.0/gems/commander-fastlane-4.4.6/lib/commander/command.rb:178:in `call'
  /Library/Ruby/Gems/2.6.0/gems/commander-fastlane-4.4.6/lib/commander/command.rb:153:in `run'
  /Library/Ruby/Gems/2.6.0/gems/commander-fastlane-4.4.6/lib/commander/runner.rb:476:in `run_active_command'
  /Library/Ruby/Gems/2.6.0/gems/fastlane-2.162.0/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb:76:in `run!'
  /Library/Ruby/Gems/2.6.0/gems/commander-fastlane-4.4.6/lib/commander/delegates.rb:15:in `run!'
  /Library/Ruby/Gems/2.6.0/gems/fastlane-2.162.0/fastlane/lib/fastlane/commands_generator.rb:352:in `run'
  /Library/Ruby/Gems/2.6.0/gems/fastlane-2.162.0/fastlane/lib/fastlane/commands_generator.rb:41:in `start'
  /Library/Ruby/Gems/2.6.0/gems/fastlane-2.162.0/fastlane/lib/fastlane/cli_tools_distributor.rb:119:in `take_off'
  /Library/Ruby/Gems/2.6.0/gems/fastlane-2.162.0/bin/fastlane:23:in `<top (required)>'
  /usr/local/bin/fastlane:23:in `load'
  /usr/local/bin/fastlane:23:in `<top (required)>'

Environment

✅ fastlane environment ✅

Stack

Key Value
OS 10.15.6
Ruby 2.6.3
Bundler? false
Git git version 2.24.3 (Apple Git-128)
Installation Source /usr/local/bin/fastlane
Host Mac OS X 10.15.6 (19G2021)
Ruby Lib Dir /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib
OpenSSL Version LibreSSL 2.8.3
Is contained false
Is homebrew false
Is installed via Fabric.app false
Xcode Path /Applications/Xcode.app/Contents/Developer/
Xcode Version 12.0

System Locale

Variable Value
LANG ru_RU.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

  title = "M11"
  xcodeproj = title + ".xcodeproj"

  desc "Push a new beta build to TestFlight"
  lane :beta do
    increment_build_number
    build_app(scheme: title)
    upload_to_testflight(skip_waiting_for_build_processing: true)
    complete
  end

  lane :complete do
    clean_build_artifacts
    commit
    notification(subtitle: title, message: " deployed")
  end

  lane :commit do
    version = get_version_number(xcodeproj: xcodeproj, target: title)
    build_number = get_build_number(xcodeproj: xcodeproj)
    build_version_descr = "Build " + version + " (" + build_number + ")"
    projPath = "./" + xcodeproj
    plistPath = "./" + title + "/Supporting files/Info.plist"
    git_commit(path: [projPath, plistPath], message: build_version_descr)
  end

  lane :test do
    build_app(scheme: title)
  end

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

fastlane gems

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

Loaded fastlane plugins:

No plugins Loaded

Loaded gems
Gem Version
did_you_mean 1.3.0
slack-notifier 2.3.2
rouge 2.0.7
xcpretty 0.3.0
terminal-notifier 2.0.0
plist 3.5.0
addressable 2.7.0
multipart-post 2.0.0
word_wrap 1.0.0
tty-cursor 0.7.1
tty-spinner 0.9.3
babosa 1.0.3
colored 1.2
highline 1.7.10
commander-fastlane 4.4.6
faraday 1.0.1
faraday_middleware 1.0.0
gh_inspector 1.1.3
mini_magick 4.10.1
rubyzip 2.3.0
security 0.1.3
xcpretty-travis-formatter 1.0.0
naturally 2.2.0
simctl 1.6.8
uber 0.1.0
declarative-option 0.1.0
representable 3.0.4
retriable 3.1.2
mini_mime 1.0.2
signet 0.14.0
httpclient 2.8.3
google-api-client 0.38.0
nanaimo 0.3.0
colored2 3.1.2
claide 1.0.3
CFPropertyList 3.0.2
atomos 0.1.3
xcodeproj 1.18.0
unicode-display_width 1.7.0
terminal-table 1.8.0
public_suffix 4.0.6
tty-screen 0.8.1
excon 0.76.0
unf_ext 0.0.7.7
unf 0.1.4
domain_name 0.5.20190701
http-cookie 1.0.3
faraday-cookie_jar 0.0.7
fastimage 2.2.0
json 2.3.1
dotenv 2.7.6
bundler 2.1.4
jwt 2.2.2
declarative 0.0.20
multi_json 1.15.0
os 1.1.1
memoist 0.16.2
googleauth 0.13.1
rake 13.0.1
digest-crc 0.6.1
google-cloud-errors 1.0.1
google-cloud-env 1.3.3
google-cloud-core 1.5.0
google-cloud-storage 1.29.0
emoji_regex 3.0.0
aws-eventstream 1.1.0
aws-sigv4 1.2.2
aws-partitions 1.379.0
jmespath 1.4.0
aws-sdk-core 3.109.0
aws-sdk-kms 1.39.0
aws-sdk-s3 1.82.0
forwardable 1.2.0
logger 1.3.0
stringio 0.0.2
ipaddr 1.2.2
openssl 2.1.2
ostruct 0.1.0
strscan 1.0.0
date 2.0.0
fileutils 1.1.0
etc 1.0.1
io-console 0.4.7
zlib 1.0.0
libxml-ruby 3.1.0
rexml 3.1.9
psych 3.1.0
mutex_m 0.1.0
webrick 1.4.2

generated on: 2020-10-02

@joshdholtz
Copy link
Member

joshdholtz commented Oct 2, 2020

@AndreVasilev Would you have an example of a Russian name that we can use to debug this? Thanks!

Nevermind, I think I can use Транспондеры, correct?

@AndreVasilev
Copy link
Author

Yes, this is my app's bundle name in RU locale

@joshdholtz
Copy link
Member

Cool cool! I’ll take a look at this next week and see what we can do 😊

@joshdholtz joshdholtz added this to Ready in Just Josh Things Oct 2, 2020
@whalemare
Copy link

Have the same issue. Suppose, this caused by cyrillic symbols

@mikeblanton
Copy link

I've got the same issue, with greek characters. I'm my case, it's failing with a bundle name that has 'Δ' in it.

@mollyIV
Copy link
Member

mollyIV commented Oct 7, 2020

Hey 👋

I gave it a shoot and created the pull request with the fix: #17397.

@joshdholtz
Copy link
Member

I ❤️ @mollyIV

@fastlane-bot
Copy link

The pull request #17397 that closed this issue was merged and released as part of fastlane 2.163.0 🚀
Please let us know if the functionality works as expected as a reply here. If it does not, please open a new issue. Thanks!

@fastlane fastlane locked and limited conversation to collaborators Dec 12, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
Development

Successfully merging a pull request may close this issue.

6 participants