Oh! Apple

My experience of using iPod Touch, iPod Classics, Mac OSX, Coding in XCode, or anything generally related to Apple

Saturday, October 31, 2009

Deploy from VM to device: works great

Like what I did before, I used the steps in this site, and successfully deployed an XCode application from the XCode environment to my iPod Touch.

The only issue I have to remind myself is that after I created a certificate, I have to reboot the machine, or otherwise I will get the "“Code Sign error: a valid provisioning profile matching the application’s Identifier ‘...........(app name)′ could not be found”" error.

There's another tiny puzzle though: I have no problem running the "Push Pop" tutorial application on the iPod Touch device (which is runing iPhoneOS 3.0), however the same app doesn't not work on iPhone emulator 3.0 which working fine with emulator 3.1. Very strange indeed. Oh well, I am trying not to let things like this keep me from continue learning iPhone development.

Friday, October 30, 2009

Probably the best OSX running on VM

I got "Mac OS X Leopard 10.5.7 Update" VM running, and I have to say this is by far my best iPhone development environment. Everything seems to run as good as I expected. Here are some of the tidbit that I figured out along the way:

* Higher resolution: The is definitely awesome. All I need to do is change the resolution at the "library/Preferences/SystemConfiguration / com.apple.Boot.plist" "Graphics Mode" section. I set it to 1680 x 1050, and now I have a development environment that actually make sense.

* Resolve strange keyboard problem: I found out that there are times when I got the "stuck key" problem. Seems like the auto repeat key mode go hey wired. My solution? Go to Keyboard perference, set "Key Repeat Rate" to slow, and then "Delay Unit Repeat" to Off. I don't use autorepeat on typing after all.

* I realized that there are times when the machine just hanged for no good reason after idled for too long. So I simple turned off all the PowerSaving feature. Seems to work.

* Some times after reboot the VM, it doesn't come up properly. All you need to do is connect the virtual CDROM with the darwin.iso . Solved the problem everytime.

* Switch between Mac and PC can be painful if the modify key is differernt. So in "Keyboard and Mouse" preference setting, I changed the modifier to [control]. That way, no matter which platform I am at, Control C is always "Cut". And so on.

* Another potential pain is that cut and paste doesn't work with VM and the host desktop. My solution is to use file sharing to share a text file, and then simply use the text file as the shared clipboard. To turn on Sharing with PC, go to "Sharing" perfence, and just turn the "File Sharing" on. Also make sure you turn your account under sharing. You will need it in order to login the sharing. Now my Windows host can directly access files on the Mac environment.

* Audio doesn't really work. It created sound, but it's like stutter. However, I don't really worry much about that since the VM is mainly just a iPhone development environment.