facebook / idb

idb is a flexible command line interface for automating iOS simulators and devices
https://fbidb.io
MIT License
4.55k stars 436 forks source link

Error when compiling HEAD using Homebrew #430

Closed matt-oakes closed 5 years ago

matt-oakes commented 7 years ago

Hi,

I was having issues with installing this project using Homebrew at the HEAD. It seems to be an issue related to 92ac71c82f963c9997facdc8b0436714a71abd12. Here is the output when Homebrew attempts to build the project:

❯❯❯ brew install fbsimctl --HEAD                                                                 map_ui ✭
==> Installing fbsimctl from facebook/fb
==> Installing dependencies for facebook/fb/fbsimctl: carthage
==> Installing facebook/fb/fbsimctl dependency: carthage
==> Downloading https://homebrew.bintray.com/bottles/carthage-0.24.0.sierra.bottle.tar.gz
==> Downloading from https://akamai.bintray.com/ae/ae221f34a59985f753f033cf38b5d2719b60e306b295cf2c4db0d8ad97614a31?__gda__=e
######################################################################## 100.0%
==> Pouring carthage-0.24.0.sierra.bottle.tar.gz
==> Using the sandbox
==> Caveats
Bash completion has been installed to:
  /usr/local/etc/bash_completion.d

zsh completions have been installed to:
  /usr/local/share/zsh/site-functions
==> Summary
🍺  /usr/local/Cellar/carthage/0.24.0: 64 files, 22.7MB
==> Installing facebook/fb/fbsimctl --HEAD
==> Cloning https://github.com/facebook/FBSimulatorControl.git
Updating /Users/matt/Library/Caches/Homebrew/fbsimctl--git
==> Checking out branch master
==> ./build.sh fbsimctl build /usr/local/Cellar/fbsimctl/HEAD-92ac71c
Last 15 lines from /Users/matt/Library/Logs/Homebrew/fbsimctl/01.build.sh:
CompileSwift normal x86_64 /tmp/fbsimctl-20170718-48991-m0i7oh/fbsimctl/FBSimulatorControlKit/Sources/Relay.swift
    cd /tmp/fbsimctl-20170718-48991-m0i7oh/fbsimctl
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift -frontend -c /tmp/fbsimctl-20170718-48991-m0i7oh/fbsimctl/FBSimulatorControlKit/Sources/CLIBootstrapper.swift /tmp/fbsimctl-20170718-48991-m0i7oh/fbsimctl/FBSimulatorControlKit/Sources/Arguments.swift /tmp/fbsimctl-20170718-48991-m0i7oh/fbsimctl/FBSimulatorControlKit/Sources/ParserDescription.swift /tmp/fbsimctl-20170718-48991-m0i7oh/fbsimctl/FBSimulatorControlKit/Sources/Environment.swift /tmp/fbsimctl-20170718-48991-m0i7oh/fbsimctl/FBSimulatorControlKit/Sources/DeviceReporter.swift /tmp/fbsimctl-20170718-48991-m0i7oh/fbsimctl/FBSimulatorControlKit/Sources/Subjects.swift /tmp/fbsimctl-20170718-48991-m0i7oh/fbsimctl/FBSimulatorControlKit/Sources/Defaults.swift /tmp/fbsimctl-20170718-48991-m0i7oh/fbsimctl/FBSimulatorControlKit/Sources/iOSReporter.swift /tmp/fbsimctl-20170718-48991-m0i7oh/fbsimctl/FBSimulatorControlKit/Sources/SimulatorRunners.swift /tmp/fbsimctl-20170718-48991-m0i7oh/fbsimctl/FBSimulatorControlKit/Sources/JSON.swift /tmp/fbsimctl-20170718-48991-m0i7oh/fbsimctl/FBSimulatorControlKit/Sources/iOSRunner.swift /tmp/fbsimctl-20170718-48991-m0i7oh/fbsimctl/FBSimulatorControlKit/Sources/EventReporter.swift /tmp/fbsimctl-20170718-48991-m0i7oh/fbsimctl/FBSimulatorControlKit/Sources/SimulatorReporter.swift /tmp/fbsimctl-20170718-48991-m0i7oh/fbsimctl/FBSimulatorControlKit/Sources/Events.swift /tmp/fbsimctl-20170718-48991-m0i7oh/fbsimctl/FBSimulatorControlKit/Sources/Help.swift /tmp/fbsimctl-20170718-48991-m0i7oh/fbsimctl/FBSimulatorControlKit/Sources/DeviceRunners.swift /tmp/fbsimctl-20170718-48991-m0i7oh/fbsimctl/FBSimulatorControlKit/Sources/Parser.swift /tmp/fbsimctl-20170718-48991-m0i7oh/fbsimctl/FBSimulatorControlKit/Sources/Bridging.swift /tmp/fbsimctl-20170718-48991-m0i7oh/fbsimctl/FBSimulatorControlKit/Sources/CLI.swift /tmp/fbsimctl-20170718-48991-m0i7oh/fbsimctl/FBSimulatorControlKit/Sources/Runners.swift /tmp/fbsimctl-20170718-48991-m0i7oh/fbsimctl/FBSimulatorControlKit/Sources/CommandParsers.swift /tmp/fbsimctl-20170718-48991-m0i7oh/fbsimctl/FBSimulatorControlKit/Sources/Command.swift /tmp/fbsimctl-20170718-48991-m0i7oh/fbsimctl/FBSimulatorControlKit/Sources/HttpRelay.swift /tmp/fbsimctl-20170718-48991-m0i7oh/fbsimctl/FBSimulatorControlKit/Sources/ActionPerformer.swift /tmp/fbsimctl-20170718-48991-m0i7oh/fbsimctl/FBSimulatorControlKit/Sources/AbstractTypes.swift /tmp/fbsimctl-20170718-48991-m0i7oh/fbsimctl/FBSimulatorControlKit/Sources/SignalHandler.swift -primary-file /tmp/fbsimctl-20170718-48991-m0i7oh/fbsimctl/FBSimulatorControlKit/Sources/Relay.swift /tmp/fbsimctl-20170718-48991-m0i7oh/fbsimctl/FBSimulatorControlKit/Sources/CommandRunners.swift -target x86_64-apple-macosx10.10 -enable-objc-interop -sdk /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk -I /tmp/fbsimctl-20170718-48991-m0i7oh/build/Build/Products/Debug -F /tmp/fbsimctl-20170718-48991-m0i7oh/build/Build/Products/Debug -F /tmp/fbsimctl-20170718-48991-m0i7oh/fbsimctl/Carthage/Build/Mac -enable-testing -g -import-underlying-module -module-cache-path /tmp/fbsimctl-20170718-48991-m0i7oh/build/ModuleCache -serialize-debugging-options -Xcc -I/tmp/fbsimctl-20170718-48991-m0i7oh/build/Build/Intermediates/fbsimctl.build/Debug/FBSimulatorControlKit.build/swift-overrides.hmap -Xcc -iquote -Xcc /tmp/fbsimctl-20170718-48991-m0i7oh/build/Build/Intermediates/fbsimctl.build/Debug/FBSimulatorControlKit.build/FBSimulatorControlKit-generated-files.hmap -Xcc -I/tmp/fbsimctl-20170718-48991-m0i7oh/build/Build/Intermediates/fbsimctl.build/Debug/FBSimulatorControlKit.build/FBSimulatorControlKit-own-target-headers.hmap -Xcc -I/tmp/fbsimctl-20170718-48991-m0i7oh/build/Build/Intermediates/fbsimctl.build/Debug/FBSimulatorControlKit.build/FBSimulatorControlKit-all-non-framework-target-headers.hmap -Xcc -ivfsoverlay -Xcc /tmp/fbsimctl-20170718-48991-m0i7oh/build/Build/Intermediates/fbsimctl.build/all-product-headers.yaml -Xcc -iquote -Xcc /tmp/fbsimctl-20170718-48991-m0i7oh/build/Build/Intermediates/fbsimctl.build/Debug/FBSimulatorControlKit.build/FBSimulatorControlKit-project-headers.hmap -Xcc -I/tmp/fbsimctl-20170718-48991-m0i7oh/build/Build/Products/Debug/include -Xcc -I/tmp/fbsimctl-20170718-48991-m0i7oh/fbsimctl/PrivateHeaders -Xcc -I/tmp/fbsimctl-20170718-48991-m0i7oh/build/Build/Intermediates/fbsimctl.build/Debug/FBSimulatorControlKit.build/DerivedSources/x86_64 -Xcc -I/tmp/fbsimctl-20170718-48991-m0i7oh/build/Build/Intermediates/fbsimctl.build/Debug/FBSimulatorControlKit.build/DerivedSources -Xcc -DDEBUG=1 -Xcc -ivfsoverlay -Xcc /tmp/fbsimctl-20170718-48991-m0i7oh/build/Build/Intermediates/fbsimctl.build/Debug/FBSimulatorControlKit.build/unextended-module-overlay.yaml -Xcc -working-directory/tmp/fbsimctl-20170718-48991-m0i7oh/fbsimctl -emit-module-doc-path /tmp/fbsimctl-20170718-48991-m0i7oh/build/Build/Intermediates/fbsimctl.build/Debug/FBSimulatorControlKit.build/Objects-normal/x86_64/Relay~partial.swiftdoc -serialize-diagnostics-path /tmp/fbsimctl-20170718-48991-m0i7oh/build/Build/Intermediates/fbsimctl.build/Debug/FBSimulatorControlKit.build/Objects-normal/x86_64/Relay.dia -Onone -module-name FBSimulatorControlKit -emit-module-path /tmp/fbsimctl-20170718-48991-m0i7oh/build/Build/Intermediates/fbsimctl.build/Debug/FBSimulatorControlKit.build/Objects-normal/x86_64/Relay~partial.swiftmodule -emit-dependencies-path /tmp/fbsimctl-20170718-48991-m0i7oh/build/Build/Intermediates/fbsimctl.build/Debug/FBSimulatorControlKit.build/Objects-normal/x86_64/Relay.d -emit-reference-dependencies-path /tmp/fbsimctl-20170718-48991-m0i7oh/build/Build/Intermediates/fbsimctl.build/Debug/FBSimulatorControlKit.build/Objects-normal/x86_64/Relay.swiftdeps -o /tmp/fbsimctl-20170718-48991-m0i7oh/build/Build/Intermediates/fbsimctl.build/Debug/FBSimulatorControlKit.build/Objects-normal/x86_64/Relay.o

CompileSwift normal x86_64 /tmp/fbsimctl-20170718-48991-m0i7oh/fbsimctl/FBSimulatorControlKit/Sources/CommandRunners.swift
    cd /tmp/fbsimctl-20170718-48991-m0i7oh/fbsimctl
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift -frontend -c /tmp/fbsimctl-20170718-48991-m0i7oh/fbsimctl/FBSimulatorControlKit/Sources/CLIBootstrapper.swift /tmp/fbsimctl-20170718-48991-m0i7oh/fbsimctl/FBSimulatorControlKit/Sources/Arguments.swift /tmp/fbsimctl-20170718-48991-m0i7oh/fbsimctl/FBSimulatorControlKit/Sources/ParserDescription.swift /tmp/fbsimctl-20170718-48991-m0i7oh/fbsimctl/FBSimulatorControlKit/Sources/Environment.swift /tmp/fbsimctl-20170718-48991-m0i7oh/fbsimctl/FBSimulatorControlKit/Sources/DeviceReporter.swift /tmp/fbsimctl-20170718-48991-m0i7oh/fbsimctl/FBSimulatorControlKit/Sources/Subjects.swift /tmp/fbsimctl-20170718-48991-m0i7oh/fbsimctl/FBSimulatorControlKit/Sources/Defaults.swift /tmp/fbsimctl-20170718-48991-m0i7oh/fbsimctl/FBSimulatorControlKit/Sources/iOSReporter.swift /tmp/fbsimctl-20170718-48991-m0i7oh/fbsimctl/FBSimulatorControlKit/Sources/SimulatorRunners.swift /tmp/fbsimctl-20170718-48991-m0i7oh/fbsimctl/FBSimulatorControlKit/Sources/JSON.swift /tmp/fbsimctl-20170718-48991-m0i7oh/fbsimctl/FBSimulatorControlKit/Sources/iOSRunner.swift /tmp/fbsimctl-20170718-48991-m0i7oh/fbsimctl/FBSimulatorControlKit/Sources/EventReporter.swift /tmp/fbsimctl-20170718-48991-m0i7oh/fbsimctl/FBSimulatorControlKit/Sources/SimulatorReporter.swift /tmp/fbsimctl-20170718-48991-m0i7oh/fbsimctl/FBSimulatorControlKit/Sources/Events.swift /tmp/fbsimctl-20170718-48991-m0i7oh/fbsimctl/FBSimulatorControlKit/Sources/Help.swift /tmp/fbsimctl-20170718-48991-m0i7oh/fbsimctl/FBSimulatorControlKit/Sources/DeviceRunners.swift /tmp/fbsimctl-20170718-48991-m0i7oh/fbsimctl/FBSimulatorControlKit/Sources/Parser.swift /tmp/fbsimctl-20170718-48991-m0i7oh/fbsimctl/FBSimulatorControlKit/Sources/Bridging.swift /tmp/fbsimctl-20170718-48991-m0i7oh/fbsimctl/FBSimulatorControlKit/Sources/CLI.swift /tmp/fbsimctl-20170718-48991-m0i7oh/fbsimctl/FBSimulatorControlKit/Sources/Runners.swift /tmp/fbsimctl-20170718-48991-m0i7oh/fbsimctl/FBSimulatorControlKit/Sources/CommandParsers.swift /tmp/fbsimctl-20170718-48991-m0i7oh/fbsimctl/FBSimulatorControlKit/Sources/Command.swift /tmp/fbsimctl-20170718-48991-m0i7oh/fbsimctl/FBSimulatorControlKit/Sources/HttpRelay.swift /tmp/fbsimctl-20170718-48991-m0i7oh/fbsimctl/FBSimulatorControlKit/Sources/ActionPerformer.swift /tmp/fbsimctl-20170718-48991-m0i7oh/fbsimctl/FBSimulatorControlKit/Sources/AbstractTypes.swift /tmp/fbsimctl-20170718-48991-m0i7oh/fbsimctl/FBSimulatorControlKit/Sources/SignalHandler.swift /tmp/fbsimctl-20170718-48991-m0i7oh/fbsimctl/FBSimulatorControlKit/Sources/Relay.swift -primary-file /tmp/fbsimctl-20170718-48991-m0i7oh/fbsimctl/FBSimulatorControlKit/Sources/CommandRunners.swift -target x86_64-apple-macosx10.10 -enable-objc-interop -sdk /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk -I /tmp/fbsimctl-20170718-48991-m0i7oh/build/Build/Products/Debug -F /tmp/fbsimctl-20170718-48991-m0i7oh/build/Build/Products/Debug -F /tmp/fbsimctl-20170718-48991-m0i7oh/fbsimctl/Carthage/Build/Mac -enable-testing -g -import-underlying-module -module-cache-path /tmp/fbsimctl-20170718-48991-m0i7oh/build/ModuleCache -serialize-debugging-options -Xcc -I/tmp/fbsimctl-20170718-48991-m0i7oh/build/Build/Intermediates/fbsimctl.build/Debug/FBSimulatorControlKit.build/swift-overrides.hmap -Xcc -iquote -Xcc /tmp/fbsimctl-20170718-48991-m0i7oh/build/Build/Intermediates/fbsimctl.build/Debug/FBSimulatorControlKit.build/FBSimulatorControlKit-generated-files.hmap -Xcc -I/tmp/fbsimctl-20170718-48991-m0i7oh/build/Build/Intermediates/fbsimctl.build/Debug/FBSimulatorControlKit.build/FBSimulatorControlKit-own-target-headers.hmap -Xcc -I/tmp/fbsimctl-20170718-48991-m0i7oh/build/Build/Intermediates/fbsimctl.build/Debug/FBSimulatorControlKit.build/FBSimulatorControlKit-all-non-framework-target-headers.hmap -Xcc -ivfsoverlay -Xcc /tmp/fbsimctl-20170718-48991-m0i7oh/build/Build/Intermediates/fbsimctl.build/all-product-headers.yaml -Xcc -iquote -Xcc /tmp/fbsimctl-20170718-48991-m0i7oh/build/Build/Intermediates/fbsimctl.build/Debug/FBSimulatorControlKit.build/FBSimulatorControlKit-project-headers.hmap -Xcc -I/tmp/fbsimctl-20170718-48991-m0i7oh/build/Build/Products/Debug/include -Xcc -I/tmp/fbsimctl-20170718-48991-m0i7oh/fbsimctl/PrivateHeaders -Xcc -I/tmp/fbsimctl-20170718-48991-m0i7oh/build/Build/Intermediates/fbsimctl.build/Debug/FBSimulatorControlKit.build/DerivedSources/x86_64 -Xcc -I/tmp/fbsimctl-20170718-48991-m0i7oh/build/Build/Intermediates/fbsimctl.build/Debug/FBSimulatorControlKit.build/DerivedSources -Xcc -DDEBUG=1 -Xcc -ivfsoverlay -Xcc /tmp/fbsimctl-20170718-48991-m0i7oh/build/Build/Intermediates/fbsimctl.build/Debug/FBSimulatorControlKit.build/unextended-module-overlay.yaml -Xcc -working-directory/tmp/fbsimctl-20170718-48991-m0i7oh/fbsimctl -emit-module-doc-path /tmp/fbsimctl-20170718-48991-m0i7oh/build/Build/Intermediates/fbsimctl.build/Debug/FBSimulatorControlKit.build/Objects-normal/x86_64/CommandRunners~partial.swiftdoc -serialize-diagnostics-path /tmp/fbsimctl-20170718-48991-m0i7oh/build/Build/Intermediates/fbsimctl.build/Debug/FBSimulatorControlKit.build/Objects-normal/x86_64/CommandRunners.dia -Onone -module-name FBSimulatorControlKit -emit-module-path /tmp/fbsimctl-20170718-48991-m0i7oh/build/Build/Intermediates/fbsimctl.build/Debug/FBSimulatorControlKit.build/Objects-normal/x86_64/CommandRunners~partial.swiftmodule -emit-dependencies-path /tmp/fbsimctl-20170718-48991-m0i7oh/build/Build/Intermediates/fbsimctl.build/Debug/FBSimulatorControlKit.build/Objects-normal/x86_64/CommandRunners.d -emit-reference-dependencies-path /tmp/fbsimctl-20170718-48991-m0i7oh/build/Build/Intermediates/fbsimctl.build/Debug/FBSimulatorControlKit.build/Objects-normal/x86_64/CommandRunners.swiftdeps -o /tmp/fbsimctl-20170718-48991-m0i7oh/build/Build/Intermediates/fbsimctl.build/Debug/FBSimulatorControlKit.build/Objects-normal/x86_64/CommandRunners.o

** BUILD FAILED **

The following build commands failed:
    CompileSwift normal x86_64 /tmp/fbsimctl-20170718-48991-m0i7oh/fbsimctl/FBSimulatorControlKit/Sources/Subjects.swift
    CompileSwiftSources normal x86_64 com.apple.xcode.tools.swift.compiler
(2 failures)
sergeyzhukov commented 7 years ago

same problem, xcode 8.3.3

lonkly commented 7 years ago

Same problem, xcode 8.3.3. HEAD seems to be unbuildable

MoOx commented 7 years ago

Meanwhile, commit 4a3a339ca325ae2ac0b34fef92605204b79e0c09 seems to be working according to https://github.com/facebook/FBSimulatorControl/issues/435#issuecomment-323099489

zeyadsalloum commented 5 years ago

fixed