Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Use of undeclared identifier "ACAccountStore"

I'm trying to use the ios Account Framework. I already added the Accounts.Framework in my build phases, but I still get the error

Use of undeclared identifier "ACAccountStore"

Anyone know why? Social.Framework works fine for me.

like image 790
Max Zheng Avatar asked Apr 09 '13 20:04

Max Zheng


2 Answers

Did you make sure to include the header?

Objective-C

#import <Accounts/Accounts.h>

Swift

import Accounts
like image 154
Brandon Buck Avatar answered Nov 03 '22 01:11

Brandon Buck


Maybe you forgot to import it?

#import <Accounts/Accounts.h>

EDIT: Now I know where it's declared, so updated my answer. :)

like image 40
Erik B Avatar answered Nov 03 '22 01:11

Erik B