Xcode archive Error

Hello

when i execute this command to generate a framework for arm 64 :

xcodebuild archive
-workspace BlueStackSDK.xcworkspace
-scheme "$n"
-sdk iphonesimulator
-archivePath "$BUILD_PATH/$n/ios_simulators64.xcarchive"
-arch arm64  BUILD_LIBRARY_FOR_DISTRIBUTION=YES
BITCODE_GENERATION_MODE=bitcode 2>&1
SKIP_INSTALL=NO

i'm getting this error :

normal arm64 objective-c com.apple.compilers.llvm.clang.1_0.compiler

Also this error :

error:     unsupported Swift architecture #error unsupported Swift architecture  ^ 1 error generated. /Users/Blabla/Documents/Projects/MAdvertise/Blue Stack New Hope/BlueStackSDK/Adapters/BlueStackLocationAdapter/MAdvertiseLocationAdapter.m:10:9: fatal error:     could not build module 'MAdvertiseLocation' #import <MAdvertiseLocation/MAdvertiseLocation-Swift.h>

any suggestions thank you

Hello, It was working before xcode 14 release. I. had this issue only with the new xcode 14. any explanation ? thank you

Xcode swiftSDK xcodebuild archive  well only with the new Xcode version 14.1 , And how ?

Xcode archive Error
 
 
Q