1. build and run directly. SDK 2.0 cannot be found
Open the project and select projects from the menu. The bottom of the General tab is
Base SDK for all deployments (the default is iPhone device 2.0), changed to ios2.0
2. Build again, and the code sign error: the identity 'iphone developer 'doesn' t match any valid certificate/private key pair in the default key
This is because the default build selects a device. If it is changed to simulator, it can be compiled and run in the simulator.Change your build settings to Simulator
Check if you are building for device instead of simulator. Go to xcode menu 'project'-> 'set active sdk'Change from 'device' to 'simulator'
********************
I had the same issue with another apple sample app. The only way I cocould resolve it (in fact, the only way I cocould get the option of running in the simulator at all) wasChange fromDebugToRelease And back. The dropdown still showsBase SDK missingBut if you click it, the simulator options are there and it builds.
3. Go to menu-> Project-> edit project setting-> build. Find code signing section (you can type 'code' in the quick search) inCode signing identityAnd set the value'Don't code sign'