I have created new Framework in Swift which has some Objective-C files. I need to create XCFramework, so that is should work properly in target application. Below is my script for archive which is failing. However when I change settings of Strip Linked Products to No, it's passing archiving, however when using in target applications, Objective-C files are showing error no module found.
xcodebuild archive
-scheme Sample
-destination "generic/platform=iOS Simulator"
-archivePath "archives/Sample-Simulator"
SKIP_INSTALL=NO
BUILD_LIBRARY_FOR_DISTRIBUTION=YES
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…