Fixed the 'ObjC object file ... was compiled for iOS Simulator, but linking for MacOSX' warning when building for simulator. (#248)