我尝试实现 SQLite3 库以通过 CocoaPods 与 SQLite 一起使用,它给了我一个我不明白的错误

I try to implement the SQLite3 library to work with SQLite through CocoaPods and it gives me a bug that I don't understand

提问人:DQP 提问时间:4/10/2019 更新时间:4/10/2019 访问量:119

问:

我不明白这个错误的原因,因为它没有指定太多。我想使用 CocoaPods 使用 SQLite3 库创建一个 SQLite 数据库,但是在解决一些错误后运行应用程序时,我跳过了这个。我迷路了你能帮我吗?

这是我的 Podfile 文件代码:

project 'TFG.xcodeproj'

# Uncomment the next line to define a global platform for your project
# platform :ios, '9.0'

target 'TFG' do

  # Comment the next line if you're not using Swift and don't want to use dynamic frameworks
  use_frameworks!
  # Pods for TFG
  #pod 'Firebase'
  pod 'Firebase/Core'
  pod 'Firebase/Firestore'
  pod 'Firebase/Auth'
  pod 'Firebase/Functions'
  pod 'FirebaseUI'
  pod 'Alamofire'
  pod 'SQLite.swift', '~> 0.11.5'


  target 'TFGTests' do
    inherit! :search_paths
    # Pods for testing
  end

  target 'TFGUITests' do
    inherit! :search_paths
    # Pods for testing
  end

end

这是在以下代码的第四行中给我“”跳转的那个:Thread 1: Signal SIGABRT

dyld`__abort_with_payload:
    0x101bd2598 <+0>:  mov    x16, #0x209
    0x101bd259c <+4>:  svc    #0x80
->  0x101bd25a0 <+8>:  b.lo   0x101bd25b8               ; <+32>
    0x101bd25a4 <+12>: stp    x29, x30, [sp, #-0x10]!
    0x101bd25a8 <+16>: mov    x29, sp
    0x101bd25ac <+20>: bl     0x101bd1934               ; cerror_nocancel
    0x101bd25b0 <+24>: mov    sp, x29
    0x101bd25b4 <+28>: ldp    x29, x30, [sp], #0x10
    0x101bd25b8 <+32>: ret    
iOS的 iPhone 的SQLite SWIFT4

评论

0赞 Ryan Maloney 4/11/2019
添加异常断点,重现问题,然后发布结果。这将为您提供更好的堆栈跟踪,并希望更好地指示崩溃的来源。
0赞 Ryan Maloney 4/11/2019
要添加异常断点,请转到 Xcode 左侧的断点选项卡(或按 Cmd + 8),然后转到左下角,点击 + 并选择“异常断点...”并保留默认选项。

答: 暂无答案