Archive Failing for iPhoneOS SDK in Xcode 26

When i am trying to archive a framework for ML, using below command:

xcodebuild -workspace "./src/MLProject.xcworkspace" -configuration "Release" -sdk "iphoneos" -archivePath "./gen/out/Archives/Release-iphoneos/MLProject" -scheme "MLProject" -derivedDataPath "./gen/out/" archive BUILD_LIBRARY_FOR_DISTRIBUTION=YES SKIP_INSTALL=NO

The same command used to work fine on Xcode 16.4. Attached is the detailed error

Archive Failing for iPhoneOS SDK in Xcode 26
 
 
Q