theodelrieu / conan-darwin-toolchain

Conan build require to cross build to any darwin platform
MIT License
31 stars 21 forks source link

Bitcode support error #6

Closed paulocoutinhox closed 3 years ago

paulocoutinhox commented 5 years ago

Hi,

I don't know why, but all my libs are compiled without bitcode, but is True by default.

When i force to true, i change my profile:

include(default)

[settings]
os=iOS
os.version=9.0
arch=armv7
bitcode=True

[build_requires]
darwin-toolchain/1.0.4@theodelrieu/stable

But get error:

conan install .. --profile ios_profile -s arch=armv7
ERROR: 'settings.bitcode' doesn't exist
'settings' possible configurations are ['arch', 'arch_build', 'arch_target', 'build_type', 'compiler', 'cppstd', 'os', 'os_build', 'os_target']
make: *** [build-ios] Error 1

Can you help me?

theodelrieu commented 5 years ago

Hello,

About the latter, bitcode is an option, not a setting.

But the former is very weird, could you paste the compiler command-line?

paulocoutinhox commented 5 years ago

Hi,

Im new to conan, what this mean "bitcode is an option, not a setting."?

And how i can change this "option"?

Thanks.

theodelrieu commented 5 years ago

The difference between options and settings is a bit hard to grasp at first, but basically settings are project-wide (e.g. the OS you're targeting, the build type, etc), whereas options are package-dependent.

To solve the issue you can either:

But this still does not explain why you do not get bitcode libraries by default... Could you run lipo libmylib.a -info and paste the result?

paulocoutinhox commented 5 years ago

Hi,

$ lipo dist/ios/Core.framework/Core -info
Architectures in the fat file: dist/ios/Core.framework/Core are: armv7 armv7s arm64 arm64e 

Thanks.

theodelrieu commented 5 years ago

Hmm, could you try to remove the explicit bitcode option and build again? I'd like to see the full compiler output.