https://kotlinlang.org logo
#squarelibraries
Title
# squarelibraries
l

Logic Gupta

02/24/2024, 10:55 AM
Hey ! I'm currently having issue in SQLDelight . My IOS project is not building . I am attaching the error log in same thread . Please help if anyone knows how to fix . Thanks
Copy code
SwiftDriver\ Compilation iosApp normal arm64 com.apple.xcode.tools.swift.compiler (in target 'iosApp' from project 'iosApp')
    cd /Users/logic/AndroidStudioProjects/NewsKMP/iosApp
    builtin-Swift-Compilation -- /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc -module-name iosApp -Onone -enforce-exclusivity\=checked @/Users/logic/AndroidStudioProjects/NewsKMP/build/ios/iosApp.build/Debug-iphonesimulator/iosApp.build/Objects-normal/arm64/iosApp.SwiftFileList -DDEBUG -sdk /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator17.2.sdk -target arm64-apple-ios16.0-simulator -enable-bare-slash-regex -g -module-cache-path /Users/logic/Library/Developer/Xcode/DerivedData/ModuleCache.noindex -Xfrontend -serialize-debugging-options -enable-testing -index-store-path /Users/logic/Library/Developer/Xcode/DerivedData/iosApp-ahyawhgcixhgvpfbmqhivjfzedpb/Index.noindex/DataStore -swift-version 5 -I /Users/logic/AndroidStudioProjects/NewsKMP/build/ios/Debug-iphonesimulator -F /Users/logic/AndroidStudioProjects/NewsKMP/build/ios/Debug-iphonesimulator -F /Users/logic/AndroidStudioProjects/NewsKMP/shared/build/xcode-frameworks/Debug/iphonesimulator17.2 -c -j10 -enable-batch-mode -incremental -Xcc -ivfsstatcache -Xcc /Users/logic/Library/Developer/Xcode/DerivedData/SDKStatCaches.noindex/iphonesimulator17.2-21C52-4f2951bfe8f3cd53c99228b0131e163e.sdkstatcache -output-file-map /Users/logic/AndroidStudioProjects/NewsKMP/build/ios/iosApp.build/Debug-iphonesimulator/iosApp.build/Objects-normal/arm64/iosApp-OutputFileMap.json -use-frontend-parseable-output -save-temps -no-color-diagnostics -serialize-diagnostics -emit-dependencies -emit-module -emit-module-path /Users/logic/AndroidStudioProjects/NewsKMP/build/ios/iosApp.build/Debug-iphonesimulator/iosApp.build/Objects-normal/arm64/iosApp.swiftmodule -validate-clang-modules-once -clang-build-session-file /Users/logic/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/Session.modulevalidation -Xcc -I/Users/logic/AndroidStudioProjects/NewsKMP/build/ios/iosApp.build/Debug-iphonesimulator/iosApp.build/swift-overrides.hmap -emit-const-values -Xfrontend -const-gather-protocols-file -Xfrontend /Users/logic/AndroidStudioProjects/NewsKMP/build/ios/iosApp.build/Debug-iphonesimulator/iosApp.build/Objects-normal/arm64/iosApp_const_extract_protocols.json -Xcc -iquote -Xcc /Users/logic/AndroidStudioProjects/NewsKMP/build/ios/iosApp.build/Debug-iphonesimulator/iosApp.build/iosApp-generated-files.hmap -Xcc -I/Users/logic/AndroidStudioProjects/NewsKMP/build/ios/iosApp.build/Debug-iphonesimulator/iosApp.build/iosApp-own-target-headers.hmap -Xcc -I/Users/logic/AndroidStudioProjects/NewsKMP/build/ios/iosApp.build/Debug-iphonesimulator/iosApp.build/iosApp-all-target-headers.hmap -Xcc -iquote -Xcc /Users/logic/AndroidStudioProjects/NewsKMP/build/ios/iosApp.build/Debug-iphonesimulator/iosApp.build/iosApp-project-headers.hmap -Xcc -I/Users/logic/AndroidStudioProjects/NewsKMP/build/ios/Debug-iphonesimulator/include -Xcc -I/Users/logic/AndroidStudioProjects/NewsKMP/build/ios/iosApp.build/Debug-iphonesimulator/iosApp.build/DerivedSources-normal/arm64 -Xcc -I/Users/logic/AndroidStudioProjects/NewsKMP/build/ios/iosApp.build/Debug-iphonesimulator/iosApp.build/DerivedSources/arm64 -Xcc -I/Users/logic/AndroidStudioProjects/NewsKMP/build/ios/iosApp.build/Debug-iphonesimulator/iosApp.build/DerivedSources -Xcc -DDEBUG\=1 -emit-objc-header -emit-objc-header-path /Users/logic/AndroidStudioProjects/NewsKMP/build/ios/iosApp.build/Debug-iphonesimulator/iosApp.build/Objects-normal/arm64/iosApp-Swift.h -working-directory /Users/logic/AndroidStudioProjects/NewsKMP/iosApp -experimental-emit-module-separately -disable-cmo

Ld /Users/logic/AndroidStudioProjects/NewsKMP/build/ios/Debug-iphonesimulator/iosApp.app/iosApp normal (in target 'iosApp' from project 'iosApp')
    cd /Users/logic/AndroidStudioProjects/NewsKMP/iosApp
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -Xlinker -reproducible -target arm64-apple-ios16.0-simulator -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator17.2.sdk -O0 -L/Users/logic/AndroidStudioProjects/NewsKMP/build/ios/EagerLinkingTBDs/Debug-iphonesimulator -L/Users/logic/AndroidStudioProjects/NewsKMP/build/ios/Debug-iphonesimulator -F/Users/logic/AndroidStudioProjects/NewsKMP/build/ios/EagerLinkingTBDs/Debug-iphonesimulator -F/Users/logic/AndroidStudioProjects/NewsKMP/build/ios/Debug-iphonesimulator -F/Users/logic/AndroidStudioProjects/NewsKMP/iosApp/../shared/build/xcode-frameworks/Debug/iphonesimulator17.2 -filelist /Users/logic/AndroidStudioProjects/NewsKMP/build/ios/iosApp.build/Debug-iphonesimulator/iosApp.build/Objects-normal/arm64/iosApp.LinkFileList -Xlinker -rpath -Xlinker @executable_path/Frameworks -dead_strip -Xlinker -object_path_lto -Xlinker /Users/logic/AndroidStudioProjects/NewsKMP/build/ios/iosApp.build/Debug-iphonesimulator/iosApp.build/Objects-normal/arm64/iosApp_lto.o -Xlinker -export_dynamic -Xlinker -no_deduplicate -Xlinker -objc_abi_version -Xlinker 2 -fobjc-link-runtime -L/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator -L/usr/lib/swift -Xlinker -add_ast_path -Xlinker /Users/logic/AndroidStudioProjects/NewsKMP/build/ios/iosApp.build/Debug-iphonesimulator/iosApp.build/Objects-normal/arm64/iosApp.swiftmodule -framework shared -Xlinker -sectcreate -Xlinker __TEXT -Xlinker __entitlements -Xlinker /Users/logic/AndroidStudioProjects/NewsKMP/build/ios/iosApp.build/Debug-iphonesimulator/iosApp.build/iosApp.app-Simulated.xcent -Xlinker -sectcreate -Xlinker __TEXT -Xlinker __ents_der -Xlinker /Users/logic/AndroidStudioProjects/NewsKMP/build/ios/iosApp.build/Debug-iphonesimulator/iosApp.build/iosApp.app-Simulated.xcent.der -Xlinker -no_adhoc_codesign -Xlinker -dependency_info -Xlinker /Users/logic/AndroidStudioProjects/NewsKMP/build/ios/iosApp.build/Debug-iphonesimulator/iosApp.build/Objects-normal/arm64/iosApp_dependency_info.dat -o /Users/logic/AndroidStudioProjects/NewsKMP/build/ios/Debug-iphonesimulator/iosApp.app/iosApp
ld: Undefined symbols:
  _sqlite3_bind_blob, referenced from:
      _co_touchlab_sqliter_sqlite3_sqlite3_bind_blob_wrapper69 in shared[arm64][2](shared.framework.o)
  _sqlite3_bind_double, referenced from:
      _co_touchlab_sqliter_sqlite3_sqlite3_bind_double_wrapper71 in shared[arm64][2](shared.framework.o)
  _sqlite3_bind_int64, referenced from:
      _co_touchlab_sqliter_sqlite3_sqlite3_bind_int64_wrapper73 in shared[arm64][2](shared.framework.o)
  _sqlite3_bind_null, referenced from:
      _co_touchlab_sqliter_sqlite3_sqlite3_bind_null_wrapper74 in shared[arm64][2](shared.framework.o)
  _sqlite3_bind_parameter_index, referenced from:
      _co_touchlab_sqliter_sqlite3_sqlite3_bind_parameter_index_wrapper84 in shared[arm64][2](shared.framework.o)
  _sqlite3_bind_text, referenced from:
      _co_touchlab_sqliter_sqlite3_sqlite3_bind_text_wrapper75 in shared[arm64][2](shared.framework.o)
  _sqlite3_bind_zeroblob, referenced from:
      _co_touchlab_sqliter_sqlite3_sqlite3_bind_zeroblob_wrapper80 in shared[arm64][2](shared.framework.o)
  _sqlite3_busy_timeout, referenced from:
      _co_touchlab_sqliter_sqlite3_sqlite3_busy_timeout_wrapper22 in shared[arm64][2](shared.framework.o)
  _sqlite3_changes, referenced from:
      _co_touchlab_sqliter_sqlite3_sqlite3_changes_wrapper16 in shared[arm64][2](shared.framework.o)
  _sqlite3_clear_bindings, referenced from:
      _co_touchlab_sqliter_sqlite3_sqlite3_clear_bindings_wrapper85 in shared[arm64][2](shared.framework.o)
  _sqlite3_close, referenced from:
      _co_touchlab_sqliter_sqlite3_sqlite3_close_wrapper6 in shared[arm64][2](shared.framework.o)
  _sqlite3_close_v2, referenced from:
      _co_touchlab_sqliter_sqlite3_sqlite3_close_v2_wrapper7 in shared[arm64][2](shared.framework.o)
  _sqlite3_column_blob, referenced from:
      _co_touchlab_sqliter_sqlite3_sqlite3_column_blob_wrapper99 in shared[arm64][2](shared.framework.o)
  _sqlite3_column_bytes, referenced from:
      _co_touchlab_sqliter_sqlite3_sqlite3_column_bytes_wrapper106 in shared[arm64][2](shared.framework.o)
  _sqlite3_column_count, referenced from:
      _co_touchlab_sqliter_sqlite3_sqlite3_column_count_wrapper86 in shared[arm64][2](shared.framework.o)
  _sqlite3_column_double, referenced from:
      _co_touchlab_sqliter_sqlite3_sqlite3_column_double_wrapper100 in shared[arm64][2](shared.framework.o)
  _sqlite3_column_int64, referenced from:
      _co_touchlab_sqliter_sqlite3_sqlite3_column_int64_wrapper102 in shared[arm64][2](shared.framework.o)
  _sqlite3_column_name, referenced from:
      _co_touchlab_sqliter_sqlite3_sqlite3_column_name_wrapper87 in shared[arm64][2](shared.framework.o)
  _sqlite3_column_text, referenced from:
      _co_touchlab_sqliter_sqlite3_sqlite3_column_text_wrapper103 in shared[arm64][2](shared.framework.o)
  _sqlite3_column_type, referenced from:
      _co_touchlab_sqliter_sqlite3_sqlite3_column_type_wrapper108 in shared[arm64][2](shared.framework.o)
  _sqlite3_db_config, referenced from:
      knifunptr_co_touchlab_sqliter_sqlite314_sqlite3_db_config in shared[arm64][2](shared.framework.o)
  _sqlite3_db_readonly, referenced from:
      _co_touchlab_sqliter_sqlite3_sqlite3_db_readonly_wrapper177 in shared[arm64][2](shared.framework.o)
  _sqlite3_errmsg, referenced from:
      _co_touchlab_sqliter_sqlite3_sqlite3_errmsg_wrapper53 in shared[arm64][2](shared.framework.o)
  _sqlite3_exec, referenced from:
      _co_touchlab_sqliter_sqlite3_sqlite3_exec_wrapper8 in shared[arm64][2](shared.framework.o)
  _sqlite3_finalize, referenced from:
      _co_touchlab_sqliter_sqlite3_sqlite3_finalize_wrapper109 in shared[arm64][2](shared.framework.o)
  _sqlite3_last_insert_rowid, referenced from:
      _co_touchlab_sqliter_sqlite3_sqlite3_last_insert_rowid_wrapper14 in shared[arm64][2](shared.framework.o)
  _sqlite3_open_v2, referenced from:
      _co_touchlab_sqliter_sqlite3_sqlite3_open_v2_wrapper43 in shared[arm64][2](shared.framework.o)
  _sqlite3_prepare16_v2, referenced from:
      _co_touchlab_sqliter_sqlite3_sqlite3_prepare16_v2_wrapper61 in shared[arm64][2](shared.framework.o)
  _sqlite3_reset, referenced from:
      _co_touchlab_sqliter_sqlite3_sqlite3_reset_wrapper110 in shared[arm64][2](shared.framework.o)
  _sqlite3_step, referenced from:
      _co_touchlab_sqliter_sqlite3_sqlite3_step_wrapper97 in shared[arm64][2](shared.framework.o)
clang: error: linker command failed with exit code 1 (use -v to see invocation)

warning: Run script build phase 'Run Script' will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'iosApp' from project 'iosApp')
** BUILD FAILED **


The following build commands failed:
	Ld /Users/logic/AndroidStudioProjects/NewsKMP/build/ios/Debug-iphonesimulator/iosApp.app/iosApp normal (in target 'iosApp' from project 'iosApp')
(1 failure)
r

Romão

02/24/2024, 6:19 PM
hello, seems slqlite is not being imported, you have to add it manually into xcode project -> https://stackoverflow.com/questions/48408951/how-to-correctly-add-sqlite-frameworks-to-the-xcode-project
❤️ 1
10 Views