i got the same error while building sqlcipher-4.4.1 for mac catalyst on MacOS 11.0 + Xcode 12.2
./configure --with-crypto-lib=commoncrypto --enable-tempstore=yes --host x86_64-apple-darwin CFLAGS="-DSQLITE_HAS_CODEC -isysroot /Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -fno-common -arch x86_64 -target x86_64-apple-ios13.0-macabi -isystem /Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/iOSSupport/usr/include -iframework /Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/iOSSupport/usr/include/System/iOSSupport/System/Library/Frameworks -fembed-bitcode-marker" LDFLAGS="-framework Security -framework Foundation"
Error :
libtool: link: gcc -dynamiclib -o .libs/libsqlcipher.0.dylib .libs/sqlite3.o -framework Security -framework Foundation -lz -isysroot /Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -arch x86_64 -framework Security -framework Foundation -install_name /usr/local/lib/libsqlcipher.0.dylib -compatibility_version 9 -current_version 9.6 -Wl,-single_module
ld: building for macOS, but linking in object file built for Mac Catalyst, file ‘.libs/sqlite3.o’ for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [libsqlcipher.la] Error 1
can you please help to figure the error and how to resolve that?