Avatar
omochimetaru 5/10/2024 1:52 PM
[omochi@omochi-iMacPro macosx]$ pwd /Library/Developer/CommandLineTools/usr/lib/swift/macosx [omochi@omochi-iMacPro macosx]$ ls layouts-x86_64.yaml libcxxshim.h libswiftCompatibility50.a libswiftCompatibilityConcurrency.a libswiftCxx.a lib_InternalSwiftScan.dylib libcxxshim.modulemap libswiftCompatibility51.a libswiftCompatibilityDynamicReplacements.a libswiftCxxStdlib.a lib_InternalSwiftSyntaxParser.dylib libcxxstdlibshim.h libswiftCompatibility56.a libswiftCompatibilityPacks.a
1:52 PM
[omochi@omochi-iMacPro macosx]$ pwd /Library/Developer/CommandLineTools/usr/lib/swift-5.0/macosx [omochi@omochi-iMacPro macosx]$ ls libswiftAVFoundation.dylib libswiftCoreAudio.dylib libswiftCoreMedia.dylib libswiftGLKit.dylib libswiftMetalKit.dylib libswiftPhotos.dylib libswiftVision.dylib libswiftAccelerate.dylib libswiftCoreData.dylib libswiftCreateML.dylib libswiftGameplayKit.dylib libswiftModelIO.dylib libswiftQuartzCore.dylib libswiftXCTest.dylib libswiftAppKit.dylib libswiftCoreFoundation.dylib libswiftCryptoTokenKit.dylib libswiftIOKit.dylib libswiftNaturalLanguage.dylib libswiftSafariServices.dylib libswiftXPC.dylib libswiftCloudKit.dylib libswiftCoreGraphics.dylib libswiftDarwin.dylib libswiftIntents.dylib libswiftNetwork.dylib libswiftSceneKit.dylib libswiftos.dylib libswiftContacts.dylib libswiftCoreImage.dylib libswiftDispatch.dylib libswiftMapKit.dylib libswiftObjectiveC.dylib libswiftSpriteKit.dylib libswiftsimd.dylib libswiftCore.dylib libswiftCoreLocation.dylib libswiftFoundation.dylib libswiftMetal.dylib libswiftOpenCL.dylib libswiftSwiftOnoneSupport.dylib
1:52 PM
[omochi@omochi-iMacPro macosx]$ pwd /Library/Developer/CommandLineTools/usr/lib/swift-5.5/macosx [omochi@omochi-iMacPro macosx]$ ls libswift_Concurrency.dylib
1:53 PM
swift無印,swift-5.0, swift-5.5 の3つのフォルダに分かれてるけどlibswiftCoreがあるのは5.0だけ (edited)
1:54 PM
ところで
1:54 PM
[omochi@omochi-iMacPro bin]$ pwd /Users/omochi/Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2024-05-01-a.xctoolchain/usr/bin [omochi@omochi-iMacPro bin]$ otool -L swift-package swift-package: /usr/lib/libc++.1.dylib (compatibility version 1.0.0, current version 1600.157.0) /usr/lib/libsqlite3.dylib (compatibility version 9.0.0, current version 349.3.0) /usr/lib/libncurses.5.4.dylib (compatibility version 5.4.0, current version 5.4.0) /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation (compatibility version 300.0.0, current version 2201.0.0) /usr/lib/libobjc.A.dylib (compatibility version 1.0.0, current version 228.0.0) /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1336.0.0) /System/Library/Frameworks/Combine.framework/Versions/A/Combine (compatibility version 1.0.0, current version 311.0.0, weak) /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation (compatibility version 150.0.0, current version 2201.0.0) /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices (compatibility version 1.0.0, current version 1226.0.0) /System/Library/Frameworks/CryptoKit.framework/Versions/A/CryptoKit (compatibility version 1.0.0, current version 1.0.0) /System/Library/Frameworks/Security.framework/Versions/A/Security (compatibility version 1.0.0, current version 61040.60.20) /System/Library/Frameworks/SystemConfiguration.framework/Versions/A/SystemConfiguration (compatibility version 1.0.0, current version 1296.60.2) /usr/lib/swift/libswiftCore.dylib (compatibility version 1.0.0, current version 0.0.0) /usr/lib/swift/libswiftCoreFoundation.dylib (compatibility version 1.0.0, current version 120.100.0) /usr/lib/swift/libswiftDarwin.dylib (compatibility version 1.0.0, current version 0.0.0) /usr/lib/swift/libswiftDispatch.dylib (compatibility version 1.0.0, current version 34.0.2) /usr/lib/swift/libswiftIOKit.dylib (compatibility version 1.0.0, current version 1.0.0, weak) /usr/lib/swift/libswiftOSLog.dylib (compatibility version 1.0.0, current version 4.0.0, weak) /usr/lib/swift/libswiftObjectiveC.dylib (compatibility version 1.0.0, current version 8.0.0) /usr/lib/swift/libswiftXPC.dylib (compatibility version 1.0.0, current version 29.0.2, weak) /usr/lib/swift/libswift_Concurrency.dylib (compatibility version 1.0.0, current version 0.0.0) /usr/lib/swift/libswiftos.dylib (compatibility version 1.0.0, current version 1040.0.0)
1:54 PM
これを書き換えたら $ swift sdk コマンドは動くようになるかな?