Create a small program, click real device debugging, select ios, the phone screen will be white, and then the real device debugging panel on the computer will report an error:
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@
No errors are reported when developing locally, and no errors are reported when uploading to the trial version. It means that errors are reported when debugging iOS on a real machine.
Modify it according to the following method, so that you can debug it with a real machine and no errors will be reported~ The test just now works.
Solution: Check the renderer attribute in app.json. The default is skyline. This currently has compatibility issues. The document gives Android 8.0.33+, and iOS 8.0.34+ is under continuous iteration... So if you want to solve it , you can change the renderer attribute to "webview".