FacebookShare更新后导致编译器错误 [英] FacebookShare causing compiler error after update
问题描述
我刚刚为我的应用程序运行了 pod更新
,现在它无法编译,来自 LinkShareContent.swift $ c
FacebookShare
中的$ c>。
I just ran pod update
for my app, and now it won't compile, giving these issues from LinkShareContent.swift
in FacebookShare
.
Cannot assign to property: 'contentDescription' is a get-only property
Cannot assign to property: 'contentTitle' is a get-only property
Cannot assign to property: 'imageURL' is a get-only property
这些是我的pod更新中与Facebook相关的行:
These were the Facebook-related lines in my pod update:
Installing FBSDKCoreKit 4.23.0 (was 4.22.0)
Installing FBSDKLoginKit 4.23.0 (was 4.22.0)
Installing FBSDKShareKit 4.23.0 (was 4.22.0)
Using FacebookCore (0.2.0)
Using FacebookLogin (0.2.0)
Using FacebookShare (0.2.0)
有人知道这个问题吗?我做错了吗?
Does anyone know about this problem? Did I do something wrong?
推荐答案
关于 FBSDKShareLinkContent
的文档已不推荐使用:
Regarding docs of FBSDKShareLinkContent
these properties have been deprecated:
@不推荐使用的
contentDescription
已从Graph API 2.9中弃用。
有关更多信息,请参见 https://developers.facebook.com/docs/ apps / changelog#v2_9_deprecations 。
@deprecated
contentDescription
is deprecated from Graph API 2.9. For more information, see https://developers.facebook.com/docs/apps/changelog#v2_9_deprecations.
@不推荐使用的 contentTitle
。
有关更多信息,请参见 https://developers.facebook.com/docs/ apps / changelog#v2_9_deprecations
@deprecated contentTitle
is deprecated from Graph API 2.9.
For more information, see https://developers.facebook.com/docs/apps/changelog#v2_9_deprecations
@deprecated imageURL
已从Graph API 2.9中弃用。
有关更多信息,请参见 https://developers.facebook.com/docs/ apps / changelog#v2_9_deprecations
@deprecated imageURL
is deprecated from Graph API 2.9.
For more information, see https://developers.facebook.com/docs/apps/changelog#v2_9_deprecations
您应该使用 quote
和 contentURL
代替它们。
You should probably use quote
and contentURL
instead of them.
作为临时解决方案,您可以取消阻止文件 LinkShareContent.swift
并直接删除上面的行,直到Facebook发布任何更新。
As a temporary solution, you can unblock the file LinkShareContent.swift
and directly remove above lines until Facebook releases any update.
这篇关于FacebookShare更新后导致编译器错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!