Results tagged “xcode” from Cocoa Machine
This is the first hands on tutorial in my series. Goes over getting started with iOS Development.
Removed due to NDA violation being brought to my attention.
My bad guys. It was stupid of me to post this. I am under NDA on this stuff and I should have known better :( I apologize. I will post some tutorials when it's fully released.
Once again, sorry :(
Apple finally released a tutorial on using Interface Builder for iPhone. I have been dying to create a video for everyone on how to do this, but could not cause of NDA. Since Apple has released this I will make a video on creating the same app using Interface Builder and XCode. I will explain some of the things that Apple assumes you should now, in more detail. I know some people learn better of watching then reading, so I hope the video helps some of you out.
In the meantime, you can check it out here. You will need an ADC account to access it.
Jason Troy pointed out something to me about my template. It was hard coded to the initial Objective-C class files in the project. If you added any new files, they would not be compiled. I fixed the template and you can get the updated version here.
I just got back from the hospital last week. My wife and I had our son. Benjamin Scott Stahlhood, III. I have pictures up on my Web Gallery.
Here is the guide to set up everything you need to use the XCode template with SSH deployment on build. When you are all set up, you can just build your application, it will copy the .app to the iPhone and restart Spring Board. Please make sure you have BSD Subsystem and OpenSSH installed prior to doing the following steps. You will also need the iPhone tool chain built on Leopard to do iPhone development. See my earlier post.
1. Setup SSH.
Open Terminal
ssh-keygen
Hit Enter at the "Enter file in which to save the key" prompt.
Enter your passphrase.
cd ~/.ssh
cat id_rsa.pub >> authorized_keys
SSH into your iPhone.
mkdir ~/.ssh
Copy the authorized_keys file over to the ~/.ssh directory on your iPhone.
On the iPhone, perform the following:
chmod 755 /var/root
chmod 700 /var/root/.ssh
chmod 644 /var/root/.ssh/authorized_keys
2. Set up environment variable on your Mac. (This is just one of many ways).
mkdir ~/.MacOSX
Open Property List Editor and create a new Property List. Add a new node and call it IPHONE_IP. Class String and put your iPhone IP address in the value. Save as ~/.MacOSX/environment.plist. Reboot.
3. Download and install the XCode template
Download the template and follow the README for install instructions. Create a new app and do a Build. XCode will prompt you for your passphrase if everything is setup correctly. Enter your passphrase and save to keychain. You are all done.
Have fun coding and deploying your iPhone apps!
I updated the XCode Template again. It now uploads your application to the iPhone and kills Spring Board on build. You can also do a clean and it will erase your application from the iPhone.
You will need SSH keys set up on the iPhone for password-less operation. You will also need a system environment var called IPHONE_IP set to the IP address of your iPhone. I will post more details on these two requirements later today. Need sleep!
Get the update here