Universal Frameworks and Requirements for Deployment

I got some beacons from a company who provides an SDK to connect to them. They provided two sets of framework files which the SDK is dependent on. The first set is built for Arm 64, and the second is built for x86.

I am using them to build a framework for a company which says they require frameworks they integrate into their apps to work for both device and simulator. I think this is primarily for convenience during development.

I've run into some walls trying to fulfill these requirements and have some questions about what is possible.

  1. The Beacon manufacturer claims the x86 framework files should work for both simulator and device during development, and that arm64 would be for deployment to the app store. I am unable to get x86 to work during development when my device is plugged in though. What does a framework need to work for both device and simulator?

  2. Is is possible, from strictly arm64 and strictly x86 framework files, to build universal framework files that supports both arm64 and x86? Then from those to build a new universal framework that leverages all of those?

  3. Can this resulting framework not only be used for development on simulator and device, but also be deployed to the app store?

Thank you kindly, for your expertise.

This doesn’t depend on the architectures for which the frameworks are built, it depends on the platforms for which the frameworks are built—and in our ecosystem, devices and simulators are considered different platforms.

Therefore, if you’re developing and deploying for macOS, the provider of the frameworks should build them as a universal binary for x86_64 and arm64 architectures since both architectures are in use on one platform.

However, if you’re developing and deploying for iOS, the provider of the frameworks should provide separate simulator and device frameworks, since those are separate platforms and must not be combined into a single binary, regardless of the architectures involved. (A simulator binary can have both arm64 and x86_64, after all, since the simulator runs on both macOS architectures.)

Universal Frameworks and Requirements for Deployment
 
 
Q