(base) hongseonghyeon@suhong macOS % make
Build Version: 56f239c 56f239c
swift build --configuration release --no-static-swift-stdlib -Xlinker -rpath -Xlinker '@executable_path/../Frameworks' -Xswiftc -Xfrontend -Xswiftc -validate-tbd-against-ir=none
Building for production...
/Users/hongseonghyeon/Desktop/scratch/scratch-link/macOS/.build/checkouts/PerfectLib/Sources/PerfectLib/Log.swift:73:28: error: cannot convert value of type 'CVaListPointer' to expected argument type '__darwin_va_list?' (aka 'Optional<UnsafeMutablePointer<Int8>>')
vsyslog(priority, "%s", $0)
^
[140/252] Compiling COpenSSL fcrypt_b.c
make: *** [/Users/hongseonghyeon/Desktop/scratch/scratch-link/macOS/.build/arm64-apple-macosx/release/scratch-link] Error 1
Rosetta에서 빌드 오류.
(base) hongseonghyeon@suhong macOS % make
Build Version: 1.4.3 f78273b
swift build --configuration release --no-static-swift-stdlib -Xlinker -rpath -Xlinker '@executable_path/../Frameworks' -Xswiftc -Xfrontend -Xswiftc -validate-tbd-against-ir=none
Building for production...
/Users/hongseonghyeon/Desktop/scratch/scratch-link/macOS/Sources/scratch-link/BLESession.swift:431:22: error: value of optional type 'CBService?' must be unwrapped to refer to member 'peripheral' of wrapped base type 'CBService'
endpoint.service.peripheral.setNotifyValue(false, for: endpoint)
^
/Users/hongseonghyeon/Desktop/scratch/scratch-link/macOS/Sources/scratch-link/BLESession.swift:431:22: note: chain the optional using '?' to access member 'peripheral' only for non-'nil' base values
endpoint.service.peripheral.setNotifyValue(false, for: endpoint)
^
?
/Users/hongseonghyeon/Desktop/scratch/scratch-link/macOS/Sources/scratch-link/BLESession.swift:431:30: error: value of optional type 'CBPeripheral?' must be unwrapped to refer to member 'setNotifyValue' of wrapped base type 'CBPeripheral'
endpoint.service.peripheral.setNotifyValue(false, for: endpoint)
^
/Users/hongseonghyeon/Desktop/scratch/scratch-link/macOS/Sources/scratch-link/BLESession.swift:431:30: note: chain the optional using '?' to access member 'setNotifyValue' only for non-'nil' base values
endpoint.service.peripheral.setNotifyValue(false, for: endpoint)
^
?
/Users/hongseonghyeon/Desktop/scratch/scratch-link/macOS/Sources/scratch-link/BLESession.swift:431:30: note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
endpoint.service.peripheral.setNotifyValue(false, for: endpoint)
^
!
/Users/hongseonghyeon/Desktop/scratch/scratch-link/macOS/Sources/scratch-link/BTSession.swift:5:7: error: cannot declare conformance to 'NSObjectProtocol' in Swift; 'BTSession' should inherit 'NSObject' instead
class BTSession: Session, IOBluetoothRFCOMMChannelDelegate, IOBluetoothDeviceInquiryDelegate {
^
make: *** [/Users/hongseonghyeon/Desktop/scratch/scratch-link/macOS/.build/x86_64-apple-macosx/release/scratch-link] Error 1
Expected Behavior
scratch-link 빌드가 성공적으로 되어야 함.
Actual Behavior
apple silicon에서 aarch에서 빌드 오류.
Rosetta에서 빌드 오류.
windows는 확인 X
Steps to Reproduce
오류 발생 코드 수정
Operating System and Browser
Mac OS 13.14.1 arm64, i386