搜索
您的当前位置:首页正文

Perfect添加插件依赖注意事项

来源:二三娱乐

提示

  • 使用Perfect Assistant添加插件,记得启动Docker
  • 添加依赖后如果编译不通过尝试执行:
swift package generate-xcodeproj

Important: When a dependancy has been added to the project, the Swift Package Manager must be invoked to generate a new Xcode project file. Be aware that any customizations that have been made to this file will be lost.

添加MySQL数据库异常

mysql_error.png
  • 确认是否安装了MySQL
// 1.安装Homebrew
/usr/bin/ruby -e "$(curl -fsSL 
// 2.安装MySQL
brew install mysql
  • macOS下需要修改mysqlclient.pc(/usr/local/lib/pkgconfig/mysqlclient.pc)
    Remove the occurrance of "-fno-omit-frame-pointer". This file is read-only by default so you will need to change that first.

启动数据库异常

 Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)  
  • 方案1
// 该方法是非官方启动方式,不会产生mysql.sock
// 这个可在终端对数据库进行操作,但后台无法连接到mysql数据库
 1.unset TMPDIR
2.bash mysql.server start
  • 方案2
  • 方案3
    可重新安装MySQL数据库

!!!以上内容均是通过网上资料进行总结,有偏差望谅解

Top