You can easily check the problem with the below environment variables,
We can able to resolve the problem with the help of hardcode the Standard Architecture to x8664 and Valid Architecture to x8664
for both Library Xcode project(It used for build the static library) and Application generate Xcode project(Used for generate the application).
But the trouble is we are using the same project for both iOS Simulator and iOS Device building. So we can't go with the hardcoded value.
For this issue please find my analysis, if anything wrong please correct me.
I have checked the below environment variables in both Xcode11 and Xcode12 while building the library for iOS Simulator and I found the arm_64 appended in all the environment variables in Xcode12.
| export ARCHS="i386 x86_64"|
| export ARCHS_STANDARD="i386 x86_64"|
| export ARCHS_STANDARD_32_64_BIT="i386 x86_64"|
| export ARCHS_STANDARD_64_BIT=x86_64|
| export ARCHS_STANDARD_INCLUDING_64_BIT="i386 x86_64"|
| export ARCHS_UNIVERSAL_IPHONE_OS="i386 x86_64"|
| export VALID_ARCHS="i386 x86_64"|
| export ARCHS\=arm64\ i386\ x86_64|
| export ARCHS_STANDARD\=arm64\ i386\ x86_64|
| export ARCHS_STANDARD_32_64_BIT\=arm64\ i386\ x86_64|
| export ARCHS_STANDARD_64_BIT\=arm64\ x86_64|
| export ARCHS_STANDARD_INCLUDING_64_BIT\=arm64\ i386\ x86_64|
| export ARCHS_UNIVERSAL_IPHONE_OS\=arm64\ i386\ x86_64|
| export VALID_ARCHS\=arm64\ i386\ x86_64|
Could you please provide your quick suggestion?Note:
The above information is not help then i will file feedback request.
Above environment variable copied from my build log file.