title: Building and deploying Iphone App on a real device without apple developer program and any certificates
body: <p>Xcode 4.2.1
  Lion</p>
  
  <p>Jailbraked Iphone</p>
  
  <p>Main problem is that I cannot find my country in the list of countryies while updating my credit cards info. Thus probably I cannot buy that 99$ program membership.</p>
  
  <p>But I want to make the app anyway, at list to try , on a real iphone.</p>
  
  <p>Here
  <a href="https://stackoverflow.com/questions/4952820/test-ios-app-on-device-without-apple-developer-program-or-jailbreak">Test iOS app on device without apple developer program or jailbreak</a></p>
  
  <p>WrightsCS Writes this</p>
  
  <pre><code>There's a way you can do this.
  
  You will need ROOT access to edit the following file.
  
  Navigation to /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.2.sdk and open the file SDKSettings.plist.
  
  In that file, expand DefaultProperties and change CODE_SIGNING_REQUIRED to NO, while you are there, you can also change ENTITLEMENTS_REQUIRED to NO also.
  
  You will have to restart Xcode for the changes to take effect. Also, you must do this for every .sdk you want to be able to run on device.
  
  Now, in your project settings, you can change Code Signing Identity to Don't Code Sign.
  
  Your app should now build and install on your device successfully.
  </code></pre>
  
  <p>I've done it but get error of the following type</p>
  
  <pre><code>Code Sign error: The identity 'iPhone Developer' doesn't match any valid certificate/private key pair in the default keychain
  </code></pre>
  
  <p>/
  /
  /
  /
  /</p>
  
  <p>I've also read about this
  <a href="https://stackoverflow.com/questions/246422/how-can-i-deploy-an-iphone-application-from-xcode-to-a-real-iphone-device">How can I deploy an iPhone application from Xcode to a real iPhone device?</a>
  Where rpetrich writes</p>
  
  <pre><code>It sounds like the application isn't signed. Download ldid from Cydia and then use it like so: ldid -S /Applications/AccelerometerGraph.app/AccelerometerGraph
  
  Also be sure that the binary is marked as executable: chmod +x /Applications/AccelerometerGraph.app/AccelerometerGraph
  </code></pre>
  
  <p>But it was in 2008. And when I started to look for this Idid and things, in comments there where posts that with new soft it doesn't work. So I even didn't try it.</p>
  
  <p>SO....</p>
  
  <p>Today. Is there any way out of this problem ?</p>