Resolving Framework Compatibility Across Different Xcode Versions

I have an early-stage framework project where the Xcode project directory is named HXiMateSDK. When I switched to a new Mac device, the framework compiled using the newly installed version of Xcode failed to compile in the old version of Xcode on the old machine. My clients might use my framework in different Xcode versions, so I need to resolve this issue.

STEPS TO REPRODUCE

  1. The built product HXiMateSDK.framework from the new machine A, which was compiled using the latest Xcode version 26.0.1 (17A400).
  2. When creating a new project justTestNew on the new machine A using the latest Xcode version 26.0.1 (17A400), calling the method getSDKVersion from the HXiMateSDK.framework compiles successfully.
  3. When creating a new project justTestOldEnv on the old machine B using Xcode 13.2.1 (13C100), calling the method getSDKVersion from the HXiMateSDK.framework results in a compilation failure.

@hxsmart was able to provide me with an example project attached to a code-level support request, so I can see that you are building a closed source framework, where you're distributing a binary to your clients, rather than distributing source code.

In your project, you have a precompiled .framework file, with Objective-C source code. I don't readily have a version of Xcode 13.2.1 to use to see the compilation error in that project myself, so are you able to provide the text of that error message here?

— Ed Ford,  DTS Engineer

Resolving Framework Compatibility Across Different Xcode Versions
 
 
Q