New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

swift compiler error base on FBSDKShareKit (4.23.0) #157

Closed
qinweizhao opened this Issue May 26, 2017 · 89 comments

Comments

Projects
None yet
@qinweizhao

qinweizhao commented May 26, 2017

FacebookShare/LinkShareContent.swift

content.contentDescription = self.description
content.contentTitle = self.title
content.imageURL = self.imageURL

cannot assign to get-only property

@qinweizhao

This comment has been minimized.

Show comment
Hide comment
@qinweizhao

qinweizhao May 26, 2017

I got the compiler error after update pods (Xcode 8.3.2,CocoaPods 1.2.0)

qinweizhao commented May 26, 2017

I got the compiler error after update pods (Xcode 8.3.2,CocoaPods 1.2.0)

@MrSilverstone

This comment has been minimized.

Show comment
Hide comment
@MrSilverstone

MrSilverstone May 26, 2017

Same issue with CocoaPods 1.2.1 and xcode 8.3.2

MrSilverstone commented May 26, 2017

Same issue with CocoaPods 1.2.1 and xcode 8.3.2

@jxtmo

This comment has been minimized.

Show comment
Hide comment
@jxtmo

jxtmo May 26, 2017

same issue!

jxtmo commented May 26, 2017

same issue!

@deepakbms

This comment has been minimized.

Show comment
Hide comment
@deepakbms

deepakbms May 26, 2017

same issue, for now, i remove these lines

deepakbms commented May 26, 2017

same issue, for now, i remove these lines

@sche

This comment has been minimized.

Show comment
Hide comment
@sche

sche May 27, 2017

same issue

sche commented May 27, 2017

same issue

@sotozaki

This comment has been minimized.

Show comment
Hide comment
@sotozaki

sotozaki May 27, 2017

same issue

sotozaki commented May 27, 2017

same issue

@dangnguyenhuu

This comment has been minimized.

Show comment
Hide comment
@dangnguyenhuu

dangnguyenhuu May 27, 2017

I facing same problem. Is there any solution?

dangnguyenhuu commented May 27, 2017

I facing same problem. Is there any solution?

@adrienyvon699

This comment has been minimized.

Show comment
Hide comment
@adrienyvon699

adrienyvon699 May 27, 2017

Hi, I confirm this issue too

adrienyvon699 commented May 27, 2017

Hi, I confirm this issue too

@thaoth58

This comment has been minimized.

Show comment
Hide comment
@thaoth58

thaoth58 May 28, 2017

Seem like a lot of people face this issue :D

thaoth58 commented May 28, 2017

Seem like a lot of people face this issue :D

@1amageek

This comment has been minimized.

Show comment
Hide comment
@1amageek

1amageek May 28, 2017

same issue

1amageek commented May 28, 2017

same issue

@NikKovIos

This comment has been minimized.

Show comment
Hide comment
@NikKovIos

NikKovIos commented May 28, 2017

The same

@taglia3

This comment has been minimized.

Show comment
Hide comment
@taglia3

taglia3 May 28, 2017

same issue

taglia3 commented May 28, 2017

same issue

@phalladar

This comment has been minimized.

Show comment
Hide comment
@phalladar

phalladar commented May 29, 2017

+1. Womp.

@dams2007

This comment has been minimized.

Show comment
Hide comment
@dams2007

dams2007 May 29, 2017

Same one to.

dams2007 commented May 29, 2017

Same one to.

@happiehappie

This comment has been minimized.

Show comment
Hide comment
@happiehappie

happiehappie commented May 29, 2017

+1

@SwiftyGuerrero

This comment has been minimized.

Show comment
Hide comment
@SwiftyGuerrero

SwiftyGuerrero May 29, 2017

Same issue here.

SwiftyGuerrero commented May 29, 2017

Same issue here.

@beautynanacalico

This comment has been minimized.

Show comment
Hide comment
@beautynanacalico

beautynanacalico commented May 30, 2017

@soulfoodz

This comment has been minimized.

Show comment
Hide comment
@soulfoodz

soulfoodz May 30, 2017

Same issue

soulfoodz commented May 30, 2017

Same issue

@aman-git

This comment has been minimized.

Show comment
Hide comment
@aman-git

aman-git May 30, 2017

Compiler Error :

content.contentDescription = self.description
content.contentTitle = self.title
content.imageURL = self.imageURL

Cocoa pods Version : 1.2.1
Xcode Version : Version 8.2.1 (8C1002)

Cannot assign to get-only property, attaching screenshot along
Whats the possible solution to this

screen shot 2017-05-30 at 11 49 49 am

aman-git commented May 30, 2017

Compiler Error :

content.contentDescription = self.description
content.contentTitle = self.title
content.imageURL = self.imageURL

Cocoa pods Version : 1.2.1
Xcode Version : Version 8.2.1 (8C1002)

Cannot assign to get-only property, attaching screenshot along
Whats the possible solution to this

screen shot 2017-05-30 at 11 49 49 am

@mememto

This comment has been minimized.

Show comment
Hide comment
@mememto

mememto May 30, 2017

Till the problem is solved i'm using:

pod 'FacebookCore', '~> 0.2'
pod 'FacebookLogin', '~> 0.2'
pod 'FacebookShare', '~> 0.2'
pod 'FBSDKCoreKit', '~> 4.22.1'
pod 'FBSDKLoginKit', '~> 4.22.1'
pod 'FBSDKShareKit', '~> 4.22.1'

mememto commented May 30, 2017

Till the problem is solved i'm using:

pod 'FacebookCore', '~> 0.2'
pod 'FacebookLogin', '~> 0.2'
pod 'FacebookShare', '~> 0.2'
pod 'FBSDKCoreKit', '~> 4.22.1'
pod 'FBSDKLoginKit', '~> 4.22.1'
pod 'FBSDKShareKit', '~> 4.22.1'
@happiehappie

This comment has been minimized.

Show comment
Hide comment
@happiehappie

happiehappie May 30, 2017

@mememto Is there any point to this? Since FacebookShare is just a swift wrap for FBSDKShareKit. Isn't this considered as a bad duplication?

happiehappie commented May 30, 2017

@mememto Is there any point to this? Since FacebookShare is just a swift wrap for FBSDKShareKit. Isn't this considered as a bad duplication?

@mememto

This comment has been minimized.

Show comment
Hide comment
@mememto

mememto May 30, 2017

According to SDK documentation (https://developers.facebook.com/docs/swift/getting-started), you should add:
pod 'FacebookCore'
pod 'FacebookLogin'
pod 'FacebookShare'
to install all the modules of the SDK. Taking into account that doing this, will install FBSDKCoreKit, FBSDKLoginKit & FBSDKShareKit with version 4.23.0 into your project, the only way i've found to install FacebookCore, FacebookLogin and FacebookShare with version 4.22.1 of FBSDKCoreKit, FBSDKLoginKit & FBSDKShareKit is this.
Not sure if this is a duplication or not. Just wanted to share my "temporary solution".

mememto commented May 30, 2017

According to SDK documentation (https://developers.facebook.com/docs/swift/getting-started), you should add:
pod 'FacebookCore'
pod 'FacebookLogin'
pod 'FacebookShare'
to install all the modules of the SDK. Taking into account that doing this, will install FBSDKCoreKit, FBSDKLoginKit & FBSDKShareKit with version 4.23.0 into your project, the only way i've found to install FacebookCore, FacebookLogin and FacebookShare with version 4.22.1 of FBSDKCoreKit, FBSDKLoginKit & FBSDKShareKit is this.
Not sure if this is a duplication or not. Just wanted to share my "temporary solution".

@NikKovIos

This comment has been minimized.

Show comment
Hide comment
@NikKovIos

NikKovIos May 30, 2017

Solved using pod 'FBSDKCoreKit', '~> 4.23' instead of all this swifty ..
Changelogs of SDKs https://developers.facebook.com/docs/ios/downloads

NikKovIos commented May 30, 2017

Solved using pod 'FBSDKCoreKit', '~> 4.23' instead of all this swifty ..
Changelogs of SDKs https://developers.facebook.com/docs/ios/downloads

@matvdg

This comment has been minimized.

Show comment
Hide comment
@matvdg

matvdg May 31, 2017

same issue, temporary solved here: https://stackoverflow.com/questions/44248118/facebookshare-causing-compiler-error-after-update
Facebook, please UPDATE your changelog: last updated = 4.18.0 : 30 nov 2016 :$

matvdg commented May 31, 2017

same issue, temporary solved here: https://stackoverflow.com/questions/44248118/facebookshare-causing-compiler-error-after-update
Facebook, please UPDATE your changelog: last updated = 4.18.0 : 30 nov 2016 :$

@1amageek

This comment has been minimized.

Show comment
Hide comment
@1amageek

1amageek Jun 9, 2017

pod 'FacebookCore'
pod 'FacebookLogin'
pod 'FacebookShare', :git => 'https://github.com/1amageek/facebook-sdk-swift'

1amageek commented Jun 9, 2017

pod 'FacebookCore'
pod 'FacebookLogin'
pod 'FacebookShare', :git => 'https://github.com/1amageek/facebook-sdk-swift'
@ygbr

This comment has been minimized.

Show comment
Hide comment
@ygbr

ygbr commented Jun 9, 2017

+1

@kasokuta

This comment has been minimized.

Show comment
Hide comment
@kasokuta

kasokuta commented Jun 9, 2017

+1

@ygbr

This comment has been minimized.

Show comment
Hide comment
@ygbr

ygbr Jun 9, 2017

There are 2 PR's with fixes for this bug (one is even CLA signed already), why not merge them and create a new release?

ygbr commented Jun 9, 2017

There are 2 PR's with fixes for this bug (one is even CLA signed already), why not merge them and create a new release?

@tylermilner

This comment has been minimized.

Show comment
Hide comment
@tylermilner

tylermilner Jun 10, 2017

I'm getting compiler errors after running pod repo update and then pod install as well. This seems like it's an easy fix. Please push a new release ASAP!

tylermilner commented Jun 10, 2017

I'm getting compiler errors after running pod repo update and then pod install as well. This seems like it's an easy fix. Please push a new release ASAP!

@mdilaveroglu

This comment has been minimized.

Show comment
Hide comment
@mdilaveroglu

mdilaveroglu commented Jun 12, 2017

+1

@klyngov

This comment has been minimized.

Show comment
Hide comment
@klyngov

klyngov commented Aug 1, 2017

+1

@isairuiz

This comment has been minimized.

Show comment
Hide comment
@isairuiz

isairuiz commented Aug 2, 2017

+1

@johntiror

This comment has been minimized.

Show comment
Hide comment
@johntiror

johntiror commented Aug 2, 2017

+1

@ghost

This comment has been minimized.

Show comment
Hide comment
@ghost

ghost commented Aug 3, 2017

+1

@shingsoso

This comment has been minimized.

Show comment
Hide comment
@shingsoso

shingsoso Aug 8, 2017

same :)
waiting for update
;D

shingsoso commented Aug 8, 2017

same :)
waiting for update
;D

@Zulqarnain-Mustafa

This comment has been minimized.

Show comment
Hide comment
@Zulqarnain-Mustafa

Zulqarnain-Mustafa Aug 9, 2017

facing same issue.

Zulqarnain-Mustafa commented Aug 9, 2017

facing same issue.

@NMKRebelute

This comment has been minimized.

Show comment
Hide comment
@NMKRebelute

NMKRebelute Aug 11, 2017

Still..

Installing FBSDKCoreKit (4.25.0)
Installing FBSDKLoginKit (4.25.0)
Installing FBSDKShareKit (4.25.0)
Installing FacebookCore (0.2.0)
Installing FacebookLogin (0.2.0)
Installing FacebookShare (0.2.0)

Dear Facebook team please resolve the problem.

NMKRebelute commented Aug 11, 2017

Still..

Installing FBSDKCoreKit (4.25.0)
Installing FBSDKLoginKit (4.25.0)
Installing FBSDKShareKit (4.25.0)
Installing FacebookCore (0.2.0)
Installing FacebookLogin (0.2.0)
Installing FacebookShare (0.2.0)

Dear Facebook team please resolve the problem.

@goufo

This comment has been minimized.

Show comment
Hide comment
@goufo

goufo commented Aug 12, 2017

+1

@ismoli

This comment has been minimized.

Show comment
Hide comment
@ismoli

ismoli Aug 14, 2017

I like how quickly FB react to this 🥇

ismoli commented Aug 14, 2017

I like how quickly FB react to this 🥇

@ghost

This comment has been minimized.

Show comment
Hide comment
@ghost

ghost Aug 14, 2017

After all, who needs facebook nowadays? /ironic

ghost commented Aug 14, 2017

After all, who needs facebook nowadays? /ironic

@cbarbera80

This comment has been minimized.

Show comment
Hide comment
@cbarbera80

cbarbera80 Aug 15, 2017

ridiculous!

cbarbera80 commented Aug 15, 2017

ridiculous!

@tylermilner

This comment has been minimized.

Show comment
Hide comment
@tylermilner

tylermilner Aug 15, 2017

I don't know about you guys, but I gave up on Facebook ever fixing this and went back to the Obj-C SDK. Sure, I had to deal with a lovely implicitly unwrapped optional crash during Apple review, but at least my project compiles when using the latest Facebook SDK. ¯_(ツ)_/¯

tylermilner commented Aug 15, 2017

I don't know about you guys, but I gave up on Facebook ever fixing this and went back to the Obj-C SDK. Sure, I had to deal with a lovely implicitly unwrapped optional crash during Apple review, but at least my project compiles when using the latest Facebook SDK. ¯_(ツ)_/¯

@mingflifb

This comment has been minimized.

Show comment
Hide comment
@mingflifb

mingflifb Aug 20, 2017

Graph API 2.9 introduced a 90-day breaking change that prohibited the overriding of these parameters. See https://developers.facebook.com/docs/apps/changelog#v2_9

mingflifb commented Aug 20, 2017

Graph API 2.9 introduced a 90-day breaking change that prohibited the overriding of these parameters. See https://developers.facebook.com/docs/apps/changelog#v2_9

@dmr07

This comment has been minimized.

Show comment
Hide comment
@dmr07

dmr07 commented Aug 26, 2017

+1

@CoffeePowered

This comment has been minimized.

Show comment
Hide comment
@CoffeePowered

CoffeePowered Aug 31, 2017

What in the world are these FB guys doing? This must be some kind of prank that ended up in production, for over 3 months now. Get real, Facebook!

CoffeePowered commented Aug 31, 2017

What in the world are these FB guys doing? This must be some kind of prank that ended up in production, for over 3 months now. Get real, Facebook!

@nemexyz

This comment has been minimized.

Show comment
Hide comment
@nemexyz

nemexyz Sep 1, 2017

The library is obsolete. @1amageek try to make the arrangement but the rules of Facebook will not let him, then who keeps the repository? it is ridiculous what happens here if many developers take Facebook Swift for their projects. Better get on with ObjC. #159

nemexyz commented Sep 1, 2017

The library is obsolete. @1amageek try to make the arrangement but the rules of Facebook will not let him, then who keeps the repository? it is ridiculous what happens here if many developers take Facebook Swift for their projects. Better get on with ObjC. #159

KlayThompson added a commit to KlayThompson/FBAndGoogleLogin that referenced this issue Sep 7, 2017

@denirorobert

This comment has been minimized.

Show comment
Hide comment
@denirorobert

denirorobert Sep 12, 2017

still exists ☹️

denirorobert commented Sep 12, 2017

still exists ☹️

@vatsal1992

This comment has been minimized.

Show comment
Hide comment
@vatsal1992

vatsal1992 Sep 23, 2017

FB guys..! what are you doing.. come on guys you must fix this issue.

vatsal1992 commented Sep 23, 2017

FB guys..! what are you doing.. come on guys you must fix this issue.

@francodriansetti

This comment has been minimized.

Show comment
Hide comment
@francodriansetti

francodriansetti commented Sep 26, 2017

+1

@kevni111

This comment has been minimized.

Show comment
Hide comment
@kevni111

kevni111 commented Oct 1, 2017

+1

@zhihuitang

This comment has been minimized.

Show comment
Hide comment
@zhihuitang

zhihuitang Oct 2, 2017

Seems our the great company Facebook doesn't care about it at all

zhihuitang commented Oct 2, 2017

Seems our the great company Facebook doesn't care about it at all

@adnanboz

This comment has been minimized.

Show comment
Hide comment
@adnanboz

adnanboz commented Oct 2, 2017

+1

@cs14rendra

This comment has been minimized.

Show comment
Hide comment
@cs14rendra

cs14rendra Oct 5, 2017

I am using these Pod and its working fine .
pod 'Bolts'
pod 'FBSDKCoreKit'
pod 'FBSDKLoginKit'

tested on xode 8 and xcode 9
(i got it from a tutorial, i will update link later)

cs14rendra commented Oct 5, 2017

I am using these Pod and its working fine .
pod 'Bolts'
pod 'FBSDKCoreKit'
pod 'FBSDKLoginKit'

tested on xode 8 and xcode 9
(i got it from a tutorial, i will update link later)

@aarkus7

This comment has been minimized.

Show comment
Hide comment
@aarkus7

aarkus7 commented Oct 6, 2017

+1

@SGBRocks73

This comment has been minimized.

Show comment
Hide comment
@SGBRocks73

SGBRocks73 Oct 11, 2017

screen shot 2017-10-11 at 14 06 56

Those fields have been deprecated in 4.22.0 (18 Apr 2017). I would recommend just comment out.

SGBRocks73 commented Oct 11, 2017

screen shot 2017-10-11 at 14 06 56

Those fields have been deprecated in 4.22.0 (18 Apr 2017). I would recommend just comment out.

@gfosco

This comment has been minimized.

Show comment
Hide comment
@gfosco

gfosco Oct 12, 2017

Contributor

4.27.1 of the obj-c SDK is out, 0.3.0 of Swift sdk is out. All of this should be resolved.

Contributor

gfosco commented Oct 12, 2017

4.27.1 of the obj-c SDK is out, 0.3.0 of Swift sdk is out. All of this should be resolved.

@gfosco gfosco closed this Oct 12, 2017

@atistank

This comment has been minimized.

Show comment
Hide comment
@atistank

atistank Nov 8, 2017

4.27.1 same problem :( they don't fix it

atistank commented Nov 8, 2017

4.27.1 same problem :( they don't fix it

@ZhixiangWangCR7

This comment has been minimized.

Show comment
Hide comment
@ZhixiangWangCR7

ZhixiangWangCR7 commented Aug 8, 2018

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment