Hi,
I tried to create binding for a library which is published with its source code in a pod.
I used sharpie pod
commands, but the output library is just for device, not including library for simulator.
Is that a bug or do I need to pass in any other arguments?
Regards.
Answers
What is the answer to this?
No one answered, sadly.
i recently working with with
sharpie pod
when you creating any sharpie that will release multiple
.a
files, which actually library files to support different architectures of devices i.e. x86, 64 (for simulator) or ARM7, ARMV7 and ARM64.you have to merge this file into one library file with use of makefile.ios
here is the link that will demonstrate how to create use makefile
https://stackoverflow.com/questions/28428051/how-to-create-a-static-library-using-makefile-ios-in-rubber-band-project
I solved this problem by creating Release-iphoneos framework and Release-iphonesimulator framework and then merged them using lipo.
Most answers would end here, but I will give you the steps as well
Here is the solution:
1. sharpie pod init ios YourPodName
2. sharpie pod bind
3. Open Pods/Pods.xcodeproj in XCode
4. Build Release-iphonesimulator framework
5. Merge the frameworks into a single universal-framework
6. Verification
Hope this helps someone.
Let me know if you still have any doubts.
@ashwindmk Thank you a lot!