When I created the .a package with a script, I kept getting an error message: Building for iOS Simulator, but the linked framework '***.framework' was built for iOS. (in target '***' from project '***') 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 ‘***.framework' was built for iOS. (in target ‘***’ from project ‘***’)
BUILD FAILED
fatal error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/lipo: can't open input file: ../build/Release-iphonesimulator/***/***.a (No such file or directory)
note: Planning build
note: Constructing build description
error: Building for iOS Simulator, but the linked framework ‘***.framework' was built for iOS. (in target ‘***’ from project ‘***’)
BUILD FAILED
fatal error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/lipo: can't open input file: ../build/Release-iphonesimulator/***/***.a (No such file or directory)