I am trying to import ARKit to Swift using bridge file but for some reason that I don't understand, Swift cannot recognise the ARKit and gives an error:
// No such module 'ARKit'
My bridge file:
#ifndef Ligo_Header_h
#define Ligo_Header_h
#import "ARKit/ARKit.h"
Then I import ARkit in my ViewController.swift
class
import ARKit
wired is that auto compilation recognises all ARKit delegates and classes but I cant get rid of this error.
Also bridge file setting in build phases is pointing to the right file.
I really appreciate some help here.
I figured it out.
There was no need to import ARKit in ViewController Class or any other swift class. Importing .h in Header file will automatically make it accessible to all swift files.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With