evgenyneu / keychain-swift

Helper functions for saving text in Keychain securely for iOS, OS X, tvOS and watchOS.
MIT License
2.82k stars 345 forks source link

compilation error #183

Open KirillKharkovskiy opened 7 months ago

KirillKharkovskiy commented 7 months ago

good afternoon, an error message appears during compilation Please consider submitting the following information (if relevant):

Снимок экрана 2024-02-28 в 12 25 17

swapnil-salunke commented 6 months ago

I too seem to have encountered this while compiling from an M1 based machine. Is this related in anyway?

mikehouse commented 4 months ago

Hi. We fixed it by these bash commands to modify KeychainSwift.xcframework swift interface files

if [[ -d ./KeychainSwift.xcframework ]]; then
    for swiftinterface in $(find ./KeychainSwift.xcframework -type f -name "*private.swiftinterface"); do
        sed -i '' 's/KeychainSwift\.//' "${swiftinterface}"
        sed -i '' 's/KeychainSwift\.//' "${swiftinterface}"
    done
fi