black screen with new cordova ios 4.X.X

Get help using Construct 2

Post » Wed Feb 03, 2016 2:00 pm

hi,
@all
@ashley
i have try exported c2 of my gameusing cordova with the new cli cordova ios 4.0.0 and 4.0.1 ( https://cordova.apache.org/announcement ... 4.0.1.html )
and i get black screen ...
any solution?
B
43
S
16
G
8
Posts: 783
Reputation: 8,238

Post » Wed Feb 03, 2016 2:18 pm

How are you building it? Are you using the Intel XDK, PhoneGap Build, Cordova CLI...? If you're building it yourself with the CLI have you checked for any errors returned by the web view?
Scirra Founder
B
383
S
224
G
86
Posts: 24,111
Reputation: 190,420

Post » Wed Feb 03, 2016 6:31 pm

@ashely
i'm using cordova cli and i will check the errors
if i just build the app with the default content (index.html etc ...) it work
when i replace c2 files (exported with cordova) ... i got the black screen
the problem is not happen on the old cordova ios 3.9.2
B
43
S
16
G
8
Posts: 783
Reputation: 8,238

Post » Wed Feb 03, 2016 7:54 pm

@ashely
here is the full log .... still black screen but for example if i delete the full content of the index.html and put for example the number 1 i got it working .... with the index.html by c2 black screen

2016-02-03 11:40:59.460 Cigario[505:5479] Apache Cordova native platform version 4.0.1 is starting.
2016-02-03 11:40:59.463 Cigario[505:5479] Multi-tasking -> Device: YES, App: YES
2016-02-03 11:40:59.784 Cigario[505:5479] Using WKWebView
2016-02-03 11:40:59.790 Cigario[505:5479] [CDVTimer][handleopenurl] 0.220001ms
2016-02-03 11:40:59.797 Cigario[505:5479] [CDVTimer][intentandnavigationfilter] 5.934954ms
2016-02-03 11:40:59.798 Cigario[505:5479] [CDVTimer][gesturehandler] 1.076996ms
2016-02-03 11:40:59.800 Cigario[505:5479] [CDVTimer][iap] 0.292957ms
2016-02-03 11:40:59.802 Cigario[505:5479] [CDVTimer][localnotification] 0.409007ms
2016-02-03 11:40:59.802 Cigario[505:5479] [CDVTimer][localnotification] 0.016987ms
2016-02-03 11:41:00.034 Cigario[505:5479] [CDVTimer][socialsharing] 229.838014ms
2016-02-03 11:41:00.053 Cigario[505:5479] [CDVTimer][statusbar] 18.314004ms
2016-02-03 11:41:00.129 Cigario[505:5479] [CDVTimer][localstorage] 75.573981ms
2016-02-03 11:41:00.130 Cigario[505:5479] [CDVTimer][TotalPluginStartup] 341.259956ms
2016-02-03 11:41:00.154 Cigario[505:5479] Error loading /System/Library/Extensions/IOHIDFamily.kext/Contents/PlugIns/IOHIDLib.plugin/Contents/MacOS/IOHIDLib: dlopen(/System/Library/Extensions/IOHIDFamily.kext/Contents/PlugIns/IOHIDLib.plugin/Contents/MacOS/IOHIDLib, 262): no suitable image found. Did find:
/System/Library/Extensions/IOHIDFamily.kext/Contents/PlugIns/IOHIDLib.plugin/Contents/MacOS/IOHIDLib: mach-o, but not built for iOS simulator
2016-02-03 11:41:00.155 Cigario[505:5479] Cannot find function pointer IOHIDLibFactory for factory 13AA9C44-6F1B-11D4-907C-0005028F18D5 in CFBundle/CFPlugIn 0x7c9e90e0 </System/Library/Extensions/IOHIDFamily.kext/Contents/PlugIns/IOHIDLib.plugin> (bundle, not loaded)
2016-02-03 11:41:00.159 Cigario[505:5479] Error loading /System/Library/Extensions/IOHIDFamily.kext/Contents/PlugIns/IOHIDLib.plugin/Contents/MacOS/IOHIDLib: dlopen(/System/Library/Extensions/IOHIDFamily.kext/Contents/PlugIns/IOHIDLib.plugin/Contents/MacOS/IOHIDLib, 262): no suitable image found. Did find:
/System/Library/Extensions/IOHIDFamily.kext/Contents/PlugIns/IOHIDLib.plugin/Contents/MacOS/IOHIDLib: mach-o, but not built for iOS simulator
2016-02-03 11:41:00.160 Cigario[505:5479] Cannot find function pointer IOHIDLibFactory for factory 13AA9C44-6F1B-11D4-907C-0005028F18D5 in CFBundle/CFPlugIn 0x7c9e90e0 </System/Library/Extensions/IOHIDFamily.kext/Contents/PlugIns/IOHIDLib.plugin> (bundle, not loaded)
2016-02-03 11:41:00.163 Cigario[505:5479] Error loading /System/Library/Extensions/IOHIDFamily.kext/Contents/PlugIns/IOHIDLib.plugin/Contents/MacOS/IOHIDLib: dlopen(/System/Library/Extensions/IOHIDFamily.kext/Contents/PlugIns/IOHIDLib.plugin/Contents/MacOS/IOHIDLib, 262): no suitable image found. Did find:
/System/Library/Extensions/IOHIDFamily.kext/Contents/PlugIns/IOHIDLib.plugin/Contents/MacOS/IOHIDLib: mach-o, but not built for iOS simulator
2016-02-03 11:41:00.182 Cigario[505:5479] Cannot find function pointer IOHIDLibFactory for factory 13AA9C44-6F1B-11D4-907C-0005028F18D5 in CFBundle/CFPlugIn 0x7c9e90e0 </System/Library/Extensions/IOHIDFamily.kext/Contents/PlugIns/IOHIDLib.plugin> (bundle, not loaded)
B
43
S
16
G
8
Posts: 783
Reputation: 8,238

Post » Thu Feb 04, 2016 11:59 am

We don't officially support the CLI, you are generally on your own if you build it that way. Have you tried PhoneGap Build or the Intel XDK? If those work, I assume you misconfigured the CLI somehow.
Scirra Founder
B
383
S
224
G
86
Posts: 24,111
Reputation: 190,420

Post » Thu Feb 04, 2016 12:24 pm

@ashley
i have done same thing with cordova cli 3.9.2 and it work and do same thing (update the same project to cordova cli 4.0.1 and get the black screen)
the thing is that the new cordova 4.0.1 has huge performance optimization and fix the admob fsp drop that's why i'm looking for it
B
43
S
16
G
8
Posts: 783
Reputation: 8,238

Post » Sun Feb 14, 2016 4:27 pm

Hi,
Black screen is due to some plugins wich are not updated
B
43
S
16
G
8
Posts: 783
Reputation: 8,238

Post » Thu Mar 24, 2016 10:39 am

@ashley

1) using the cordova cli 3.9.2 and the wkwebview plugin ( https://github.com/Telerik-Verified-Plugins/WKWebView ) i got the black screen
i solved it by changing the line 3454 in c2runtime.js to this.isWKWebView = false;

2) using cordova cli 4.X.X and the official webview plugin ( https://github.com/apache/cordova-plugi ... iew-engine )
i got black screen with / without changes

any idea please ?
B
43
S
16
G
8
Posts: 783
Reputation: 8,238

Post » Thu Mar 24, 2016 10:55 am

@matrixreal - please file a bug report following all the guidelines if you have trouble. However please note:
- the Telerik WKWebView plugin is not supported
- we don't officially support using the Cordova CLI directly, you are on your own if you do that. The officially supported options are PhoneGap Build and the Intel XDK.

If you are doing custom builds, note that C2 exports references to additional plugins to work around WKWebView limitations. You will probably have more luck if you try to match as closely as possible the configuration specified by config.xml in C2's cordova export.
Scirra Founder
B
383
S
224
G
86
Posts: 24,111
Reputation: 190,420

Post » Tue Apr 12, 2016 5:34 pm

@ashley
the problem is in c2runtime because :

> cordova ios 3.9.2 > black screen using this plugin ( https://github.com/Telerik-Verified-Plugins/WKWebView )
and i solved it by changing the line 3454 in c2runtime.js to this.isWKWebView = false;

> cordova 4.1.0 > black screen using this plugin https://github.com/apache/cordova-plugi ... iew-engine
but still same with / without changing the line
B
43
S
16
G
8
Posts: 783
Reputation: 8,238

Next

Return to How do I....?

Who is online

Users browsing this forum: Ajbael, arien, cjbruce, ColombageEnPLS and 12 guests