iosswiftxcodexcframework

How to verify whether my xcframework generates the arm64 simulator slice correctly


I have a framework which is already being used by client applications. I am generating the framework on an intel based mac. I am also generating arm64 simulator arch for the framework. How do i verify that this arch is generated correctly without access to the new apple silicon mac?


Solution

  • You can use xcrun vtool -arch arm64 -show to check, for example:

    xcrun vtool -arch arm64 -show GoogleMaps.xcframework/ios-arm64_x86_64-simulator/GoogleMaps.framework/GoogleMaps
    
    Load command 2
          cmd LC_BUILD_VERSION
      cmdsize 32
     platform IOSSIMULATOR
        minos 13.0
          sdk 15.5
       ntools 1
         tool LD
      version 764.0
    

    You can see the IOSSIMULATOR platform