I got a book for iPad programming and there is source code in a CD-ROM. When I compile it and run on a simulator, everything works. But if I target to a new iPad to see the app’s performance, it gives:
Check dependencies
Code Sign error: The identity ‘iPhone Distribution: Chen Li’ doesn’t match any valid, non-expired certificate/private key pair in
the default keychain
Is there a way to solve this? Or else it seems like another method is to create a new project and add those source code file one by one, but there probably is a better way?
(because I joined the Apple developer’s program, I can run programs on a real iPad if it is my own code… )
In Xcode 4, go select your project on the left pane listing all files.
Then select your target and go to Build Settings.
When you are there, search for Code Signing.
Make sure you select your profile there, and not the book’s author’s one, since you do not have his profile installed on your Mac.