期望的成员名称或“;”在声明说明符之后; “朋友”是Objective-C ++中的关键字 @property(非原子,只读)LinphoneFriend * friend;
期望的标识符; “朋友”是Objective-C ++中的关键字 -(instancetype)initWithFriend:(LinphoneFriend *)朋友;
答案 0 :(得分:2)
看来friend
是C ++中的关键字:
friend声明出现在类主体中,并向函数或其他类授予对出现该声明的类的私有和受保护成员的访问权限。
通过https://en.cppreference.com/w/cpp/language/friend
不幸的是,您的选择是:
linphoneFriend
)