oleghnidets / OHMySQL

Swift + MySQL = ❤️
https://oleghnidets.github.io/OHMySQL/documentation/ohmysql/
MIT License
235 stars 42 forks source link

Bitcode error on Xcode 8 #6

Closed anoadragon453 closed 7 years ago

anoadragon453 commented 7 years ago

Hey there, I'm trying to use your library on Xcode 8 and any attempt at archiving an app bundled with it results in a Bitcode error on the libmysqlclient.a binary. The error is as follows:

ld: bitcode bundle could not be generated because '.../Pods/OHMySQL/OHMySQL/lib/ios/libmysqlclient.a(libmysql.o)' was built without full bitcode. All object files and libraries for bitcode must be generated from Xcode Archive or Install build for architecture arm64.

It seems the libmysqlclient.a binary needs to be rebuilt in Xcode >v8, otherwise Archiving will fail. All attempts to disable bitcode in settings have resulted in no changes. I'm currently compiling a new libmysqlclient.a binary with Xcode 8 with the hopes to solve this.

Any suggestions or alternative methods would be appreciated, thank you!

oleghnidets commented 7 years ago

Hi, I got it. Looks like I have to re-build with extra flags. I will try to do that ASAP. I believe I will be able to do provide a fix till Monday.

Thanks for letting me know.

anoadragon453 commented 7 years ago

Thanks for the quick response!

On April 22, 2017 8:27:39 AM PDT, Oleg notifications@github.com wrote:

Hi, I got it. Looks like I have to re-build with extra flags.

I will try to do that ASAP. I believe I will be able to do provide a fix till Monday.

Thanks for letting me know.

-- You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub: https://github.com/oleghnidets/OHMySQL/issues/6#issuecomment-296380763

oleghnidets commented 7 years ago

Hi there, Hope I fixed that. But before the release, I want to make sure that it works. Develop branch contains the latest changes. Could you, please, try it out pod 'OHMySQL', :git => 'https://github.com/oleghnidets/OHMySQL', :branch => 'develop' and let me know a result?

anoadragon453 commented 7 years ago

Yes, it working perfectly now. Thank you!