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

Use of unresolved identifier 'SPTAuth' #18

Open
MandelbrotMan opened this issue Nov 16, 2018 · 2 comments
Open

Use of unresolved identifier 'SPTAuth' #18

MandelbrotMan opened this issue Nov 16, 2018 · 2 comments

Comments

@MandelbrotMan
Copy link

MandelbrotMan commented Nov 16, 2018

Hello,
Hows it going.
I recently started getting this problem in XCode with this line of code
let auth = SPTAuth.defaultInstance()! //Error = Use of unresolved identifier 'SPTAuth'
this is inside the SPotifyOauthPlugin.swift file

I've tried all rebuilding the project in all the version of Xcode 9 and 10.
Then I installed Xcode 8 and converted the file from swift version 2 to 3 and then installed xcode 9 again and this did not fix the issue
Any idea of what it could be?

@kcarwilemiller
Copy link

kcarwilemiller commented Jun 17, 2019

I ran into this problem also. For me, I am running a meteor app, and the bridging header for the plugin was not being imported. If you are running a meteor app, you must edit the cordova ios project and import the bridging header.

Edit the file:
[app folder]/.meteor/local/cordova-build/platforms/ios/[Project Name]/Bridging-Header.h

Add line:
#import "SpotifyOAuth-Bridging-Header.h"

Then rebuild the app.

@MandelbrotMan
Copy link
Author

Im using ionic but the solution translates great.

For me it was
root_app_folder/platforms/ios/[Project Name]Bridging-Header.h

adding #import "SpotifyOAuth-Bridging-Header.h" and rebuilding it worked like a charm.

@kcarwilemiller you came in clutch when I needed it. Thank you!

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