stephencelis / SQLite.swift

A type-safe, Swift-language layer over SQLite3.
MIT License
9.57k stars 1.54k forks source link

Bitcode Dropped - iPhone Simulator build architecture X86-64 #1135

Closed nikiizvorski closed 2 years ago

nikiizvorski commented 2 years ago

Hello. I am having issues generating bitcode for the SQLite framework i am using cocoapods to add it as a dependency to my project. I can see that there is bitcode enabled and all flags are added to the pods project and my project. When archiving to create a framework i am having a problem with bitcode. It doesn't seem to make an issue for my iphone build but for simulator it does and for the arch type: x86_64. Would much appreciate any feedback on the subject.

Build Information

Error Information

ld: warning: all bitcode will be dropped because 'x86_64/SQLite.swift/SQLite.framework/SQLite' was built without bitcode. You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE), obtain an updated library from the vendor, or disable bitcode for this target.

jberkel commented 2 years ago

The message you posted (ld: warning) looks like a warning message, are you sure this stops the build from completing? Maybe the error is somewhere else.

nikiizvorski commented 2 years ago

Hey @jberkel it doesn't stop processing the build but later it have an effect when I need to do some manipulation on top.

jberkel commented 2 years ago

Sorry, your bug report is not very helpful. What exactly doesn't work?

nikiizvorski commented 2 years ago

Hey @jberkel after trying to archive my project the build works fine without any issues but when it comes to achieving the simulator build it fails to produce bitcode for SQLite with the error message that I have shown above. I would like to generate it with bitcode since I need to do additional manipulation on top of the build that should have bitcode

jberkel commented 2 years ago

I'm not sure if it even makes sense to have bitcode for simulator builds, or if it's possible. Bitcode is meant for AppStore submissions, and you can't submit simulator builds to Apple.

nikiizvorski commented 2 years ago

Yes. That's correct. Seems bitcode is available only for iOS and macOS there is a way to generate it for simulator but I don't believe it makes sense.