嵌入支付宝SDK,出现“LaunchServices: ERROR: There is no registered handler for URL scheme alipay”错误

应用项目中嵌入支付宝SDK,在模拟器运行app后,会出现“LaunchServices: ERROR: There is no registered handler for URL scheme alipay”,原因是模拟器没有安装支付宝app,SDK默认调用支付宝网页版,但是出错误了,解决的办法是: 这样设置下,
在项目Xcode  Info.plist 里删除 main storyboard file base name 这一行,项目没有使用到 storyboard, 删除这一行不会影响。然后再运行会发现已经可以打开支付宝网页版了。

posted on 2016-03-22 14:54  Kingly  阅读(851)  评论(0编辑  收藏  举报