Updated iphoneos and iphonesimulator targets to explicitly reject dynamic libraries -- as these are not supported by the app store.
Always write sdkroot in xcode projects.
Added sdkroot for macosx.
Fixed up behavior when there are no products due to an exception (invalid product)