Recently, I was working on the confusion tool chain for iOS, a plugin in Xcode, and I met a customer who was using M1 computer. Boy, the compilation with Xcode was successful, and the shell script Xcodebuild was also successful. The only thing that fails is calling native shell scripts in Jenkins, which is not supported -fembed-bitcode, which feels like the Xcode obfuscating toolchain has become a native toolchain, which is weird. Jenkins installed the JDK as x86_64, and Xcodebuild as ARM64 and x86_64. It may switch to Xcodebuild’s ARM after compiling the JDK directly from x86_64 There’s something wrong with the 64 cut. How to solve this problem by adding arch-arm64 before xcodebuild and forcing the use of the arm64 architecture arch-arm64 xcodebuild-toolchain