Fixed linking debug libs when generating ipa