martinrybak / SQLClient

Native Microsoft SQL Server client for iOS
http://objcsharp.wordpress.com/2013/10/15/an-open-source-sql-server-library-for-ios/
MIT License
124 stars 51 forks source link

Doesn't build for 64-bit devices #1

Closed vinced45 closed 10 years ago

vinced45 commented 10 years ago

I can't get a successful build for 64-bit idevices

martinrybak commented 10 years ago

Did you try setting Build Settings > Architectures > "Build Active Architecture Only" to No?

vinced45 commented 10 years ago

I just tried that and I'm still receiving about 25 errors. "symbol(s) not found for architecture x86_64" and the following warning: "(null): Ignoring file /Users/vince/Dev/Objc/amssql/SQLClient/libfreetds.a, missing required architecture x86_64 in file /Users/vince/Dev/Objc/amssql/SQLClient/libfreetds.a (3 slices)"

vinced45 commented 10 years ago

It looks like libfreetds.a needs to include 64bit support. Is this a library you built?

martinrybak commented 10 years ago

Yes, I built it using this script: https://github.com/patchhf/FreeTDS-iOS/blob/master/lib-build.sh

It needs to be updated to include arm64

vinced45 commented 10 years ago

When you are free are you able to rebuild this? I'm having troubles installing the neccessary files to build this.

martinrybak commented 10 years ago

Will do.

martinrybak commented 10 years ago

Here is a build with an arm64 slice: https://dl.dropboxusercontent.com/u/3784997/libfreetds.a Let me know if it works for you before I commit it. Thanks.

gagaxj commented 10 years ago

I faced the same problem before. The new libfreetds.a works very well for me. Thank you very much!

martinrybak commented 10 years ago

I added arm64 and x86_64 slices to the freetds binary and tagged it as 0.1.0. I also submitted the new podspec to CocoaPods.

vinced45 commented 10 years ago

I was also able to test this. Looks Good. Thanks for all your help and making this framework!!

martinrybak commented 10 years ago

Great, thanks!