Xcode12 can run on the real machine, but the simulator runs an error

Xcode12 can run on the real machine, but the simulator runs an error

image.png

Solution: add simulator architecture,
find Build Settings-VALID_ARCHS and add x86_64 inside

image.png

This is a blogger's post (https://www.jianshu.com/p/3f740e5e9ec8)
The error I encountered is similar to this blogger’s
Insert picture description here

There is another kind of error report, no third party library can be found
Insert picture description here

But the solution is the same as adding x86_64,over to valid_archs.

Guess you like

Origin blog.csdn.net/qq_28285625/article/details/109053557