zhuhaow / NEKit

A toolkit for Network Extension Framework
https://zhuhaow.github.io/NEKit
BSD 3-Clause "New" or "Revised" License
2.84k stars 672 forks source link

Carthage BUILD FAILED #43

Closed broccolii closed 7 years ago

broccolii commented 7 years ago

Xcode: Version 8.2.1 (8C1002) macOS: 10.12.2 (16C67) Carthage: 0.18.1 Swift: 3.0

use carthage update --no-use-binaries --platform ios

The following is an error

/Users/Broccoli/Desktop/Demo/Carrot/Carthage/Checkouts/NEKit/src/RawSocket/NWUDPSocket.swift:58:25: error: value of optional type '[Data]?' not unwrapped; did you mean to use '!' or '?'?
A shell task (/usr/bin/xcrun xcodebuild -project /Users/Broccoli/Desktop/Demo/Carrot/Carthage/Checkouts/NEKit/NEKit.xcodeproj -scheme NEKit-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:
    CompileSwift normal arm64
    CompileSwiftSources normal arm64 com.apple.xcode.tools.swift.compiler
(2 failures)
xiao99xiao commented 7 years ago

@broccolii Have you tried master branch?

broccolii commented 7 years ago

@xiao99xiao yes

broccolii commented 7 years ago

@xiao99xiao Just at the moment, I used my colleague's mac build sucessed

zhuhaow commented 7 years ago

Make sure you are using the latest Xcode

Jonovono commented 7 years ago

Why was this closed @zhuhaow ?

@broccolii did you have a solution? I seem to be getting the same error. Using the latest Xcode - 8.2.1

/Users/jordan/Desktop/testingNEKit/Carthage/Checkouts/CocoaAsyncSocket/Source/RunLoop/AsyncSocket.m:4282:38: warning: 'AsyncSocket' is deprecated: The RunLoop versions of CocoaAsyncSocket are deprecated and will be removed in a future release. Please migrate to GCDAsyncSocket. [-Wdeprecated-declarations]
/Users/jordan/Desktop/testingNEKit/Carthage/Checkouts/CocoaAsyncSocket/Source/GCD/GCDAsyncSocket.m:1985:37: warning: multiple methods named 'initWithDelegate:delegateQueue:socketQueue:' found [-Wstrict-selector-match]
/Users/jordan/Desktop/testingNEKit/Carthage/Checkouts/CocoaAsyncSocket/Source/RunLoop/AsyncUdpSocket.m:195:17: warning: Implementing deprecated class [-Wdeprecated-implementations]
/Users/jordan/Desktop/testingNEKit/Carthage/Checkouts/CocoaAsyncSocket/Source/RunLoop/AsyncUdpSocket.m:2307:3: warning: 'AsyncUdpSocket' is deprecated: The RunLoop versions of CocoaAsyncSocket are deprecated and will be removed in a future release. Please migrate to GCDAsyncUdpSocket. [-Wdeprecated-declarations]
/Users/jordan/Desktop/testingNEKit/Carthage/Checkouts/CocoaAsyncSocket/Source/RunLoop/AsyncUdpSocket.m:2307:41: warning: 'AsyncUdpSocket' is deprecated: The RunLoop versions of CocoaAsyncSocket are deprecated and will be removed in a future release. Please migrate to GCDAsyncUdpSocket. [-Wdeprecated-declarations]
<module-includes>:1:1: warning: umbrella header for module 'CocoaLumberjack' does not include header '/Users/jordan/Desktop/testingNEKit/Carthage/Checkouts/CocoaLumberjack/Classes/CLI/CLIColor.h'
<module-includes>:1:1: warning: umbrella header for module 'CocoaLumberjack' does not include header '/Users/jordan/Desktop/testingNEKit/Carthage/Checkouts/CocoaLumberjack/Classes/CLI/CLIColor.h'
<module-includes>:1:1: warning: umbrella header for module 'CocoaLumberjack' does not include header '/Users/jordan/Desktop/testingNEKit/Carthage/Checkouts/CocoaLumberjack/Classes/CLI/CLIColor.h'
<module-includes>:1:1: warning: umbrella header for module 'CocoaLumberjack' does not include header '/Users/jordan/Desktop/testingNEKit/Carthage/Checkouts/CocoaLumberjack/Classes/CLI/CLIColor.h'
<module-includes>:1:1: warning: umbrella header for module 'CocoaLumberjack' does not include header '/Users/jordan/Desktop/testingNEKit/Carthage/Checkouts/CocoaLumberjack/Classes/CLI/CLIColor.h'
warning: SwiftLint not installed, download from https://github.com/realm/SwiftLint
<module-includes>:1:1: warning: umbrella header for module 'CocoaLumberjack' does not include header 'CLIColor.h'
/Users/jorda** BUILD FAILED **

The following build commands failed:
        CompileSwift normal x86_64
        CompileSwiftSources normal x86_64 com.apple.xcode.tools.swift.compiler
(2 failures)
n/Desktop/testingNEKit/Carthage/Checkouts/NEKit/src/RawSocket/NWUDPSocket.swift:58:25: error: value of optional type '[Data]?' not unwrapped; did you mean to use '!' or '?'?
A shell task (/usr/bin/xcrun xcodebuild -project /Users/jordan/Desktop/testingNEKit/Carthage/Checkouts/NEKit/NEKit.xcodeproj -scheme NEKit-macOS -configuration Release ONLY_ACTIVE_ARCH=NO CODE_SIGNING_REQUIRED=NO CODE_SIGN_IDENTITY= CARTHAGE=YES clean build) failed with exit code 65:
** BUILD FAILED **

The following build commands failed:
        CompileSwift normal x86_64
        Compile
zhuhaow commented 7 years ago

Try the latest version, 0.11.1

Jonovono commented 7 years ago

@zhuhaow thanks, that seemed to fix it!