Вопрос

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.

Это было полезно?

Решение

Did you make sure to include the header?

Objective-C

#import <Accounts/Accounts.h>

Swift

import Accounts

Другие советы

Maybe you forgot to import it?

#import <Accounts/Accounts.h>

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

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top