norio_nomura
1. ~/Library/org.swift.swiftpm/swift-sdks
を/opt/homebrew/share/swift/sdks
へのシンボリックリンクに(Homebrewは~
以下のディレクトリへ書き込めないため) 2. brew tap-new swiftwasm/swiftwasm
3. /opt/homebrew/Library/Taps/swiftwasm/homebrew-swiftwasm/Formula/swiftwasm-sdk@6.0.rb
を以下の内容で作成。 class SwiftwasmSdkAT60 < Formula desc "SwiftWasm SDK 6.0" homepage "https://github.com/swiftwasm/swift" version "6.0.2" url "https://github.com/swiftwasm/swift/releases/download/swift-wasm-#{version}-RELEASE/swift-wasm-#{version}-RELEASE-wasm32-unknown-wasi.artifactbundle.zip" license "" def install prefix.install Dir["*"] sdks_path = share/"swift/sdks" sdks_path.mkpath sdks_path.install_symlink prefix => "#{name}.artifactbundle" end def caveats <<~EOS SwiftWasm SDK #{version} has been installed at: #{prefix} A symlink has been created at: /opt/homebrew/share/swift/sdks/#{name}.artifactbundle EOS end end
4. brew install swiftwasm/swiftwasm/swiftwasm-sdk@6.0
でswift sdk list
から認識されるインストールが出来た。 (edited)