Skip to content
This repository has been archived by the owner on Jul 28, 2020. It is now read-only.

Carthage Compilation Error #13

Closed
vpetkar opened this issue Jul 20, 2016 · 3 comments
Closed

Carthage Compilation Error #13

vpetkar opened this issue Jul 20, 2016 · 3 comments

Comments

@vpetkar
Copy link

vpetkar commented Jul 20, 2016

I believe this is related to #10, but adding the Lock-Facebook to my Cartfile results in a build failure.

Cartfile

# Auth0
github "auth0/Lock.iOS-OSX" ~> 1.26
github "auth0/Lock-Facebook.iOS" ~> 2.1
github "auth0/SimpleKeychain" ~> 0.6.1
# End Auth0

Error:

*** Building scheme "LockFacebook" in LockFacebook.xcworkspace
** BUILD FAILED **


The following build commands failed:
    CompileC /Users/vedpetkar/Library/Developer/Xcode/DerivedData/LockFacebook-gvfudtiiznibmsfppaflzzacagxw/Build/Intermediates/LockFacebook.build/Release-iphoneos/LockFacebook.build/Objects-normal/armv7/A0FacebookAuthenticator.o LockFacebook/A0FacebookAuthenticator.m normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler
    CompileC /Users/vedpetkar/Library/Developer/Xcode/DerivedData/LockFacebook-gvfudtiiznibmsfppaflzzacagxw/Build/Intermediates/LockFacebook.build/Release-iphoneos/LockFacebook.build/Objects-normal/arm64/A0FacebookAuthenticator.o LockFacebook/A0FacebookAuthenticator.m normal arm64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(2 failures)
/Users/vedpetkar/Development/neutun-ios/Neutun-iOS/Carthage/Checkouts/Lock-Facebook.iOS/LockFacebook/A0FacebookAuthenticator.h:24:9: fatal error: 'Lock/A0BaseAuthenticator.h' file not found
/Users/vedpetkar/Development/neutun-ios/Neutun-iOS/Carthage/Checkouts/Lock-Facebook.iOS/LockFacebook/A0FacebookAuthenticator.h:24:9: fatal error: 'Lock/A0BaseAuthenticator.h' file not found
A shell task (/usr/bin/xcrun xcodebuild -workspace /Users/vedpetkar/Development/neutun-ios/Neutun-iOS/Carthage/Checkouts/Lock-Facebook.iOS/LockFacebook.xcworkspace -scheme LockFacebook -configuration Release -sdk iphoneos ONLY_ACTIVE_ARCH=NO BITCODE_GENERATION_MODE=bitcode CODE_SIGNING_REQUIRED=NO CODE_SIGN_IDENTITY= CARTHAGE=YES clean build) failed with exit code 65:
** BUILD FAILED **


The following build commands failed:
    CompileC /Users/vedpetkar/Library/Developer/Xcode/DerivedData/LockFacebook-gvfudtiiznibmsfppaflzzacagxw/Build/Intermediates/LockFacebook.build/Release-iphoneos/LockFacebook.build/Objects-normal/armv7/A0FacebookAuthenticator.o LockFacebook/A0FacebookAuthenticator.m normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler
    CompileC /Users/vedpetkar/Library/Developer/Xcode/DerivedData/LockFacebook-gvfudtiiznibmsfppaflzzacagxw/Build/Intermediates/LockFacebook.build/Release-iphoneos/LockFacebook.build/Objects-normal/arm64/A0FacebookAuthenticator.o LockFacebook/A0FacebookAuthenticator.m normal arm64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(2 failures)

Carthage will build fine if that line is commented out. Looking for any possiblities.

@rocketedaway
Copy link

Same issue here ... Seems to be an issue with the Facebook SDK and Carthage.

Cartfile:

# Authentication Dependencies
github "auth0/Auth0.swift" ~> 1.7
github "auth0/Lock.swift" ~> 2.3
github "auth0/Lock-Facebook.iOS" ~> 2.2
github "auth0/SimpleKeychain"

Error:

** BUILD FAILED **


The following build commands failed:
	CompileC /Users/randy/Library/Caches/org.carthage.CarthageKit/DerivedData/Lock-Facebook.iOS/2.2.1/Build/Intermediates/LockFacebook.build/Release-iphoneos/LockFacebook.build/Objects-normal/armv7/A0FacebookAuthenticator.o LockFacebook/A0FacebookAuthenticator.m normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler
	CompileC /Users/randy/Library/Caches/org.carthage.CarthageKit/DerivedData/Lock-Facebook.iOS/2.2.1/Build/Intermediates/LockFacebook.build/Release-iphoneos/LockFacebook.build/Objects-normal/arm64/FacebookProvider.o LockFacebook/FacebookProvider.m normal arm64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(2 failures)

@cocojoe
Copy link
Member

cocojoe commented Jul 25, 2017

There are a couple of caveats here, the Lock-Facebook.iOS is designed for Lock 1.x, it will not integrate directly with Lock 2.x. The recommended installation method is via cocapods.

@cocojoe cocojoe closed this as completed Jul 25, 2017
@jim-obrien-orig
Copy link

Just a note on this - if you clear the carthage cache for these types of issues, it fixes it: rm -rf ~/Library/Caches/org.carthage.CarthageKit

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

4 participants