R.swift icon indicating copy to clipboard operation
R.swift copied to clipboard

'Command PhaseScriptExecution failed with a nonzero exit code' when Archiving

Open davidgoncalves opened this issue 1 year ago • 9 comments

Hello,

Everything works well when I run in the simulator and on the device. But when I try to Archive my project to upload it to AppStoreConnect but I get this error.

I have the new XCode 15 and I use Swift Package Manager (SPM). I don't have Pod installed in my project.

error-rswift

Can someone help me fixing it?

Regards,

davidgoncalves avatar Sep 24 '23 08:09 davidgoncalves

same problem

Hiroki-Soeno avatar Sep 28 '23 03:09 Hiroki-Soeno

same problem

Rylaa avatar Oct 01 '23 16:10 Rylaa

same issue, did you find a solution ?

amine2233 avatar Nov 17 '23 20:11 amine2233

I resolved this issue by completely deleting R.swift and reinstalling it into the project. @amine2233

Rylaa avatar Nov 17 '23 20:11 Rylaa

I had the same problem, and removing and re-installing using SPM did not help, finally I gave up and used the pod approach and it worked.

h-arshad avatar Dec 07 '23 13:12 h-arshad

same problem

KursX avatar Dec 23 '23 19:12 KursX

same problem

difoi avatar Mar 06 '24 10:03 difoi

same here

parfenuk avatar May 27 '24 09:05 parfenuk

same problem. Who resolved this?

eQip123 avatar Jun 04 '24 13:06 eQip123