When using Swift Package Manager to integrate PINCache into an app, Xcode does not automatically set NS_BLOCK_ASSERTIONS to 1 when building the package in release. This means that any NSAsserts that are hit in release cause crashes. This appears to only be an issue with ObjC packages.
The change I've made is to Package.swift to set NS_BLOCK_ASSERTIONS to 1 when building in release.
(Note: I didn't actually hit an assert in this PINCache, but the possibility is there)
When using Swift Package Manager to integrate
PINCache
into an app, Xcode does not automatically setNS_BLOCK_ASSERTIONS
to1
when building the package in release. This means that anyNSAsserts
that are hit in release cause crashes. This appears to only be an issue with ObjC packages.The change I've made is to
Package.swift
to setNS_BLOCK_ASSERTIONS
to1
when building in release.(Note: I didn't actually hit an assert in this PINCache, but the possibility is there)