I am working on an iOS framework that requires OpenSSL for certain functionalities. To keep the framework’s size minimal, I included only the iphoneos version of OpenSSL by compiling it specifically for iOS devices and dragging it into my framework.
However, when I integrate this framework into a project and try to run it on the simulator, I get build errors because the simulator architecture (iphonesimulator) is missing.
My Questions:
- Is there a way to avoid these issues without including the iphonesimulator version of OpenSSL in my framework?
- If not, do I need to create a universal framework or xcframework that includes both iphoneos and iphonesimulator builds of OpenSSL?
- If I must create a universal framework or xcframework, what is the correct way to achieve this?
Additional Context:
- The primary goal is to keep the framework size as small as possible.
- The framework must work seamlessly on both physical devices and simulators during development.
- OpenSSL is used only within the framework and not exposed externally.
Any guidance on achieving this would be highly appreciated. If creating a universal framework or xcframework is the best solution, an example script or detailed steps would be extremely helpful.
Thank you!