novi / mysql-swift

A type safe MySQL client for Swift
MIT License
163 stars 40 forks source link

Complie with Xcode failed #18

Closed CreatorMetaSky closed 8 years ago

CreatorMetaSky commented 8 years ago

image

I use xcode complie my codes and dependency on your mysql-swift library

the step is :

  1. use carthage update build the framework, and drag drop to the build phases
  2. add framework search path
  3. add the moudle.map path to the import paths in build settings

finally i use your sample code, but when i call pool.execute method , it always complie error.

pelease help me, thanks.

CreatorMetaSky commented 8 years ago

oh, i have fix it by make it a dylib, i think use carthage is bad for spm

novi commented 8 years ago

With SPM, Carthage or Xcode based framework may not work. Use Package.swift and swift build instead.

If you have a problem with Carthage and Xcode, add MySQL.xcodeproj into your project and link MySQL.framework in Build Phase setting of your project.