SDK Does Not Work With Xcode 10.0- Swift 4.2 #267
Comments
Until an update is available you can build using a legacy swift version. Using cocoa pods: post_install do |installer|
installer.pods_project.targets.each do |target|
if ['FacebookCore', 'FacebookLogin'].include? target.name
target.build_configurations.each do |config|
config.build_settings['SWIFT_VERSION'] = '3.2'
end
end
end
end |
Hi @andschdk, is there a way to build using Carthage? |
@wangqingzhouleo, I am not totally sure about Carthage. To get going I guess you can open the affected frameworks' project file (from Then run |
Work in progress currently. Hopefully support for Swift 4.2 should be released very shortly. |
Ok . i'm waiting for the new version |
Hi, thank you @andschdk. I am closeing this issue. |
New version has been released |
Thanks Cody! Appreciate the prompt response! |
Hi guys, I tried using pod install of FacebookCore and FacebookLogin but I'm receiving similar errors after the new version has been released. |
@StormKop Are you using the Cocoapods 1.6.0.beta.1? |
Remember to |
@muthukrishnanOCS I'll have to check it out but I don't think so. Thanks for the advice! |
Thanks for the advice @muthukrishnanOCS and @andschdk. I was running on cocoa pods version 1.5.3 and I tried I did a |
Guys I am running swift 4.2 on Xcode 10.. I have installed the following in my pod file pod 'FacebookCore' then.. i try to import FacebookShare . ... and then it fails.. it does not even auto-complete the module name for me.. Any ideas? I see above this was fixed but is there any additional work that has to be done other than pod install and import? I have also pod repo update and pod update after i install and neither help Thanks |
nevermind.. after a couple hours of the painful troubleshooting.. it just started working, removed all pods... re-installed.. closed Xcode.. cleaned.. rebuilt.. annoying how inconsistent this is.. any tips lemme know, graci |
@Deg5112 - These issues could be related to Xcode 10, which uses the new Xcode build system by default. It is incompatible with the legacy build system and can cause a lot of ambiguous build errors. |
Login with swift 4.2 version of the SDK (library version 4.39.0) doesn't work. Always get this exception - |
@yesnoyes I have the same error, did you solve the problem? |
Solution: #301 |
@babuiglesiaskhan This Ticket is for the bug related to Facebook login. However I can give you a clue to narrow down your problem - |
Facebook Swift SDK Issue
Checklist
Environment
Describe your dev environment here, giving as many details as possible. If you have them, make sure to include:
10.0.
4.2.
[Cocoapods]
versionSDK VERSION 4.35 --POD VERSION: 1.6.0.beta.1
Issue Details
'FacebookCore-Swift.h' not found
Could not build Objective-C module 'FacebookCore'
Goals
What do you want to achieve?
Continue working with my project. After XCode update Facebook SDK does not work.
Expected Results
Just Works
Actual Results
6 related issue with Facebook SDK
Steps to Reproduce
Just try a existing project with Cocoapods on XCode 10.0 - Swift 4.2
The text was updated successfully, but these errors were encountered: