VPN error???
MuZiLee opened this issue · comments
Warning(7): is not general line !
Warning(8): is not general line !
Warning(9): is not general line !
Warning(10): is not general line !
***************SFVPNManager startStopToggled
starting!!!
VPN Status:Connecting
getAll error:no such table: session (code: 1)
VPN Status:Disconnected
getAll error:no such table: session (code: 1)
我点击run之后就会出现以上错误。
请问出现以上的问题应该怎么解决?
需要设置App Group,数据库是通过App Group在主程序与NetworkExtension之间实现共享的,没有设置App Group会找不到对应的数据库和table
TunnelServices/MitmService.swift 里16行,也需要修改下
group设置 修改过也是一样的问题,
@Lojii 大佬有空解答一下疑惑
需要检查 providerBundleIdentifier
属性是否是自己修改的,把这个配置一下就 OK 吧
@Lojii 大佬有空解答一下疑惑
这个问题你解决了吗
@Lojii 大佬有空解答一下疑惑
这个问题你解决了吗
看了下代码,因为数据库没有建表引起的
在AppDelegate加入28行暂时解决,暂时未发现副作用,希望作者大大可以解决下~
getAll error:no such table: session (code: 1)
@orangeboyChen 虽然不报错了, 还是不行. 好奇怪 (ios 14)
`
[info]-ASProtocol+Schame.swift[41]:createTable() --> Create Table Task success
***************SFVPNManager startStopToggled
starting!!!
VPN Status:Connecting
VPN Status:Disconnected
`