Closed philcluff closed 3 years ago
Interestingly, the ./carthage.sh
contains the recommended workaround: https://github.com/Carthage/Carthage/blob/master/Documentation/Xcode12Workaround.md
Trying under Rosetta now and it seems to be going better.
This does indeed work through Rosetta, EG:
arch -x86_64 ./carthage.sh bootstrap --platform tvOS
OK, so this worked for the initial dependency install, but then faltered on the final step of the build where carthage is invoked again:
PhaseScriptExecution Carthage /Users/philc/Library/Developer/Xcode/DerivedData/Provenance-epvxvaisnwwgdqgrbcgisfjvoish/Build/Intermediates.noindex/Provenance.build/Release-appletvos/ProvenanceTV.build/Script-0CO5J70NW5JDTTZ5BCHAVYZE.sh (in target 'ProvenanceTV' from project 'Provenance')
cd /Users/philc/Documents/Development/Provenance
/bin/sh -c /Users/philc/Library/Developer/Xcode/DerivedData/Provenance-epvxvaisnwwgdqgrbcgisfjvoish/Build/Intermediates.noindex/Provenance.build/Release-appletvos/ProvenanceTV.build/Script-0CO5J70NW5JDTTZ5BCHAVYZE.sh
/Users/philc/Library/Developer/Xcode/DerivedData/Provenance-epvxvaisnwwgdqgrbcgisfjvoish/Build/Intermediates.noindex/Provenance.build/Release-appletvos/ProvenanceTV.build/Script-0CO5J70NW5JDTTZ5BCHAVYZE.sh: line 2: /usr/local/bin/carthage: No such file or directory
Command PhaseScriptExecution failed with a nonzero exit code
This is because under Brew running natively on Apple Silicon, carthage would be installed at /opt/homebrew/bin/carthage
as per https://docs.brew.sh/Installation:
This script installs Homebrew to its preferred prefix (/usr/local for macOS Intel, /opt/homebrew for Apple Silicon)
I worked around it by just symlinking:
sudo ln -s /opt/homebrew/bin/carthage /usr/local/bin/carthage
And I was able to produce a working build 🎉
This has been fixed and is covered in the steps detailed in: https://github.com/Provenance-Emu/Provenance/issues/1527
Running
./carthage.sh bootstrap --platform iOS
or./carthage.sh bootstrap --platform tvOS
results in failure on MacOS 11.2.3 running on Apple Silicon (M1 Macbook Air)Expected:
Dependencies to be installed correctly.
Actual:
Dependency installation fails.
Reproduce:
./carthage.sh bootstrap --platform tvOS
APP VERSION
APP SOURCE
INSTALLED BY
PLATFORM
iOS/tvOS VERSION