When I created the .a package with a script, I kept getting an error message: Building for iOS Simulator, but the linked framework 'xxx.framework' was built for iOS. (in target 'xxx' from project 'xxx') What configuration should I modify to fix this problem?
Xcode12 script creating .a package problem
note: Using new build system
note: Planning build
note: Constructing build description
error: Building for iOS Simulator, but the linked framework ‘xxx.framework' was built for iOS. (in target ‘xxx’ from project ‘xxx’)
BUILD FAILED
fatal error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/lipo: can't open input file: ../build/Release-iphonesimulator/xxx/xxx.a (No such file or directory)
note: Planning build
note: Constructing build description
error: Building for iOS Simulator, but the linked framework ‘xxx.framework' was built for iOS. (in target ‘xxx’ from project ‘xxx’)
BUILD FAILED
fatal error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/lipo: can't open input file: ../build/Release-iphonesimulator/xxx/xxx.a (No such file or directory)