How to get the arm64 and x86 information of App architecture?

I have used DTK + xCode12 to develop an application, and the build setting uses Standard architectures.
I use "lipo -archs" command to check the information and I confirm that the application is already x86_64 arm64.

My question is, can this information be obtained by the Cocoa API?
Answered by DTS Engineer in 629550022

can this information be obtained by the Cocoa API?

Yes. The highest-level API I can think of here is the executableArchitectures property on Bundle. However, depending on your specific requirements there’s a whole world of lower-level APIs available to you.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@apple.com"
Accepted Answer

can this information be obtained by the Cocoa API?

Yes. The highest-level API I can think of here is the executableArchitectures property on Bundle. However, depending on your specific requirements there’s a whole world of lower-level APIs available to you.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@apple.com"
How to get the arm64 and x86 information of App architecture?
 
 
Q