微信开发者工具-真机调试,苹果手机白屏(MiniProgramError Generate function polyfill not found, may be not a valid code )

创建一个小程序,点击真机调试,选择ios,手机白屏,然后电脑上的真机调试面板报错:

index.js? [sm]:12 MiniProgramError

Generate function polyfill not found, may be not a valid code package

Error: Generate function polyfill not found, may be not a valid code package

@https://lib/WAServiceMainContext.js:1:1975206

@https://lib/WAServiceMainContext.js:1:1535986

@https://lib/WAServiceMainContext.js:1:841805

emit@https://lib/WAServiceMainContext.js:1:846850

@https://lib/WAServiceMainContext.js:1:847897

@https://lib/WAServiceMainContext.js:1:838177

emit@https://lib/WAServiceMainContext.js:1:355813

emit@[native code]

emit@https://lib/WAServiceMainContext.js:1:355432

subscribeHandler@https://lib/WAServiceMainContext.js:1:358918

@[native code]

dispatchBridgeMessages@https://lib/WAServiceMainContext.js:1:44479

@https://lib/WAServiceMainContext.js:1:2396655

@https://lib/WAServiceMainContext.js:1:44661

G@https://lib/WAServiceMainContext.js:1:307716

@https://lib/WAServiceMainContext.js:1:307938

C@https://lib/WAServiceMainContext.js:1:277415

@https://lib/WAServiceMainContext.js:1:291237

E@https://lib/WAServiceMainContext.js:1:291006

@https://lib/WAServiceMainContext.js:1:291044

p@https://lib/WAServiceMainContext.js:1:398540

@https://lib/WAServiceMainContext.js:1:386769

_onNativeTimer@

global code@

本地开发没有报错,以及上传到体验版也没有报错,就是真机调试ios报错。

按照以下方法修改,这样用真机调试,不会报错了~刚刚测试有效。

解决方案:app.json里查看renderer属性,默认给的是skyline,这个目前存在兼容性问题,文档里给的是安卓 8.0.33+,iOS 8.0.34+持续迭代中...所以要想解决,可以将renderer属性改“webview”。

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

大熋

携手一起攻克bug

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值