我正在为iOS开发一个静态库,现在我正在使用测试项目测试我的静态库(libXYZ.a),我可以在设备上运行它,但是当我尝试时 为了对测试项目进行存档,我遇到了一些错误:
ld: warning: ignoring file /Users/Ravindra/Desktop/SDK Project/Static Library/XYZSDKTest/XYZSDKTest/XYZ_SDK/libXYZSDK.a, missing required architecture arm64 in file /Users/Ravindra/Desktop/SDK Project/Static Library/XYZSDKTest/XYZSDKTest/XYZ_SDK/libXYZSDK.a (2 slices)
Undefined symbols for architecture arm64:
"_OBJC_CLASS_$_XYZ", referenced from:
objc-class-ref in AppDelegate.o
"_OBJC_CLASS_$_XYZConfiguration", referenced from:
objc-class-ref in AppDelegate.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
我使用以下命令构建通用构建:
lipo -create "libXYZSDK_simulator.a" "libXYZSDK_device.a" -output "libXYZSDK.a"
请帮我解决这个问题。