You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Because FileHandle's "truncateFile(atOffset: )" has been deprecated on both DarwinFoundation and SwiftFoundation, new function is introduced. However, the signatures are different between DarwinFoundation and SwiftFoundation:
Environment
Swift 5.1.2
macOS 10.15.1
Ubuntu 18.04
Additional Detail from JIRA
md5: ddeef0edfc9bc133b9bde9fea61465c4
Issue Description:
Because
FileHandle
's "truncateFile(atOffset: )
" has been deprecated on both DarwinFoundation and SwiftFoundation, new function is introduced. However, the signatures are different between DarwinFoundation and SwiftFoundation:"
func truncate(atOffset offset: UInt64) throws
" on DarwinFoundation.See https://developer.apple.com/documentation/foundation/filehandle/3172532-truncate
"
func truncate(toOffset offset: UInt64) throws
" on SwiftFoundation.See 55c404b#diff-8ecab93373e5147e5738e6bdebbcda43R372
This makes incompatibility.
The text was updated successfully, but these errors were encountered: