zean00 / fuse-qreader

QR Code Reader for Fusetool
MIT License
28 stars 13 forks source link

Crash App IOS #5

Open gtoto007 opened 7 years ago

gtoto007 commented 7 years ago

When I launch my iOS app I have this exception. I don't understand how it depends. I think I've done everything properly

issue

/BuildRoot/Library/Caches/com.apple.xbs/Sources/UIKit/UIKit-3694.4.18/UIApplication.m:1706
2017-11-14 13:32:19.370951+0100 StentleAppCustomer[3482:1613670] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'accessing _cachedSystemAnimationFence requires the main thread'

MY CODE:

<Panel ux:Class="stentleapp.icons.ScanQrCode">
    <Router ux:Dependency="router"/>
    <Qreader ux:Global="Qreader" />
       <JavaScript>

       var qreader = require('Qreader');

         function OnTapScan() {
        qreader.scan().then(function (res) {
            console.log("Scan result: " + res);
        }).catch(function(error) {
            console.log("Error scanning QR code");
        });
          }

      module.exports = {
    OnTapScan
      };
        </Javascript>
    <Text  Clicked="{OnTapScan}"  Color="stentleapp.color.DarkGrey" Font="fonticons" Alignment="Center" FontSize="40" Value="&#xe90b;">
    </Text>
</Panel>

I have add this lines code in my unoproj file

"Projects": [
    "libraries/fuse-qreader/fuse-qreader.unoproj"
  ]
donaldinos commented 6 years ago

i have same issue on fuse 1.8