Avatar
omochimetaru 5/10/2024 2:33 PM
そもそもコンパイル時のリンクフェーズで怒られちゃうパターンか
2:35 PM
ん?
2:35 PM
じゃあ ss23withCheckedContinuation9isolation8function_xScA_pSgYi_SSyScCyxs5NeverOGXEtYalFTu こっちを用意しちゃう手はあるか?
2:40 PM
普通にやると 9999付きの Conrrency に入ってる本物とconflictでソースレベルでダメか・・・
2:46 PM
[omochi@omochi-iMacPro C]$ pwd /Users/omochi/temp/libs/System/Library/Frameworks/Foundation.framework/Versions/C [omochi@omochi-iMacPro C]$ ls -al total 43608 drwxr-xr-x 3 omochi staff 96 5 10 23:15 . drwxr-xr-x 3 omochi staff 96 5 10 23:15 .. -rw-r--r-- 1 omochi staff 22327296 5 10 23:15 Foundation extract したやつちゃんと見えなかった部分だけ中身入ってるなあ
2:47 PM
[omochi@omochi-iMacPro C]$ otool -L Foundation Foundation: /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation (compatibility version 300.0.0, current version 2420.0.0) /usr/lib/libobjc.A.dylib (compatibility version 1.0.0, current version 228.0.0, reexport) /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation (compatibility version 150.0.0, current version 2420.0.0, reexport) /System/Library/PrivateFrameworks/CoreAutoLayout.framework/Versions/A/CoreAutoLayout (compatibility version 1.0.0, current version 32.0.0, weak) /System/Library/Frameworks/SystemConfiguration.framework/Versions/A/SystemConfiguration (compatibility version 1.0.0, current version 1300.100.9) /usr/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.2.12) /usr/lib/libfakelink.dylib (compatibility version 1.0.0, current version 1.0.0) /usr/lib/libcompression.dylib (compatibility version 1.0.0, current version 1.0.0) /System/Library/Frameworks/CFNetwork.framework/Versions/A/CFNetwork (compatibility version 1.0.0, current version 1494.0.7) /System/Library/Frameworks/DiskArbitration.framework/Versions/A/DiskArbitration (compatibility version 1.0.0, current version 1.0.0) /usr/lib/libarchive.2.dylib (compatibility version 9.0.0, current version 9.2.0) /usr/lib/libDiagnosticMessagesClient.dylib (compatibility version 1.0.0, current version 113.0.0) /usr/lib/libicucore.A.dylib (compatibility version 1.0.0, current version 74.1.0) /usr/lib/libxml2.2.dylib (compatibility version 10.0.0, current version 10.9.0) /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices (compatibility version 1.0.0, current version 1226.0.0) /usr/lib/liblangid.dylib (compatibility version 1.0.0, current version 1.0.0) /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit (compatibility version 1.0.0, current version 275.0.0) /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1345.100.2) /System/Library/Frameworks/Combine.framework/Versions/A/Combine (compatibility version 1.0.0, current version 311.0.0) /System/Library/PrivateFrameworks/CollectionsInternal.framework/Versions/A/CollectionsInternal (compatibility version 22.0.0, current version 22.0.0) /System/Library/PrivateFrameworks/ReflectionInternal.framework/Versions/A/ReflectionInternal (compatibility version 22.0.0, current version 22.0.0) /System/Library/PrivateFrameworks/RuntimeInternal.framework/Versions/A/RuntimeInternal (compatibility version 22.0.0, current version 22.0.0) /System/Library/PrivateFrameworks/SoftLinking.framework/Versions/A/SoftLinking (compatibility version 1.0.0, current version 47.0.0) /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 41.0.0) /usr/lib/swift/libswiftIOKit.dylib (compatibility version 1.0.0, current version 1.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 36.100.7, weak) /usr/lib/swift/libswift_Concurrency.dylib (compatibility version 1.0.0, current version 0.0.0) /usr/lib/swift/libswift_StringProcessing.dylib (compatibility version 1.0.0, current version 0.0.0) /usr/lib/swift/libswiftos.dylib (compatibility version 1.0.0, current version 1049.100.4)
2:47 PM
やっぱりガチガチにフルパスだった
2:52 PM
元スレ読み終わってないんだった
2:52 PM
#72801 seems trying to solve the same issue for typed throws
https://github.com/apple/swift/pull/72801
Inlined code using the special 9999 availability is always getting executed, even on older standard library implementations, causing a runtime failure due to a missing symbol. Avoid this problem by...
2:59 PM
alwaysEmitIntoClient の willThrowTyped と、willThrowTypedImpl に分けておいて
2:59 PM
avaiableチェック+dlsymチェック
3:01 PM
これはwillThrowならまあ許されなくもないけど withCheckedContinuation はこうはいかなそうだ