微信开发者工具-真机调试,苹果手机白屏(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”。

猜你喜欢

转载自blog.csdn.net/weixin_62635213/article/details/132252610