Error during "xcodebuild archive" for simulator: Undefined symbols for architecture arm64: "_OBJC_CLASS_$_FraudForce", referenced from: objc-class-ref in IovationService.o ld: symbol(s) not found for architecture arm64 clang: error: linker co

Hi, I'm trying to integrate with external framework (xcframework bundle)

Code works, but when I'm trying to prepare xcframework from my framework I get such mistake:

//this command was successfull xcodebuild archive
-scheme MyFramework
-destination="iOS"
-archivePath ./build/ios-arm64.xcarchive
-sdk iphoneos
SKIP_INSTALL=NO
BUILD_LIBRARIES_FOR_DISTRIBUTION=YES

//this failed xcodebuild archive
-scheme MyFramework
-destination="iOS Simulator"
-archivePath ./build/ios-simulator.xcarchive
-sdk iphonesimulator
SKIP_INSTALL=NO
BUILD_LIBRARIES_FOR_DISTRIBUTION=YES

Undefined symbols for architecture arm64: "OBJC_CLASS$_LocalXCFramework", referenced from: objc-class-ref in IovationService.o ld: symbol(s) not found for architecture arm64 clang: error: linker command failed with exit code 1 (use -v to see invocation)

Thanks in advance

-destination 'generic/platform=iOS Simulator' 
-destination 'generic/platform=iOS' 

Please see: https://www.raywenderlich.com/17753301-creating-a-framework-for-ios

I've created xcframework. The reason was in this log line: note: '/Users/eugene/Documents/ios-examples/MyFramework/ThirdPartyFramework.xcframework' is missing architecture(s) required by this target (arm64), but may still be link-compatible.

This solution helped me: You can try to add arm64 to the Build Settings -> Architectures -> Excluded Architectures for Any iOS Simulator SDK.

Error during "xcodebuild archive" for simulator: Undefined symbols for architecture arm64: "_OBJC_CLASS_$_FraudForce", referenced from: objc-class-ref in IovationService.o ld: symbol(s) not found for architecture arm64 clang: error: linker co
 
 
Q