Wikitude
play_for_work
Forum
FAQ
Documentation
Download
wikitude.com
How can we help you today?
Enter your search term here...
Search
Start a new topic
Discussions
Wikitude SDK (Android, iOS, UWP)
Wikitude SDK Questions or Problems
iOS JavaScript Error
P
Patrick Janssen-Booms
started a topic
about 1 year ago
I have copied the instructions at
https://www.wikitude.com/external/doc/documentation/latest/ios/setupguideios.html
. There is a crash. The code is:
#import "ViewController.h"
@interface ViewController ()
@end
@implementation ViewController
- (void)viewDidLoad
{
[super viewDidLoad];
NSError *deviceNotSupportedError = nil;
if ( [WTArchitectView isDeviceSupportingFeatures:WTFeature_ImageTracking error:&deviceNotSupportedError] ) { // 1
self.architectView = [[WTArchitectView alloc] init];
//self.architectView.delegate = self;
self.architectView.requiredFeatures = WTFeature_ImageTracking; // 2
[self.architectView setLicenseKey:@"MY_WIKITUDE_KEY"]; // 3
[self.view addSubview:self.architectView]; // 4
NSURL *architectWorldURL = [[NSBundle mainBundle] URLForResource:@"index" withExtension:@"html" subdirectory:@"sdapp"];
[self.architectView loadArchitectWorldFromURL:architectWorldURL];
} else {
NSLog(@"device is not supported - reason: %@", [deviceNotSupportedError localizedDescription]);
}
}
@end
what am I doing wrong?
Bildschirmfo...
(1.41 MB)
1 Comment
Wikitude Support
said
about 1 year ago
Hi Patrick,
Could you please provide further details:
Which version of the SDK are you using?
Confirm that you're working with the JS API?
Could you please send us the crash log
Is this happening with the sample app or in your own app? If it happens with your own app, does the sample app work on your device?
Could you send exact steps to reproduce the issue?
Did you follow the instructions when you ran the SDK sample app?
Thx and greetings
Nicola
Login
or
Signup
to post a comment
More topics in
Wikitude SDK Questions or Problems
Instatiation of WTArchitectView compile errors
Point of interest - native iOS
Slider
Camera lagging / slow in native Swift application
Create a web service
N-th ImageDrawable not displayed
Radar Example
stop defaultlocationmanager and use architectview.injectlocation ios 10
WTC Size Limit
AngularJS and wikitude
See all 3736 topics
© 2020
Wikitude
GmbH ·
Imprint
·
Legal
Patrick Janssen-Booms
@interface ViewController ()
@end
@implementation ViewController
- (void)viewDidLoad
{
[super viewDidLoad];
NSError *deviceNotSupportedError = nil;
if ( [WTArchitectView isDeviceSupportingFeatures:WTFeature_ImageTracking error:&deviceNotSupportedError] ) { // 1
self.architectView = [[WTArchitectView alloc] init];
//self.architectView.delegate = self;
self.architectView.requiredFeatures = WTFeature_ImageTracking; // 2
[self.architectView setLicenseKey:@"MY_WIKITUDE_KEY"]; // 3
[self.view addSubview:self.architectView]; // 4
NSURL *architectWorldURL = [[NSBundle mainBundle] URLForResource:@"index" withExtension:@"html" subdirectory:@"sdapp"];
[self.architectView loadArchitectWorldFromURL:architectWorldURL];
} else {
NSLog(@"device is not supported - reason: %@", [deviceNotSupportedError localizedDescription]);
}
}
@end