eBay / NMessenger

A fast, lightweight messenger component built on AsyncDisplaykit and written in Swift
Other
2.42k stars 272 forks source link

Facing issues while installing this framework as carthage. #166

Open v2Nitesh opened 6 years ago

v2Nitesh commented 6 years ago

Hi @atainter @DavidSchechter ,

I was trying to install this framework as carthage but facing below issue.

Logs :

~/Documents/v2Apps/Examples/V2POCNMessenger $ carthage update --platform iOS Cloning NMessenger Cloning AsyncDisplayKit Cloning PINRemoteImage Cloning PINCache Cloning PINOperation Checking out PINOperation at "1.1" Downloading PINCache.framework binary at "3.0.1-beta.6" Downloading PINRemoteImage.framework binary at "Beta 3" Checking out AsyncDisplayKit at "1.9.92" Checking out NMessenger at "1.0.80" xcodebuild output can be found in /var/folders/lq/kk_7ry4n6qj4m9rh5b67rw9c0000gn/T/carthage-xcodebuild.RB4OVK.log Building scheme "PINOperation" in PINOperation.xcodeproj *** Building scheme "AsyncDisplayKit-iOS" in AsyncDisplayKit.xcworkspace BUILD FAILED

The following build commands failed: CompileC /Users/nitesh.meshram/Library/Developer/Xcode/DerivedData/AsyncDisplayKit-fsyuomdewrpgpdfskxaelkpjujwn/Build/Intermediates/AsyncDisplayKit.build/Release-iphoneos/AsyncDisplayKit-iOS.build/Objects-normal/armv7/ASDefaultPlayButton.o AsyncDisplayKit/Private/ASDefaultPlayButton.m normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler (1 failure) /Users/nitesh.meshram/Documents/v2Apps/Examples/V2POCNMessenger/Carthage/Checkouts/AsyncDisplayKit/AsyncDisplayKit/module.modulemap:1:18: error: redefinition of module 'AsyncDisplayKit' /Users/nitesh.meshram/Documents/v2Apps/Examples/V2POCNMessenger/Carthage/Checkouts/AsyncDisplayKit/AsyncDisplayKit/module.modulemap:1:18: error: redefinition of module 'AsyncDisplayKit' /Users/nitesh.meshram/Documents/v2Apps/Examples/V2POCNMessenger/Carthage/Checkouts/AsyncDisplayKit/AsyncDisplayKit/module.modulemap:1:18: error: redefinition of module 'AsyncDisplayKit' A shell task (/usr/bin/xcrun xcodebuild -workspace /Users/nitesh.meshram/Documents/v2Apps/Examples/V2POCNMessenger/Carthage/Checkouts/AsyncDisplayKit/AsyncDisplayKit.xcworkspace -scheme AsyncDisplayKit-iOS -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/nitesh.meshram/Library/Developer/Xcode/DerivedData/AsyncDisplayKit-fsyuomdewrpgpdfskxaelkpjujwn/Build/Intermediates/AsyncDisplayKit.build/Release-iphoneos/AsyncDisplayKit-iOS.build/Objects-normal/armv7/ASDefaultPlayButton.o AsyncDisplayKit/Private/ASDefaultPlayButton.m normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler (1 failure)

Can you please give me some workaround or please add carthage support for this.

Thank you Nitesh

faisalmemon commented 6 years ago

I get a slightly different error:

*** Building scheme "AsyncDisplayKit-iOS" in AsyncDisplayKit.xcworkspace
** BUILD FAILED **

The following build commands failed:
    CompileC /Users/faisalm/Library/Developer/Xcode/DerivedData/AsyncDisplayKit-ejbxwlhbnarvxxgbatxhctlugrfy/Build/Intermediates.noindex/AsyncDisplayKit.build/Release-iphoneos/AsyncDisplayKit-iOS.build/Objects-normal/armv7/ASLayoutManager.o AsyncDisplayKit/TextKit/ASLayoutManager.m normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)
/Users/faisalm/dev/scratch/nmessenger/Carthage/Checkouts/AsyncDisplayKit/AsyncDisplayKit/module.modulemap:1:18: error: redefinition of module 'AsyncDisplayKit'
/Users/faisalm/dev/scratch/nmessenger/Carthage/Checkouts/AsyncDisplayKit/AsyncDisplayKit/module.modulemap:1:18: error: redefinition of module 'AsyncDisplayKit'
A shell task failed with exit code 65:
** BUILD FAILED **

The following build commands failed:
    CompileC /Users/faisalm/Library/Developer/Xcode/DerivedData/AsyncDisplayKit-ejbxwlhbnarvxxgbatxhctlugrfy/Build/Intermediates.noindex/AsyncDisplayKit.build/Release-iphoneos/AsyncDisplayKit-iOS.build/Objects-normal/armv7/ASLayoutManager.o AsyncDisplayKit/TextKit/ASLayoutManager.m normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)

I am using Xcode 9.

d4rkm1nd54 commented 6 years ago

Same here :'(

 shell task (/usr/bin/xcrun xcodebuild -workspace /Users/Documents/project/Carthage/Checkouts/AsyncDisplayKit/AsyncDisplayKit.xcworkspace -scheme AsyncDisplayKit-iOS -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/User/Library/Developer/Xcode/DerivedData/AsyncDisplayKit-hdvgvutxxvbrpbgmwtegijhcjagn/Build/Intermediates.noindex/AsyncDisplayKit.build/Release-iphoneos/AsyncDisplayKit-iOS.build/Objects-normal/armv7/ASLayoutManager.o AsyncDisplayKit/TextKit/ASLayoutManager.m normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)
bayareahank commented 6 years ago

It is the cartfile isn't updated to Texture when they did the Texture migration.

Replace the content inside Cartfile with this should solve this compilation error.

github "TextureGroup/Texture" "2.3.2"

soleniacz commented 6 years ago

Same here. There is a problem with (Texture) build Configuration?

Changing file module.modulemap to AsyncDisplayKit.modulemap and Module Map File in build configuration AsyncDisplayKit/module.modulemap to AsyncDisplayKit/AsyncDisplayKit.modulemap work but of course there is another

error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.

Why? Why? If there is support Carthage I should don't need to use Cocoa Pods.