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

Xcode 8.3 Swift 3.1 fails to compile application due to FacebookCore #131

Closed
rahimizad opened this issue Feb 3, 2017 · 32 comments
Closed
Assignees

Comments

@rahimizad
Copy link

Showing All Messages
Command failed due to signal: Segmentation fault: 11

`

  1. While loading members for 'PictureView' in module 'FacebookCore'
  2. While deserializing PatternBindingDecl #83in 'FacebookCore'
  3. While deserializing 'pictureAspectRatio' (VarDecl Cannot install due Obcj failure #84)in 'FacebookCore'
  4. While deserializing decl Issue Building Facebook-SDK-Swift at "0.2.0" w/ Carthage #142 (XREF)in 'FacebookCore'
  5. Cross-reference to module 'FacebookCore'
    ... UserProfile
    ... in an extension in module 'FacebookCore'
    ... PictureAspectRatio
  6. While loading members for extension of UserProfile in module 'FacebookCore'
  7. While deserializing 'Completion' (TypeAliasDecl Improve ambiguous logIn() function names in LoginManager. #97)in 'FacebookCore'
  8. While deserializing decl How to handle when user switch/change account? #178 (XREF)in 'FacebookCore'
  9. Cross-reference to module 'FacebookCore'
    ... UserProfile
    ... in an extension in module 'FacebookCore'
    ... FetchResult
  10. While loading members for extension of UserProfile in module 'FacebookCore'
  11. While deserializing 'loadCurrent' (FuncDecl OpenGraphContent on swift3 #105)in 'FacebookCore'
    `
@oiledCode
Copy link

Same issue in my project

@distantnative
Copy link

Here as well

@magin
Copy link

magin commented Feb 6, 2017

Same issue

@barbarosd
Copy link

same issue !!

@eddie1707
Copy link

Same here!

@sohamgarud3
Copy link

Same here

@mikeknapp
Copy link

Same here.... any solutions? Everything was working fine. Then I upgraded to Sierra on a fresh OS install. Reinstalled the Pods and got this error.

@mikeknapp
Copy link

I solved this by downgrading to Xcode 8.2.1 (released Dec 19, 2016).

It has possibly been caused by an interaction between the new versions of FBSDKCoreKit and FBSDKLoginKit (4.19.0) -- or even just the FB SDK as a whole -- and the new Xcode somehow.

@ckalbas
Copy link

ckalbas commented Feb 21, 2017

But we can't run iOS Beta 10.3 on Xcode 8.2.1

@exocode
Copy link

exocode commented Mar 14, 2017

any news on that? I am quite new to carthage, but none of the facebook repos would compile. So maybe I am doing something wrong?

My Cartfile

github "facebook/Facebook-SDK-Swift"

also tried

facebook/facebook-ios-sdk

The compilation:


➜  carthage git:(master) ✗ xcodebuild -version
Xcode 8.3
Build version 8W143q
➜  carthage git:(master) ✗ carthage version
0.20.1


➜  carthage git:(master) ✗ carthage update
*** Fetching Facebook-SDK-Swift
*** Fetching facebook-ios-sdk
*** Fetching Bolts-ObjC
*** Checking out Bolts-ObjC at "1.8.4"
*** Downloading facebook-ios-sdk.framework binary at "4.20.1"
*** Checking out facebook-ios-sdk at "sdk-version-4.20.1"
*** Checking out Facebook-SDK-Swift at "0.2.0"
*** xcodebuild output can be found in /var/folders/kt/t6w8hz2j53s39ktnvmqhyzh00000gn/T/carthage-xcodebuild.iLAn5g.log
*** Building scheme "Bolts-macOS" in Bolts.xcodeproj
*** Building scheme "Bolts-tvOS-Dynamic" in Bolts.xcodeproj
*** Building scheme "Bolts-iOS-Dynamic" in Bolts.xcodeproj
*** Building scheme "Bolts-watchOS-Dynamic" in Bolts.xcodeproj
*** Building scheme "FBSDKCoreKit-Dynamic" in FacebookSDK.xcworkspace
Build Failed
	Task failed with exit code 65:
	/usr/bin/xcrun xcodebuild -workspace /Users/jan/iOS/carthage/carthage/Checkouts/facebook-ios-sdk/FacebookSDK.xcworkspace -scheme FBSDKCoreKit-Dynamic -configuration Release -derivedDataPath /Users/jan/Library/Caches/org.carthage.CarthageKit/DerivedData/facebook-ios-sdk/sdk-version-4.20.1 -sdk iphoneos ONLY_ACTIVE_ARCH=NO BITCODE_GENERATION_MODE=bitcode CODE_SIGNING_REQUIRED=NO CODE_SIGN_IDENTITY= CARTHAGE=YES clean build

This usually indicates that project itself failed to compile. Please check the xcodebuild log for more details: /var/folders/kt/t6w8hz2j53s39ktnvmqhyzh00000gn/T/carthage-xcodebuild.iLAn5g.log

here is a GIST of the output

https://gist.github.com/exocode/e4418b5fa5a2d8ff5b3e857088b57fe5

@ffittschen
Copy link

ffittschen commented Mar 27, 2017

The cause of this issue seems to be fixed in facebook/facebook-ios-sdk#853. But it's not merged/released yet 😕

@LiborZ
Copy link

LiborZ commented Mar 28, 2017

Please fix this. Thanks

@natioskar
Copy link

Xcode 8.3 Swift 3.1 is officially released and the issue still remains

@ghost
Copy link

ghost commented Mar 29, 2017

Not able to use Xcode 8.3(Swift 3.1) for my project due to this issue. Please fix this.

@anfriis
Copy link

anfriis commented Mar 30, 2017

Having the same issue as @PushpaKN.

If you guys want a temporary fix, I can recommend this fork:
https://github.com/mylifeasdog/facebook-sdk-swift

It works fine for me!

@neptis-sa
Copy link

Same here!

@ghost
Copy link

ghost commented Mar 30, 2017

@anfriis no success, still getting error Build Failed
Task failed with exit code 65:
/usr/bin/xcrun xcodebuild -workspace /Users/.../Carthage/Checkouts/facebook-ios-sdk/FacebookSDK.xcworkspace -scheme FBSDKCoreKit-Dynamic -configuration Release -derivedDataPath /Users/.../Library/Caches/org.carthage.CarthageKit/DerivedData/facebook-ios-sdk/sdk-version-4.20.2 -sdk iphoneos ONLY_ACTIVE_ARCH=NO BITCODE_GENERATION_MODE=bitcode CODE_SIGNING_REQUIRED=NO CODE_SIGN_IDENTITY= CARTHAGE=YES clean build

This usually indicates that project itself failed to compile. Please check the xcodebuild log for more details: /var/folders/t0/kq0kpr8j4710hvs8m1_wk5p582_w2_/T/carthage-xcodebuild.y0WjgS.log

@ckalbas
Copy link

ckalbas commented Mar 30, 2017

After the official Xcode 8.3 release and pod updating my project, it worked.

@jmballantyne
Copy link

no success here. still getting the same build fail error 65

@netadapt
Copy link

netadapt commented Mar 30, 2017

@PushpaKN Update your Cartfile to :

github "mylifeasdog/facebook-sdk-swift" "master"

After stepping back to 8.2 for a successful build, I was then unable to test on updated 10.3 phones, and needed a solution. So, back on 8.3, and glad to have this fork to work with for now.

@ghost
Copy link

ghost commented Mar 30, 2017

Use pods or Carthage (github "mylifeasdog/facebook-sdk-swift" "master") to build successfully. @netadapt thanks :)

@fostah
Copy link

fostah commented Mar 31, 2017

I'm seeing the same issue with Carthage and facebook-ios-sdk. When you dig in, the error is:

error: redefinition of module 'FBSDKCoreKit'
framework module FBSDKCoreKit {
                 ^
/Users/tdeane/Library/Caches/org.carthage.CarthageKit/DerivedData/facebook-ios-sdk/sdk-version-4.20.1/Build/Intermediates/FBSDKCoreKit.build/Release-iphoneos/FBSDKCoreKit-Dynamic.build/module.modulemap:1:18: note: previously defined here
framework module FBSDKCoreKit {
                 ^
1 error generated.

@zirinisp
Copy link

zirinisp commented Apr 2, 2017

I am getting the same issue. I had the same error in another framework and had to change compiler optimisations to make it work. I will try the fork given.

@applehawk
Copy link

Same issue

@fostah
Copy link

fostah commented Apr 6, 2017

In case you're only watching this issue, 4.21.0 seems to address this now, as of yesterday:

facebook/facebook-ios-sdk#853

@nlutsenko
Copy link
Contributor

Hey everyone,

Sorry for being silent all this time.
Yes, indeed there was a change needed to the Facebook ObjC SDK, that we depend on here from Swift.
I am currently working on updating all small tidbits and intricacies here, as well as adding long-awaited features to the Swift SDK.

The release for 0.3 Swift SDK is coming very soon, so stay tuned.

@nlutsenko nlutsenko self-assigned this Apr 8, 2017
@WassimSDE
Copy link

Any update ?

@jordimares
Copy link

I am waiting for this too. This is blocking me to continue the development of an app of which I need a demo ready in two weeks...

@exocode
Copy link

exocode commented Apr 15, 2017

@jordimares I've done it in the meanwhile by cocoapods. If it's only for "demo" simple try the pod approach

@sarthakappinventiv1
Copy link

Hi I'm facing the same issue in the xCode version 8.3.2.

@sameh0
Copy link

sameh0 commented Apr 26, 2017

the issue is still persistent in Xcode 8.3.2

@sanjaysurpleplay
Copy link

Hi xcode 8.3.2 with swift 3.1 facebook login not working.

@gfosco gfosco closed this as completed Oct 12, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests