Snapchat / snap-kit-spm

https://kit.snapchat.com/
MIT License
9 stars 10 forks source link

"No such module 'SnapSDK'" even after cleaning project #16

Open adamvnovak opened 7 months ago

adamvnovak commented 7 months ago

With the following code:

import SnapSDK and

SCSDKSnapKit.initSDK()

I get the error "No such module SnapSDK exists" at the import line.

Screenshot 2024-02-27 at 10 40 40 AM

I have 10+ other packages via SPM without any issues. I've tried deleting derived data, cleaning my project, resetting package caches and updating to latest versions, no luck.

However, my app was actually crashing when I started it up without my ClientId in my Info.plist, because SnapKit was trying to auto init without the necessary client id. So it seems that the code can run, but I can't import the module...?

KillianSmith0 commented 6 months ago

You need to import the relevant modules

import SCSDKCreativeKit
import SCSDKCoreKit
import SCSDKLoginKit