Hi Viktorija,
You need to define the variable 'wikitudeSDK' as Objective-C property in your class. If you have a look at our example application, you find a line similar to the following:
@property (nonatomic, strong) WTWikitudeNativeSDK *wikitudeSDK;
After that you would probably get another error of the same type for your tracker variable, so you might want to add also the following.
@property (nonatomic, strong) WTClientTracker *clientTracker;
Best regards,
Andreas
Viktorija Snowhite
I created a game application in Xcode. Then i added this code to viewWillAppear:
[self.wikitudeSDK start:nil completion:^(BOOL isRunning, NSError * __nonnull error) {
if ( !isRunning ) {
NSLog(@"Wikitude SDK is not running. Reason: %@", [error localizedDescription]);
}
else
{
NSURL *clientTrackerURL = [[NSBundle mainBundle] URLForResource:@"magazine" withExtension:@"wtc" subdirectory:@"Assets"];
self.clientTracker = [self.wikitudeSDK.trackerManager createClientTrackerFromURL:clientTrackerURL extendedTargets:nil andDelegate:self];
}
}];
and now it shows an error: Property wikitudeSDK not found on object of type ViewController