iossim: Fix compilation against SDKs earlier than 10.9
iossim: Fix compilation against SDKs earlier than 10.9

Looks like firstObject is not exported in SDKs ealier than 10.9,
even though the documentation claims differently. Latest Xcode
on OS X 10.7 doesn't provide the 10.9 SDK, so avoid using
firstObject and lastObject

Change-Id: Ia266c6aa2030d4799a3cec13e97ab7175adf5138
Reviewed-by: Kevin Funk <a75955268b227605eced8c9734772e92cd92f56c@kdab.com>
Reviewed-by: Erik Verbruggen <5edfe905d082749f2ac3f4e6b42937f39f083771@theqtcompany.com>

kuba1/qtcreator,farseerri/git_code,martyone/sailfish-qtcreator,danimo/qt-creator,xianian/qt-creator,kuba1/qtcreator,martyone/sailfish-qtcreator,kuba1/qtcreator,Distrotech/qtcreator,farseerri/git_code,danimo/qt-creator,amyvmiwei/qt-creator,AltarBeastiful/qt-creator,martyone/sailfish-qtcreator,AltarBeastiful/qt-creator,AltarBeastiful/qt-creator,danimo/qt-creator,xianian/qt-creator,danimo/qt-creator,kuba1/qtcreator,martyone/sailfish-qtcreator,Distrotech/qtcreator,martyone/sailfish-qtcreator,Distrotech/qtcreator,martyone/sailfish-qtcreator,xianian/qt-creator,danimo/qt-creator,Distrotech/qtcreator,xianian/qt-creator,AltarBeastiful/qt-creator,xianian/qt-creator,danimo/qt-creator,xianian/qt-creator,AltarBeastiful/qt-creator,kuba1/qtcreator,Distrotech/qtcreator,farseerri/git_code,amyvmiwei/qt-creator,kuba1/qtcreator,kuba1/qtcreator,danimo/qt-creator,martyone/sailfish-qtcreator,amyvmiwei/qt-creator,farseerri/git_code,danimo/qt-creator,xianian/qt-creator,amyvmiwei/qt-creator,farseerri/git_code,martyone/sailfish-qtcreator,amyvmiwei/qt-creator,amyvmiwei/qt-creator,kuba1/qtcreator,danimo/qt-creator,AltarBeastiful/qt-creator,xianian/qt-creator,Distrotech/qtcreator,kuba1/qtcreator,xianian/qt-creator,farseerri/git_code,amyvmiwei/qt-creator,farseerri/git_code,AltarBeastiful/qt-creator,amyvmiwei/qt-creator,Distrotech/qtcreator,AltarBeastiful/qt-creator,farseerri/git_code,martyone/sailfish-qtcreator