Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash App IOS #5

Open
gtoto007 opened this issue Nov 14, 2017 · 1 comment
Open

Crash App IOS #5

gtoto007 opened this issue Nov 14, 2017 · 1 comment

Comments

@gtoto007
Copy link

gtoto007 commented Nov 14, 2017

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"
  ]
@gtoto007 gtoto007 changed the title Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'accessing _cachedSystemAnimationFence requires the main thread Crash App IOS Nov 14, 2017
@donaldinos
Copy link

i have same issue on fuse 1.8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants