iphonesimulator support

Fixed an issue when attempting to add a framework to a target whos sdk is 'iphonesimulator'. This would throw 'Unknown platform for target'  now only checks for 'iphone' in determining platform_name