AliSoftware / Dip

Simple Swift Dependency container. Use protocols to resolve your dependencies and avoid singletons / sharedInstances!
MIT License
978 stars 75 forks source link

swift42 branch fails to install under carthage #204

Closed plasticbraindotcom closed 5 years ago

plasticbraindotcom commented 5 years ago

Dip fails to install using carthage.

Environment: Xcode 10.0 (10A255), Swift 4.2, macOS 10.14 beta 11, iOS 11.4 target project. Project also uses Dip-UI.

Cartfile: github "AliSoftware/Dip" "swift42" github "AliSoftware/Dip-UI"

Steps to reproduce: In Terminal, perform: carthage update

Results (in Terminal): Fetching Dip-UI Fetching Dip Checking out Dip-UI at "2.0.0" Checking out Dip at "dadb68862a4a8ad6228f3584e0ec19ded0f95098" xcodebuild output can be found in /var/folders/r4/6j2zz81948l3_md50x843c3m0000gn/T/carthage-xcodebuild.RfrOOQ.log Downloading Dip-UI.framework binary at "Swift 4" *** Skipped installing Dip-UI.framework binary due to the error: "Incompatible Swift version - framework was built with 4.0 (swiftlang-900.0.65 clang-900.0.37) and the local version is 4.2 (swiftlang-1000.11.37.1 clang-1000.11.45.1)."

Falling back to building from the source

*** Building scheme "Dip" in Dip.xcworkspace Build Failed Task failed with exit code 70:


Log excerpt:

xcodebuild: error: Unable to find a destination matching the provided destination specifier: { platform:watchOS Simulator, id:B1F5880F-D3DA-4447-9542-A9EDE4B5595B }

The requested device could not be found because no available devices matched the request.

Additional comments:

B1F5880F-D3DA-4447-9542-A9EDE4B5595B matches device Apple Watch - 38mm. I tried installing an Apple Watch - 38mm simulator, but this did not address the issue.