我正在开发一个在 iOS 上集成端到端测试的新版本 travis,但我在安装 fbsimctl 时遇到问题。我想使用detox,这是使用它的先决条件之一。
这是尝试安装时的日志:
$ brew install fbsimctl --HEAD
==> 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.26.2.sierra.bottle.tar.gz
==> Pouring carthage-0.26.2.sierra.bottle.tar.gz
==> 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.26.2: 75 files, 25.9MB
==> Installing facebook/fb/fbsimctl --HEAD
==> Cloning https://github.com/facebook/FBSimulatorControl.git
Cloning into '/Users/travis/Library/Caches/Homebrew/fbsimctl--git'...
remote: Counting objects: 1136, done.
remote: Compressing objects: 100% (993/993), done.
remote: Total 1136 (delta 278), reused 372 (delta 123), pack-reused 0
Receiving objects: 100% (1136/1136), 1.19 MiB | 794.00 KiB/s, done.
Resolving deltas: 100% (278/278), done.
Checking out files: 100% (1004/1004), done.
==> Checking out branch master
==> ./build.sh fbsimctl build /usr/local/Cellar/fbsimctl/HEAD-e6f8e6b
Last 15 lines from /Users/travis/Library/Logs/Homebrew/fbsimctl/01.build.sh:
dispatch_source_set_timer(dispatchSource, dispatch_time(DISPATCH_TIME_NOW, timeInterval), timeInterval, 0);
~~~~~~~~~~~~~ ^~~~~~~~~~~~
1 error generated.
CompileC build/Build/Intermediates/FBSimulatorControl.build/Debug/FBControlCore.build/Objects-normal/x86_64/FBTaskConfiguration.o FBControlCore/Tasks/FBTaskConfiguration.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
cd /tmp/fbsimctl-20171128-6651-1lg5ws
export LANG=en_US.US-ASCII
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -arch x86_64 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=gnu99 -fobjc-arc -fmodules -gmodules -fmodules-cache-path=/tmp/fbsimctl-20171128-6651-1lg5ws/build/ModuleCache -fmodules-prune-interval=86400 -fmodules-prune-after=345600 -fbuild-session-file=/tmp/fbsimctl-20171128-6651-1lg5ws/build/ModuleCache/Session.modulevalidation -fmodules-validate-once-per-build-session -Wnon-modular-include-in-framework-module -Werror=non-modular-include-in-framework-module -Xclang -fmodule-implementation-of -Xclang FBControlCore -Wno-trigraphs -fpascal-strings -O0 -fno-common -Werror -Werror=incompatible-pointer-types -Werror-implicit-function-declaration -Wmissing-field-initializers -Wmissing-prototypes -Wdocumentation -Wunreachable-code -Wno-implicit-atomic-properties -Werror=deprecated-objc-isa-usage -Werror=objc-root-class -Wno-arc-repeated-use-of-weak -Wimplicit-retain-self -Wmissing-braces -Wparentheses -Wswitch -Wunused-function -Wunused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wconditional-uninitialized -Wunknown-pragmas -Wshadow -Wfour-char-constants -Wconversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wsign-compare -Wshorten-64-to-32 -Wpointer-sign -Wnewline-eof -Wno-selector -Wno-strict-selector-match -Wundeclared-selector -Wdeprecated-implementations -DDEBUG=1 -DOBJC_OLD_DISPATCH_PROTOTYPES=0 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk -fasm-blocks -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -mmacosx-version-min=10.10 -g -Wsign-conversion -Winfinite-recursion -iquote /tmp/fbsimctl-20171128-6651-1lg5ws/build/Build/Intermediates/FBSimulatorControl.build/Debug/FBControlCore.build/FBControlCore-generated-files.hmap -I/tmp/fbsimctl-20171128-6651-1lg5ws/build/Build/Intermediates/FBSimulatorControl.build/Debug/FBControlCore.build/FBControlCore-own-target-headers.hmap -I/tmp/fbsimctl-20171128-6651-1lg5ws/build/Build/Intermediates/FBSimulatorControl.build/Debug/FBControlCore.build/FBControlCore-all-non-framework-target-headers.hmap -ivfsoverlay /tmp/fbsimctl-20171128-6651-1lg5ws/build/Build/Intermediates/FBSimulatorControl.build/all-product-headers.yaml -iquote /tmp/fbsimctl-20171128-6651-1lg5ws/build/Build/Intermediates/FBSimulatorControl.build/Debug/FBControlCore.build/FBControlCore-project-headers.hmap -I/tmp/fbsimctl-20171128-6651-1lg5ws/build/Build/Products/Debug/include -I/tmp/fbsimctl-20171128-6651-1lg5ws/PrivateHeaders -I/tmp/fbsimctl-20171128-6651-1lg5ws/build/Build/Intermediates/FBSimulatorControl.build/Debug/FBControlCore.build/DerivedSources/x86_64 -I/tmp/fbsimctl-20171128-6651-1lg5ws/build/Build/Intermediates/FBSimulatorControl.build/Debug/FBControlCore.build/DerivedSources -F/tmp/fbsimctl-20171128-6651-1lg5ws/build/Build/Products/Debug -F/Applications/Xcode.app/Contents/Developer/../Frameworks -F/Applications/Xcode.app/Contents/Developer/../PlugIns -F/Applications/Xcode.app/Contents/Developer/../OtherFrameworks -F/Applications/Xcode.app/Contents/Developer/../SharedFrameworks -F/Applications/Xcode.app/Contents/Developer/Library/PrivateFrameworks -F/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/PrivateFrameworks -F/Library/Developer/PrivateFrameworks -MMD -MT dependencies -MF /tmp/fbsimctl-20171128-6651-1lg5ws/build/Build/Intermediates/FBSimulatorControl.build/Debug/FBControlCore.build/Objects-normal/x86_64/FBTaskConfiguration.d --serialize-diagnostics /tmp/fbsimctl-20171128-6651-1lg5ws/build/Build/Intermediates/FBSimulatorControl.build/Debug/FBControlCore.build/Objects-normal/x86_64/FBTaskConfiguration.dia -c /tmp/fbsimctl-20171128-6651-1lg5ws/FBControlCore/Tasks/FBTaskConfiguration.m -o /tmp/fbsimctl-20171128-6651-1lg5ws/build/Build/Intermediates/FBSimulatorControl.build/Debug/FBControlCore.build/Objects-normal/x86_64/FBTaskConfiguration.o
** BUILD FAILED **
The following build commands failed:
CompileC build/Build/Intermediates/FBSimulatorControl.build/Debug/FBControlCore.build/Objects-normal/x86_64/FBDispatchSourceNotifier.o FBControlCore/Utility/FBDispatchSourceNotifier.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)
If reporting this issue please do so at (not Homebrew/brew or Homebrew/core):
https://github.com/facebook/homebrew-fb/issues
The command "brew install fbsimctl --HEAD" failed and exited with 1 during .
我授予的缓存权限是这些:
cache:
yarn: true
directories:
- node_modules
- $HOME/Library/Caches/Homebrew
- $HOME/Library/Caches
- $HOME/Library/Caches/carthage
- /usr/local/Cellar/fbsimctl
- /usr/local/Cellar
但我不知道我还需要什么。
谢谢
最佳答案
Fbsimctl 不再是 Detox 的依赖项,因为我们在使用它时遇到了很多麻烦,主要是因为它并不总是稳定的,而且无法获得稳定的版本。
如果您对 Fbsimctl 有疑问,请在 fbsimctl 的 GitHub 页面中提出问题。
与Detox无关,如果你还想安装Fbsimctl,你可以通过brew install fbsimctl@0.4.0安装最新稳定版0.4.0(2017年4月)
关于ios - 在 Travis 中安装 fbsimctl,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47528358/
这里有一个很好的答案解释了如何在Ruby中下载文件而不将其加载到内存中:https://stackoverflow.com/a/29743394/4852737require'open-uri'download=open('http://example.com/image.png')IO.copy_stream(download,'~/image.png')我如何验证下载文件的IO.copy_stream调用是否真的成功——这意味着下载的文件与我打算下载的文件完全相同,而不是下载一半的损坏文件?documentation说IO.copy_stream返回它复制的字节数,但是当我还没有下
我正在尝试解析一个文本文件,该文件每行包含可变数量的单词和数字,如下所示:foo4.500bar3.001.33foobar如何读取由空格而不是换行符分隔的文件?有什么方法可以设置File("file.txt").foreach方法以使用空格而不是换行符作为分隔符? 最佳答案 接受的答案将slurp文件,这可能是大文本文件的问题。更好的解决方案是IO.foreach.它是惯用的,将按字符流式传输文件:File.foreach(filename,""){|string|putsstring}包含“thisisanexample”结果的
1.错误信息:Errorresponsefromdaemon:Gethttps://registry-1.docker.io/v2/:net/http:requestcanceledwhilewaitingforconnection(Client.Timeoutexceededwhileawaitingheaders)或者:Errorresponsefromdaemon:Gethttps://registry-1.docker.io/v2/:net/http:TLShandshaketimeout2.报错原因:docker使用的镜像网址默认为国外,下载容易超时,需要修改成国内镜像地址(首先阿里
print"Enteryourpassword:"pass=STDIN.noecho(&:gets)puts"Yourpasswordis#{pass}!"输出:Enteryourpassword:input.rb:2:in`':undefinedmethod`noecho'for#>(NoMethodError) 最佳答案 一开始require'io/console'后来的Ruby1.9.3 关于ruby-为什么不能使用类IO的实例方法noecho?,我们在StackOverflow上
我是mac的新手,尝试bundleinstall一个克隆的railsrepo。我在安装libv8gem时遇到错误,google并找到了解决方案并做了brewinstalllibv8geminstalllibv8----with-system-v8接下来我中了thyreracergem,完整trace如下Buildingnativeextensions.Thiscouldtakeawhile...ERROR:Errorinstallingtherubyracer:ERROR:Failedtobuildgemnativeextension./Users/anand/.rvm/rubies/
我有一个包含多个组件的存储库,其中大部分是用JavaScript(Node.js)编写的,一个是用Ruby(RubyonRails)编写的。我想要一个.travis.yml文件来触发一个运行每个组件的所有测试的构建。根据thisTravisCIGoogleGroupthread,目前还没有官方支持。我的目录结构是这样的:.├──构建服务器├──核心├──扩展├──网络应用├──流浪文件├──package.json├──.travis.yml└──生成文件我希望能够运行特定版本的Ruby(2.2.2)和Node.js(0.12.2)。我已经有了一个make目标,所以maketest在每
我刚刚使用以下命令在我的机器上安装了rvmbash在我的终端里得到了这个InstallationofRVMto/home/rahul/.rvm/iscomplete.当我转到/home/rahul/.rvm/时,我能够看到所有必要的文件夹,但是当我在终端中输入rvm命令时,出现此错误rvm--versionNocommand'rvm'found,butthereare19similaronesrvm:commandnotfound我该如何解决?编辑我还在我的bashrc中添加了以下几行if[[-n"$PS1"]];thenif[[-s$HOME/.rvm/scripts/rvm]];t
当我将IO::popen与不存在的命令一起使用时,我在屏幕上打印了一条错误消息:irb>IO.popen"fakefake"#=>#irb>(irb):1:commandnotfound:fakefake有什么方法可以捕获此错误,以便我可以在脚本中进行检查? 最佳答案 是:升级到ruby1.9。如果您在1.9中运行它,则会引发Errno::ENOENT,您将能够拯救它。(编辑)这是在1.8中的一种hackish方式:error=IO.pipe$stderr.reopenerror[1]pipe=IO.popen'qwe'#
当我尝试使用“套接字”库中的方法“read_nonblock”时出现以下错误IO::EAGAINWaitReadable:Resourcetemporarilyunavailable-readwouldblock但是当我通过终端上的IRB尝试时它工作正常如何让它读取缓冲区? 最佳答案 IgetthefollowingerrorwhenItrytousethemethod"read_nonblock"fromthe"socket"library当缓冲区中的数据未准备好时,这是预期的行为。由于异常IO::EAGAINWaitReadab
我需要将目录中的一堆文件上传到S3。由于上传所需的90%以上的时间都花在了等待http请求完成上,所以我想以某种方式同时执行其中的几个。Fibers能帮我解决这个问题吗?它们被描述为解决此类问题的一种方法,但我想不出在http调用阻塞时我可以做任何工作的任何方法。有什么方法可以在没有线程的情况下解决这个问题? 最佳答案 我没有使用1.9中的纤程,但是1.8.6中的常规线程可以解决这个问题。尝试使用队列http://ruby-doc.org/stdlib/libdoc/thread/rdoc/classes/Queue.html查看文