Using undeclared identifier "ACAccountStore"

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

Use of undeclared identifier "ACAccountStore"

Does anyone know why? Social.Framework works great for me.

+5
source share
2 answers

Did you include the title?

Objective-c

#import <Accounts/Accounts.h>

Swift

import Accounts
+8
source

Did you forget to import it?

#import <Accounts/Accounts.h>

EDIT: Now I know where it was announced, so update your answer. :)

+3
source

All Articles