iOS 带有 SQLCipher 的 Firebase 导致 EXC_BAD_ACCESS
iOS Firebase with SQLCipher leads to EXC_BAD_ACCESS
我有一个奇怪的问题。我在我的应用程序中使用 SQLCipher,与 Cocoapods 集成。
现在我尝试添加 Firebase,尤其是 Analytics。但是当包含 Firebase 时
...
pod 'SQLCipher'
pod 'Firebase'
...
我什么都不做,不配置 Firebase 等。SQLite 随机抛出 EXC_BAD_ACCESS.
有时当应用程序调用 sqlite3_prepare_v2
、sqlite3_step
或许多其他 sqlite3
方法时。
但是当我从项目中删除 Firebase 时,一切又恢复正常了
问题是项目设置不完整。
- When using SQLCipher Commercial Edition static libraries: $(PROJECT_DIR)/sqlcipher-static-ios/ios-libs/libsqlcipher-ios.a (adjust according to the the path to the libsqlcipher-ios.a you received as part of the package).
- When using the sqlcipher.xcodeproj included in the SQLCipher git repository: $(BUILT_PRODUCTS_DIR)/libsqlcipher.a
- When using the SQLCipher CocoaPod with the use_frameworks Podfile setting enabled: -framework SQLCipher
- When using the SQLCipher CocoaPod without the use_frameworks Podfile setting enabled: -lSQLCipher
https://discuss.zetetic.net/t/important-advisory-sqlcipher-with-xcode-8-and-new-sdks/1688
我有一个奇怪的问题。我在我的应用程序中使用 SQLCipher,与 Cocoapods 集成。 现在我尝试添加 Firebase,尤其是 Analytics。但是当包含 Firebase 时
...
pod 'SQLCipher'
pod 'Firebase'
...
我什么都不做,不配置 Firebase 等。SQLite 随机抛出 EXC_BAD_ACCESS.
有时当应用程序调用 sqlite3_prepare_v2
、sqlite3_step
或许多其他 sqlite3
方法时。
但是当我从项目中删除 Firebase 时,一切又恢复正常了
问题是项目设置不完整。
- When using SQLCipher Commercial Edition static libraries: $(PROJECT_DIR)/sqlcipher-static-ios/ios-libs/libsqlcipher-ios.a (adjust according to the the path to the libsqlcipher-ios.a you received as part of the package).
- When using the sqlcipher.xcodeproj included in the SQLCipher git repository: $(BUILT_PRODUCTS_DIR)/libsqlcipher.a
- When using the SQLCipher CocoaPod with the use_frameworks Podfile setting enabled: -framework SQLCipher
- When using the SQLCipher CocoaPod without the use_frameworks Podfile setting enabled: -lSQLCipher
https://discuss.zetetic.net/t/important-advisory-sqlcipher-with-xcode-8-and-new-sdks/1688