libsqlite3.dylib with Universal binary mac app (Xcode 12.2)

I have enabled my existing codebase to create a universal binary in Xcode 12.2 i.e have used the standard architecture given in Xcode.

While doing changes, got error "implicit declaration is invalid for sqlitekey function in c99" so in order to resolve it I added the function header in FMDatabase.m class. Now if I build the code then I was getting "The linked library 'libsqlite3.dylib' is missing one or more architectures required by this target: arm64", so I removed this lib and added libsqlite3.0.tbd then code was running fine. Later when I tested the app in different OS versions.
For 10.10.5 and 10.11.6, app is continuously crashing, but working fine in the rest of the OS version available including BigSur.

Crash logs :

Crashed Thread:    0 Dispatch queue: com.apple.main-thread

Exception Type:    EXC
BREAKPOINT (SIGTRAP)
Exception Codes:   0x0000000000000002, 0x0000000000000000
Exception Note:    EXCCORPSENOTIFY

Application Specific Information:
Performing @selector(selectVolume:) from sender NSButton 0x7fa9f3eb2440

Dyld Error Message:
 Symbol not found: sqlite3key
 Referenced from: /Applications/IDrive.app/Contents/MacOS/IDrive
 Expected in: /usr/lib/libsqlite3.dylib

Global Trace Buffer (reverse chronological seconds):
  1. 0  CFNetwork        0x00007fff9d820cc4 NSURLConnection finished with error - code -1004

  2. 04  CFNetwork        0x00007fff9d82fda1 HTTP load failed (error code: -1004 [1:61])

  3.   CFNetwork        0x00007fff9d7608b2 TCP Conn 0x7fa9f6a5ab90 Failed : error 0:61 [61]

  4.   CFNetwork        0x00007fff9d760545 TCP Conn 0x7fa9f6a5ab90 complete. fd: -1, err: 61

  5. 099  CFNetwork        0x00007fff9d7eee1f TCP Conn 0x7fa9f6a5ab90 event 3. err: 61

  6.   CFNetwork        0x00007fff9d75f817 TCP Conn 0x7fa9f6a5ab90 started

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 dyld             0x00007fff6c2a2075 dyldfatalerror + 1
1 dyld             0x00007fff6c2a5094 dyld::fastBindLazySymbol(ImageLoader**, unsigned long) + 139
2 libdyld.dylib        0x00007fff9d397262 dyldstubbinder + 282
3 ???             0x00000001048ed000 0 + 4371435520
4 com.prosoftnet.IDrive    0x0000000104857663 -[FMDatabase open] + 114



libsqlite3.dylib with Universal binary mac app (Xcode 12.2)
 
 
Q