Open compnerd opened 1 year ago
A difference from Darwin, where releasing constant strings is a no-op...
I believe that this is impacting Linux as well
@parkera I think that this might be hinting towards a bridging issue where the bridge between a String and NSCFConstantString
does not elide thee release.
When trying to do the following:
the
fatalError
at https://github.com/apple/swift-corelibs-foundation/blob/main/Sources/Foundation/NSCFString.swift#L118-L120 is triggered.This is due to
Bundle.url(forResource:withException:subdirectory:)
invokingCFBundleCopyResourceURL
, which in turn invokes_CFBundleCopyFindResources
, which will run the following: