Compile others' projects with The following error: Code Sign error: the identity 'iphone Developer 'doesn' t match any valid, non-expired certificate/private key pair in The default keychain
1) Check the error. You can probably guess: the project was originally compiled on a real machine and requires certificate authentication. Check that the scheme of the Project is indeed an iOS Device.
2) Modify scheme to iPhone X.0 Simulator.
There is only one iOS Device in Destination, and there is no simulator option at all.
3) Some netizens say that they should set don't code sign in Build Settings of the Project, as shown below:
The default setting of this project is don't code sign, so it does not work either.
4) In fact, the simplest setting is as follows:
First, select the corresponding version of your Simulator for iOS DeploymentTarget.
Edit Scheme to select the simulator.
Delete the iPhone OS. The scheme target will automatically select the iPhone 5.0 Simulator. After compilation, add the iPhone OS.