不建议模拟器测试。可以尝试用真机多测试几次。整个demo打印如下:
2019-04-01 22:49:08.964444+0700 NewProject_2-mobile[3051:124060] [DYMTLInitPlatform] platform initialization successful
2019-04-01 22:49:09.044469+0700 NewProject_2-mobile[3051:124026] (null)
2019-04-01 22:49:09.055876+0700 NewProject_2-mobile[3051:124026] Metal GPU Frame Capture Enabled
2019-04-01 22:49:09.056275+0700 NewProject_2-mobile[3051:124026] Metal API Validation Enabled
Initializing JavaScriptCore
JS: Enable batch GL commands optimization!
glGetIntegerv: pname: 0x8b4c
JS: Cocos Creator v2.0.9
JS: LoadScene 0dhdcusLZPDKCXYzDczRgE: 18.418000000000006ms
JS: Success to load scene: db://assets/testScene.fire
XMLHttpRequest_finalize, 0x103e1de70 …
XMLHttpRequest_finalize, 0x103e002f0 …
2019-04-01 22:49:33.774331+0700 NewProject_2-mobile[3051:124062] NSURLConnection finished with error - code -1001
2019-04-01 22:49:33.794474+0700 NewProject_2-mobile[3051:124062] NSURLConnection finished with error - code -1001
2019-04-01 22:49:33.797735+0700 NewProject_2-mobile[3051:124059] Task <5432D78D-741D-4015-9673-C3CCCD00B079>.<0> HTTP load failed (error code: -999 [1:89])
2019-04-01 22:49:33.798221+0700 NewProject_2-mobile[3051:124059] Task <6336CD46-B971-48D2-BD17-53588EA83C89>.<0> HTTP load failed (error code: -999 [1:89])
2019-04-01 22:50:05.674540+0700 NewProject_2-mobile[3051:124057] NSURLConnection finished with error - code -1001
2019-04-01 22:50:05.675122+0700 NewProject_2-mobile[3051:124057] NSURLConnection finished with error - code -1001
2019-04-01 22:50:05.683097+0700 NewProject_2-mobile[3051:124057] Task .<0> HTTP load failed (error code: -999 [1:89])
2019-04-01 22:50:05.683633+0700 NewProject_2-mobile[3051:124057] Task .<0> HTTP load failed (error code: -999 [1:89])
Response failed, error buffer: 请求超时。
Response failed, error buffer: 请求超时。
XMLHttpRequest_finalize, 0x103e3ad70 …
XMLHttpRequest_finalize, 0x103d3a040 …
XMLHttpRequest_finalize, 0x103e278b0 …
XMLHttpRequest_finalize, 0x103d46640 …
2019-04-01 22:50:30.109144+0700 NewProject_2-mobile[3051:124057] NSURLConnection finished with error - code -1001
2019-04-01 22:50:30.110089+0700 NewProject_2-mobile[3051:124057] NSURLConnection finished with error - code -1001
2019-04-01 22:50:30.115341+0700 NewProject_2-mobile[3051:124057] Task <4552641E-63B3-46BC-AD3B-C2BE56011E0B>.<0> HTTP load failed (error code: -999 [1:89])
2019-04-01 22:50:30.115829+0700 NewProject_2-mobile[3051:124057] Task <02176EDC-DBCF-4B23-A94C-69D9D7AF0B35>.<0> HTTP load failed (error code: -999 [1:89])
XMLHttpRequest_finalize, 0x103d46640 …
XMLHttpRequest_finalize, 0x103e3e400 …
2019-04-01 22:50:56.454066+0700 NewProject_2-mobile[3051:124057] NSURLConnection finished with error - code -1001
2019-04-01 22:50:56.454695+0700 NewProject_2-mobile[3051:124057] NSURLConnection finished with error - code -1001