有没有人设法使用 Direct to SwiftUI 运行 获得 DVDRental 示例?
Did anyone manage to get the DVDRental example using Direct to SwiftUI running?
我已经加载完成的 DVDRental 演示应用程序
git clone -b branches/10-customized \
https://github.com/DirectToSwift/DVDRental.git
也尝试过
git clone -b branches/01-default-rulemodel \
https://github.com/DirectToSwift/DVDRental.git
(参见 http://www.alwaysrightinstitute.com/directtoswiftui/)并恢复了演示数据库。
目前,我正在尝试按照 http://www.alwaysrightinstitute.com/directtoswiftui/ 和自述文件 https://github.com/DirectToSwift/DVDRental 中的说明执行该应用程序。这意味着我已经相应地命名了数据库并构建了应用程序。事实上,你应该只安装数据库,下载项目,它应该是 运行 没有任何变化。但是,该应用程序仍保留在启动屏幕上,并显示 "connecting database" 消息。
经过详尽的调试过程,我得出的结论是认证有问题。但是,我无法确定到底出了什么问题。
有没有人试过并且有效?
使用:
Xcode 11.3.1; Swift 5; iOS13; Postgres.app 版本 2.3.3e; PostgreSQL 12
知道如何解决这个问题吗?
更新:数据库没有问题。我可以通过 psql、postico 或 navicat 等客户端连接,或者使用 PostgresClientKit 连接我自己的应用程序。问题已被追踪到身份验证过程。因此我很确定问题出在某处
显然,开发人员"forgot"启用身份验证。
Right, it is quite possible that I didn't have auth on. I'll see
whether I can give it a try on the weekend.
不用说了,两个月了还是没修好
我已经加载完成的 DVDRental 演示应用程序
git clone -b branches/10-customized \
https://github.com/DirectToSwift/DVDRental.git
也尝试过
git clone -b branches/01-default-rulemodel \
https://github.com/DirectToSwift/DVDRental.git
(参见 http://www.alwaysrightinstitute.com/directtoswiftui/)并恢复了演示数据库。 目前,我正在尝试按照 http://www.alwaysrightinstitute.com/directtoswiftui/ 和自述文件 https://github.com/DirectToSwift/DVDRental 中的说明执行该应用程序。这意味着我已经相应地命名了数据库并构建了应用程序。事实上,你应该只安装数据库,下载项目,它应该是 运行 没有任何变化。但是,该应用程序仍保留在启动屏幕上,并显示 "connecting database" 消息。
经过详尽的调试过程,我得出的结论是认证有问题。但是,我无法确定到底出了什么问题。
有没有人试过并且有效?
使用:
Xcode 11.3.1; Swift 5; iOS13; Postgres.app 版本 2.3.3e; PostgreSQL 12
知道如何解决这个问题吗?
更新:数据库没有问题。我可以通过 psql、postico 或 navicat 等客户端连接,或者使用 PostgresClientKit 连接我自己的应用程序。问题已被追踪到身份验证过程。因此我很确定问题出在某处
显然,开发人员"forgot"启用身份验证。
Right, it is quite possible that I didn't have auth on. I'll see whether I can give it a try on the weekend.
不用说了,两个月了还是没修好