black screen with new cordova ios 4.X.X

  • 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?

  • 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?

  • 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

  • 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)

  • 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.

  • 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

  • Hi,

    Black screen is due to some plugins wich are not updated

  • 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 ?

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • 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.

  • 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

  • Ashley

    @matrixreal

    I also get black screen with XDK

  • Please file a bug report following all the guidelines if you have trouble using any of the official export options.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)