Skip to content
This repository has been archived by the owner on Nov 2, 2019. It is now read-only.

Compiler error in Xcode 10 beta 1 #235

Closed
kdawgwilk opened this issue Jun 4, 2018 · 11 comments · Fixed by #238
Closed

Compiler error in Xcode 10 beta 1 #235

kdawgwilk opened this issue Jun 4, 2018 · 11 comments · Fixed by #238

Comments

@kdawgwilk
Copy link

Line 151 has this compiler error: Argument type 'SDKLoggingBehavior?' does not conform to expected type 'Sequence'

Which might be a Swift 4.2 bug since .loggingBehavior() is a NSSet so maybe the bridging is failing?

https://github.com/facebook/facebook-sdk-swift/blob/baea2e1c5e453a5c627c7452f1c0f4d119ab365e/Sources/Core/Common/SDKSettings.swift#L143-L157

@catjia1011
Copy link

flatMap should be changed to compactMap in this case, which should already be done in Swift 4.1

@kdawgwilk
Copy link
Author

I would point out this is compiling with the 4.2 compiler but using 4.0 mode so it should be backwards compatible

@akshya672222
Copy link

Not working in Xcode 10 beta 2

@ManuelPoq
Copy link

ManuelPoq commented Jul 5, 2018

@akshya672222 Make sure that the FacebookCore pod has a SWIFT_VERSION of 4.1 in the build settings in your project

@akshya672222
Copy link

@ManuelPoq making it 4.1 worked, giving the error in 4.2

@ManuelPoq
Copy link

ManuelPoq commented Jul 6, 2018

@akshya672222 yes, it should be 4.1 :) Glad to hear that it worked 👍

@Jignesh1805
Copy link

compactMap not run in swift 4.0

@CHardaker
Copy link

Not compiling using xCode 10 release version using Swift 4.2. There are also some "always fails" messages which will make functions useless.

@Jignesh1805
Copy link

ok thank you.
how to solve in below issue
I am uploaded video in facebook but not return post_id ?

@kjoe07
Copy link

kjoe07 commented Sep 21, 2018

xcode 10 GM does not have swift4.1 to select as swift version just swift4.0 4.2 and swift3

@ANADIR
Copy link

ANADIR commented Feb 1, 2019

e in below issue
I am uploaded

rraq

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

8 participants