groue / GRMustache

Flexible and production-ready Mustache templates for MacOS Cocoa and iOS
http://mustache.github.com/
MIT License
1.44k stars 190 forks source link

Static library not built with bitcode #102

Open muellermichel opened 9 years ago

muellermichel commented 9 years ago

I'd like to add the static libary to a project, but it is not compatible anymore because of lacking bitcode. I also didn't find an xCode project to build the static library with that flag enabled. Is there an easy way to solve this?

groue commented 9 years ago

Hello Michel.

Yes, it is possible to do so, but you first need to tell me which platform you target. Is is watchOS, iOS, OS X, tvOS?

muellermichel commented 9 years ago

Hi. It's iOS. I temporarily solved it by just adding the sources to the project instead, that works for me too. But thanks for your quick reaction!

groue commented 9 years ago

OK, so that's cool for now. Yet your request is perfectly legit: let's keep this issue open until it is resolved.

MarcDahlem commented 8 years ago

Same problem here. Can you please rebuild the static library with bitcode enabled, so that the LLVM Optimization from Apple works?

groue commented 8 years ago

hello @MarcDahlem. Do you know how to do this? A PR would be welcome.

MarcDahlem commented 8 years ago

hi @groue thanks for your quick answer.

I don't know your exact build process, but I think you're using xcodebuild in your makefile.

Therefore, here is an StackOverflow Answer, which explains in detail how to do it: http://stackoverflow.com/a/31486233/6920268

Maybe there is also another way, by directly changing the xcodeproj. See: http://stackoverflow.com/questions/31233395/ios-library-to-bitcode http://stackoverflow.com/questions/32868297/compiling-ios-library-with-bitcode-enabled

How to test if it works:

groue commented 8 years ago

Great, @MarcDahlem, you have all the pieces of the puzzle. I think you can apply it to the Makefile that produces the static library.