graphhopper / graphhopper-ios

iOS Port of the GraphHopper road routing engine
https://www.graphhopper.com/open-source/
Apache License 2.0
69 stars 28 forks source link

Fat Static library #5

Closed dimohamdy closed 9 years ago

dimohamdy commented 9 years ago

in https://github.com/graphhopper/graphhopper-ios#terminal

Are this generate fat static library that can use for any device or simulator or not ?

karussell commented 9 years ago

Please use the mailing list to ask questions, only if there is a problem or bug post it on the issues.

clns commented 9 years ago

I'm gonna answer this here for the sake of completeness, indeed please use the mailing list for questions.

As the docs say:

This method compiles the library for the following architectures: macosx, simulator, iphoneos, so using Xcode instead is recommended.

The Terminal method creates a giant file that holds all the architectures mentioned. This is usually not what you want, because Xcode will create the necessary architectures based on the target device(s) you're building for. So there isn't any reason why you would want to compile all the architectures in a giant file like that.

dimohamdy commented 9 years ago

i didn't want to make giant project size when adding graphhopper-ios to my project (500 Mb) that make problem for my in pushing it to my git server , did you think i am wrong

clns commented 9 years ago

You don't have to push to your git server the pre-built library or any graph data. That should be part of the build process once your repo is cloned to a dev machine. You can simply add graphhopper-ios as a submodule or subtree in your main git repo and link to the files accordingly.

dimohamdy commented 9 years ago

thanks for fast replay depend on this link fat static lib will rejected from apple https://kodmunki.wordpress.com/2015/03/04/cocoa-touch-frameworks-for-ios8-remix/ and explain how to bypass apple validation

i will make submodule using this link http://stackoverflow.com/questions/5252450/using-someone-elses-repo-as-a-git-submodule-on-github

clns commented 9 years ago

I don't know about this new policy, but graphhopper-ios currently works the "j2objc way". I know about the new way of building iOS apps, using Frameworks instead of static libraries, but I just don't have enough information about it.