Xcode Error: “/R.swift/rswift: No such file or directory”

Bitrise Build Issue Report template

Description of the issue

Please describe the issue here
Receiving the following issue:
Last lines of the Xcode’s build log:e[0m
/bin/sh -c /Users/vagrant/Library/Developer/Xcode/DerivedData/TMRO-ataqhjqpjccvijbdzicuwpnzzypy/Build/Intermediates.noindex/ArchiveIntermediates/TMRO-Sandbox/IntermediateBuildFilesPath/TMRO.build/Release-iphoneos/TMRO-Sandbox.build/Script-6F113DB224121A5B00F713C9.sh
/Users/vagrant/Library/Developer/Xcode/DerivedData/TMRO-ataqhjqpjccvijbdzicuwpnzzypy/Build/Intermediates.noindex/ArchiveIntermediates/TMRO-Sandbox/IntermediateBuildFilesPath/TMRO.build/Release-iphoneos/TMRO-Sandbox.build/Script-6F113DB224121A5B00F713C9.sh: line 2: /R.swift/rswift: No such file or directory
Command PhaseScriptExecution failed with a nonzero exit code

Environment:

Xcode 11.3

Where did the issue happen?
Archive creation.

If on Bitrise.io: which stack? If not on Bitrise.io: on what operating system? (Plus any other information you can share)
Xcode 11.3.x on macOS 10.14.6 (Mojave)

Which build Step causes the issue and which version of the step?
Compiling and making the archive.
I have done this locally and have faced no such issue locally on my Mac mini.

E.g.: Git Clone v3.6.0

Reproducibility

Everytime - 8 build failed.

  • Does a “Rebuild” help? (You can trigger a rebuild from the Build’s page, by clicking the “Rebuild” button in the top right corner of a finished build) : YES/NO
    NO

  • Does a rebuild without caches help? (You can remove the Cache:Pull and Cache:Push steps temporarily to not to use the cache, or you can delete all the caches on the Settings tab of the app. : YES/NO
    NO

  • Does the issue happen sporadically, or every time? : EVERYTIME

  • Does upgrading the build Step to the latest version help? : YES/NO
    NO

  • When did the issue start? :
    First day.

Local reproduction

Can it be reproduced on your own Mac/PC by following our local debug guide? Please follow at least the first section (“Testing with a full clean git clone”) to make sure to test the state of the code what bitrise.io will get when it does a git clone in the clean environment! If possible please note which sections you tried.
NO. Does not happen locally.

Local reproduction: Linux / Android (docker based) stack builds

Can it be reproduced by running the build locally, after doing a new git clone of the repository into the /tmp directory and running the build from there with the Bitrise CLI ( https://www.bitrise.io/cli )? If no, can it be reproduced with Docker (using the same docker images / environment we use on bitrise.io)? Related guide: http://devcenter.bitrise.io/docker/run-your-build-locally-in-docker/ .

Build log

Please copy paste the build’s bitrise.io URL here (or if the issue happens somewhere else then the full logs), or if you can’t share the url / log here then send the url or full log through a private channel (e.g. email - https://www.bitrise.io/contact ), with a link to the related Discuss issue.
http://bit.ly/BLENG-BL266-Build-Logs

Hi @duliodenis_bll,

Can you please send us a link to a specific build where the problem you want us to look into is happening, and enable Support Access in the settings?

This is Build 11: https://app.bitrise.io/build/284d8505557c25a4#
I have also enabled Bitrise Support Access.

Thank you!

Thanks! I believe this R.swift tool isn’t getting installed through your cocoapods properly. Can look into that? Here is a related thread for example: https://stackoverflow.com/questions/44440001/xcode-error-r-swift-rswift-no-such-file-or-directory

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.