Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to build flatbuffers lib for iOS target to get a libflatbuffers.a #4894

Closed
shivendra14 opened this issue Aug 23, 2018 · 2 comments
Closed
Labels

Comments

@shivendra14
Copy link
Contributor

cmake -G "Xcode" gave me an xcodeproj that has target architecture as mac and iOS too.
Compiling the lib for mac gives me flatc, and libflatbuffers.a, but I am not able to compile this xcodeProj for iOS target.

I understand most of the code in flatbuffers being header only doesn't even need libflatbuffers.a, but I am using Parser which needs this library to be linked.

Can someone help me compile the the flatbuffers xcodeproj for iOS, so that I can get libflatbuffers.a that an iOS app can link to.

@aardappel
Copy link
Collaborator

We should really have some iOS specific docs, or at least some hints in the Mac specific docs.

It appears iOS needs some CMake specific hackery we don't have: https://stackoverflow.com/questions/10530849/how-to-generate-the-xcode-project-of-static-libs-for-ios-using-cmake

Or use: https://github.com/leetal/ios-cmake

@stale
Copy link

stale bot commented Aug 23, 2019

This issue has been automatically marked as stale because it has not had activity for 1 year. It will be automatically closed if no further activity occurs. To keep it open, simply post a new comment. Maintainers will re-open on new activity. Thank you for your contributions.

@stale stale bot added the stale label Aug 23, 2019
@stale stale bot closed this as completed Sep 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants