Unable to install this on Apple M1
joelbiffin opened this issue ยท 2 comments
What a great project idea ๐ Admittedly, I didn't expect anyone to have done this yet but was pleasantly surprised when I saw this repository.
I'm running a MacBook Pro 2020 with the Apple M1 silicon chip and unfortunately after running mint install inket/Transmog
the installation of the project fails.
The output is as follows:
๐ฑ Finding latest version of Transmog
๐ฑ Cloning Transmog 0.0.6
๐ฑ Resolving package
๐ฑ Building package
remark: Incremental compilation has been disabled: it is not compatible with whole module optimizationremark: Incremental compilation has been disabled: it is not compatible with whole module optimization[1/6] Compiling Minizip ioapi.c
[2/6] Compiling Minizip unzip.c
[3/6] Compiling Minizip zip.c
remark: Incremental compilation has been disabled: it is not compatible with whole module optimization[4/7] Compiling Zip QuickZip.swift
/private/var/folders/qr/m4vnyy3x0ws7xlnlgbwvmvgr0000gn/T/mint/github.com_inket_Transmog/.build/checkouts/Zip/Zip/Zip.swift:379:22: error: value of optional type 'UnsafeMutableRawPointer?' must be unwrapped to a value of type 'UnsafeMutableRawPointer'
free(buffer)
^
/private/var/folders/qr/m4vnyy3x0ws7xlnlgbwvmvgr0000gn/T/mint/github.com_inket_Transmog/.build/checkouts/Zip/Zip/Zip.swift:379:22: note: coalesce using '??' to provide a default when the optional value contains 'nil'
free(buffer)
^
?? <#default value#>
/private/var/folders/qr/m4vnyy3x0ws7xlnlgbwvmvgr0000gn/T/mint/github.com_inket_Transmog/.build/checkouts/Zip/Zip/Zip.swift:379:22: note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
free(buffer)
^
!
๐ฑ Encountered error during "swift build -c release -Xswiftc -target -Xswiftc arm64-apple-macosx11.6". Use --verbose to see full output
๐ฑ Failed to build Transmog 0.0.6 with SPM
I'm not a swift engineer, but could this be due to there being a breaking change between swift versions since the build script attempts to use the release
version of swift?
Ah. It seems one of the dependencies doesn't build with the new tools anymore. Thanks for reporting this!
I fixed it here: 175feea
Please try the install command again~
I'm assuming this is fixed for you too. If it's not, please comment or reopen the issue ๐