--simulator works, and oddly -sdk=iphonesimulator works, but --sdk=iphonesimulator doesn't.
Created attachment 221881 [details] Patch
Created attachment 221883 [details] Patch and test
Committed r162616: <http://trac.webkit.org/changeset/162616>