7
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Facebook系のpodのバージョンを上げたときのエラー

Posted at

FacebookCore と FacebookLogin のバージョンを 0.6から0.7にあげようと思ったらいたるところでエラーが起こった :frowning2:
なにやら0.6から0.7でbreaking changeがあった模様。

実際の変更点としてはこちら

xcodeが直してくれる

'FBSDKAppEvents' has been renamed to 'AppEvents'

Replace 'FBSDKAppEvents' with 'AppEvents'

FBSDKAppEvents.logEvent("sign_up") から AppEvents.logEvent(AppEvents.Name(rawValue: "sign_up"))

'FBSDKApplicationDelegate' has been renamed to 'ApplicationDelegate'

Replace 'FBSDKApplicationDelegate' with 'ApplicationDelegate'

手で直すもの

No type named 'ReadPermission' in module 'FacebookCore'

FacebookCore の Permissionに書き換え

'FBSDKApplicationDelegate' has been renamed to 'ApplicationDelegate'

FBSDKApplicationDelegate.sharedInstance() から ApplicationDelegate.shared

Use of unresolved identifier 'LoginManager'

LoginManager から FBSDKLoginKit.LoginManager()

Value of type 'AccessToken' has no member 'userId'; did you mean 'userID'?

Replace 'userId' with 'userID'

Value of type 'AccessToken' has no member 'authenticationToken'

(たぶん) token.tokenString に書き換え?

7
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
7
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?