can't build IPA using developer certificate in Mac OS X 10.10

fix this error:Warning: usage of --preserve-metadata with option "resource-rules" (deprecated in Mac OS X >= 10.10)!

I have **only** tested this modification on 10.10, please make sure it works fine on older versions