XcodesOrg / xcodes

The best command-line tool to install and switch between multiple versions of Xcode.
MIT License
3.66k stars 122 forks source link

Cant' update via brew #188

Closed vx8 closed 1 year ago

vx8 commented 2 years ago

Using the suggested command

brew upgrade robotsandpencils/made/xcodes

I get the following error message

==> Auto-updated Homebrew!
Updated 1 tap (homebrew/cask).
==> Updated Casks
Updated 2 casks.

==> Upgrading 1 outdated package:
robotsandpencils/made/xcodes 0.19.0 -> 0.20.0
==> Cloning https://github.com/RobotsAndPencils/xcodes.git
Updating /Users/matteo/Library/Caches/Homebrew/xcodes--git
==> Checking out tag 0.20.0
HEAD is now at bfefa45 Bump version to 0.20.0
HEAD is now at bfefa45 Bump version to 0.20.0
==> Upgrading robotsandpencils/made/xcodes
  0.19.0 -> 0.20.0 

==> make install prefix=/opt/homebrew/Cellar/xcodes/0.20.0
Last 15 lines from /Users/matteo/Library/Logs/Homebrew/xcodes/01.make:

warning: /private/tmp/xcodes-20220311-22233-t3wtud/.build/apple/Intermediates.noindex/xcodes.build/Release/Unxip.build/Objects-normal/arm64/Unxip.swiftmodule: timestamp mismatch between swift interface file (1970-01-01 00:00:00.000000000
) and debug map (1970-01-01 00:00:00.000000000)

warning: /private/tmp/xcodes-20220311-22233-t3wtud/.build/apple/Intermediates.noindex/xcodes.build/Release/Unxip.build/Objects-normal/x86_64/Unxip.swiftmodule: timestamp mismatch between swift interface file (1970-01-01 00:00:00.000000000) and debug map (1970-01-01 00:00:00.000000000)

warning: /private/tmp/xcodes-20220311-22233-t3wtud/.build/apple/Intermediates.noindex/xcodes.build/Release/XcodesKit.build/Objects-normal/x86_64/XcodesKit.swiftmodule: timestamp mismatch between swift interface file (1970-01-01 00:00:00.000000000) and debug map (1970-01-01 00:00:00
.000000000)

warning: /private/tmp/xcodes-20220311-22233-t3wtud/.build/apple/Intermediates.noindex/xcodes.build/Release/XcodesKit.build/Objects-normal/arm64/XcodesKit.swiftmodule: timestamp mismatch between swift interface file (1970-01-01 00:00:00.000000000
) and debug map (1970-01-01 00:00:00.000000000)

99%: Register execution policy exception for xcodes
100%: Build succeeded
make: *** [xcodes] Error 1

This are my specs

image

MattKiazyk commented 2 years ago

Hey @vx8

Sorry you're having problems.

Personally on my M1 I had troubles as well, and for me it always used an old version even though it said it upgraded. I blame the Rosetta/M1 confusing mess. So I made sure to remove any Xcodes in /usr/local/bin before trying again.

Secondly, which Xcode (or command line tools) do you have selected? That also may have something to do with it

vx8 commented 2 years ago

Hello @MattKiazyk

I don't want to wipe and reinstall, I'm sure I can get rid of the error but maybe I can help you guys understand what the problem is.

I have the latest stable version of xCode and CLT.

vx8 commented 2 years ago

Just a quick update, I tried a fresh install and still am unable to install version 0.20

Here the log

==> Auto-updated Homebrew!
Updated 3 taps (shivammathur/php, homebrew/core and homebrew/cask).
==> New Formulae
trivy
==> Updated Formulae
Updated 39 formulae.
==> New Casks
prowlarr
==> Updated Casks
Updated 13 casks.

==> Cloning https://github.com/RobotsAndPencils/xcodes.git
Updating /Users/matteo/Library/Caches/Homebrew/xcodes--git
==> Checking out tag 0.20.0
HEAD is now at bfefa45 Bump version to 0.20.0
HEAD is now at bfefa45 Bump version to 0.20.0
==> Installing xcodes from robotsandpencils/made
==> make install prefix=/opt/homebrew/Cellar/xcodes/0.20.0
Last 15 lines from /Users/matteo/Library/Logs/Homebrew/xcodes/01.make:

warning: /private/tmp/xcodes-20220315-16866-zu7rbm/.build/apple/Intermediates.noindex/xcodes.build/Release/Unxip.build/Objects-normal/x86_64/Unxip.swiftmodule: timestamp mismatch between swift interface file (1970-01-01 00:00:00.000000000
) and debug map (1970-01-01 00:00:00.000000000)

warning: /private/tmp/xcodes-20220315-16866-zu7rbm/.build/apple/Intermediates.noindex/xcodes.build/Release/Unxip.build/Objects-normal/arm64/Unxip.swiftmodule: timestamp mismatch between swift interface file (1970-01-01 00:00:00.000000000) and debug map (1970-01-01 00:00:00.000000000)

warning: /private/tmp/xcodes-20220315-16866-zu7rbm/.build/apple/Intermediates.noindex/xcodes.build/Release/XcodesKit.build/Objects-normal/x86_64/XcodesKit.swiftmodule: timestamp mismatch between swift interface file (1970-01-01 00:00:00.000000000
) and debug map (1970-01-01 00:00:00.000000000)

warning: /private/tmp/xcodes-20220315-16866-zu7rbm/.build/apple/Intermediates.noindex/xcodes.build/Release/XcodesKit.build/Objects-normal/arm64/XcodesKit.swiftmodule: timestamp mismatch between swift interface file (1970-01-01 00:00:00.000000000) and debug map (1970-01-01 00:00:00.
000000000)

99%: Register execution policy exception for xcodes
100%: Build succeeded
make: *** [xcodes] Error 1
MattKiazyk commented 1 year ago

@vx8 can you try upgrading again with v 1.0 of Xcodes. it should hopefully be fixed - lots of conversation in https://github.com/RobotsAndPencils/xcodes/issues/148