Tag: xcode

在XCode中开发Ruby on Rails或任何其他类型的应用程序

不确定这是否是正确的问题堆栈,但我最近下载了XCode 4预览版,并希望在那里进行我的RoR开发。 我知道这在早期版本中是可能的,但似乎无法在4中发生。有没有人对我可以看到的地方有什么建议让它弄明白?

安装Xcode 4.3.2并缺少gcc时如何使用RVM安装Ruby 1.9.3?

我用Lion购买了一台新的iMac并安装了Xcode 4.3.2。 跑完之后 curl -L get.rvm.io | bash -s stable 我打开了一个新的bash ,然后使用了 $ rvm install 1.9.3 安装Ruby 1.9.3,但有错误,日志说C编译器不存在。 并且rvm requirements说: $ rvm requirements […] Xcode 4.3+ users – please be warned – only ruby-1.9.3-p125+ is partially supported – in case of any compilation issues: * downgrade to Xcode 4.1 * uninstall Xcode and install osx-gcc-installer […]

Pod安装在XCode Bots Trigger中

所以我用以下内容启动了预集成触发器 cd “${XCS_PRIMARY_REPO_DIR}” pwd pod install –verbose 它给了我 pod: command not found 简单吧? 找不到pod二进制文件,我只是将它指向路径。 简单。 cd “${XCS_PRIMARY_REPO_DIR}” pwd /usr/local/bin/pod install –verbose 这给了我以下几点 env: ruby_executable_hooks: No such file or directory 这让我觉得ruby没有设置为触发器运行的权利。 现在了解构建服务器终端中的一个简单的“pod安装”修复了所有这些并运行良好和花花公子。 该项目肯定在构建服务器上正确构建。 所以,既然我认为环境搞砸了,我会尝试从包装器目录运行它,这应该设置好又好。 这就是为什么它是正确的? 每当我需要ruby在构建的运行脚本阶段运行时,这在历史上都有效。 所以在这里我们继续触发。 ~/.rvm/wrappers/ruby-2.2.3@global/pod install 我在构建服务器的终端测试这个,它很酷,所以我把它放入触发器,我得到这个 /Users/XcodeServer/.rvm/wrappers/ruby-2.2.3@global/pod: line 7: exec: pod: not found :/好吧我破解了pod源,看看第7行的内容 exec pod “$@” 我不是一个ruby的人,但对我来说没有任何意义。 哦是的,我尝试将cocoapods直接下载到usr / local / […]

在Mountain Lion上安装带有RVM的ree-1.8.7

我全新安装了Mountain Lion并安装了Xcode Command Line Tools 。 我能够运行自制程序并安装RVM 。 不幸的是,我无法让RVM安装ree-1.8.7-head 。 编译时失败。 我认为这与X11有关,所以我安装了XQuartz 。 仍然没有快乐。 然后我继续从应用程序商店安装完整的Xcode 。 仍然没有快乐。 有人在新山狮安装上得到这个吗? 从.rvm / log / ree-1.8.7-head / make.log的底部 : Find Tcl/Tk libraries. Make tcltklib.so which is required by Ruby/Tk. gcc -I. -I../.. -I../../. -I../.././ext/tk -DHAVE_RB_SAFE_LEVEL -DHAVE_RB_HASH_LOOKUP -DHAVE_RB_PROC_NEW -DHAVE_RB_OBJ_TAINT -DHAVE_ST_PTR -DHAVE_ST_LEN -DRUBY_VERSION=\”1.8.7\” -DRUBY_RELEASE_DATE=\”2012-02-08\” -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -DWITH_TCL_ENABLE_THREAD=0 -fno-common -g -O2 […]

无法使用RVM安装Ruby

我在使用RVM安装Ruby时遇到了麻烦,这个让我很难过。 我正在运行OS Mavericks,使用最新的XCode和xcode命令行工具。 我(在我的知识)相同的设置在另一台机器上没有问题。 RVM似乎安装没有问题。 在尝试rvm install 2.1时,我收到以下错误消息: ruby-2.1.1 – #removing src/ruby-2.1.1.. Searching for binary rubies, this might take some time. No binary rubies available for: osx/10.9/x86_64/ruby-2.1.1. Continuing with compilation. Please read ‘rvm help mount’ to get more information on binary rubies. Checking requirements for osx. Certificates in ‘/usr/local/etc/openssl/cert.pem’ already are up to date. Requirements […]

使用Ruby XcodeProj创建Xcode项目

我有这个想法,使命令行实用程序类似于rails设置应用程序。 它应该自动创建Xcode项目,设置unit testing,设置Frank,安装最常用的Cocoapods并设置项目结构。 目前没有这样的事情,我真的想拥有它并开源它。 昨天我在其他问题上挣扎,但没有找到最新消息。 我想出了使用XcodeProj的想法, CocoaPods使用它来生成包含Pods的项目。 所以这不应该是不可能的。 我也找到了XcodeProject,但这似乎是只读的。 有人(可能是Cocoapods开发人员)可以给我一个提示从哪里开始,因为Xcodeproj gem非常没有文档。

使用RVM的Mac OS X Lion Xcode问题

我有Xcode 4.1预览5工作正常,但决定通过App商店升级到最终的xcode 4.1。 我首先卸载了Xcode … sudo /Developer/Library/uninstall-devtools –mode=all 然后通过应用程序商店安装Xcode并重新启动。 我也完全删除了RVM但是……现在每当我尝试安装Ruby版本时它都会失败。 在错误文件中我得到这个: [2011-07-27 18:29:25] ./configure –prefix=”/Users/holden/.rvm/usr” checking for a BSD-compatible install… /usr/bin/install -c checking whether build environment is sane… yes checking for a thread-safe mkdir -p… config/install-sh -c -d checking for gawk… no checking for mawk… no checking for nawk… no checking for awk… awk checking […]

无法在OS X Mavericks上降级Ruby

OS X 10.9附带ruby 2.0.0p195,但我需要安装Ruby 1.8.7。 我一直遇到错误。 我有Xcode5-DP安装,我相信也安装了命令行工具。 在终端: sudo rvm install 1.8.7 Searching for binary rubies, this might take some time. No binary rubies available for: osx/10/x86_64/ruby-1.8.7-p371. Continuing with compilation. Please read ‘rvm mount’ to get more information on binary rubies. Installing requirements for osx, might require sudo password. Certificates in ‘/usr/local/etc/openssl/cert.pem’ already are up […]

错误消息“在Sierra上仅Xcode是不够的”

我想安装openCV来矢量化图像,但是有关于Xcode和Ruby的一系列错误消息。 首先,我使用terminal安装openCV, brew install opencv 。 然后,我收到错误消息,表明系统不喜欢我的ruby版本。 /usr/local/Homebrew/Library/Homebrew/brew.rb:12:in `’: Homebrew must be run under Ruby 2.3! You’re running 2.0.0. (RuntimeError) 所以,我想升级我的ruby。 我从这篇文章中了解了几个更新策略。 首次ruby升级试用版: brew link –overwrite ruby & brew unlink ruby && brew link ruby并获得 Error: No such keg: /usr/local/Cellar/ruby 然后第二次ruby升级试用: brew upgrade ruby并看到以下错误消息。 Error: Xcode alone is not sufficient on Sierra. Install the Command […]

Rails 4每个命令出错“`load’:没有将nil隐式转换为String”(Mac OS X 10.9)

我刚刚在我的新Macbook上安装了一个新的Ruby on Rails dev堆栈,它运行Mac OS X 10.9 Mavericks。 这是我的堆栈: Xcode命令行工具 家酿 Rbenv 捆绑 Ruby 2.1.0 Rails 4.1.1 我运行了rails new test_app来生成第一个测试应用程序。 此命令已成功完成,但由于它,我在CLI中尝试的每个Rails命令都会返回以下错误消息: $ test_app > bin/rails server /Users/me/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/spring-1.1.3/lib/spring/client/rails.rb:27:in `load’: no implicit conversion of nil into String (TypeError) from /Users/me/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/spring-1.1.3/lib/spring/client/rails.rb:27:in `call’ from /Users/me/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/spring-1.1.3/lib/spring/client/command.rb:7:in `call’ from /Users/me/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/spring-1.1.3/lib/spring/client.rb:26:in `run’ from /Users/me/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/spring-1.1.3/bin/spring:48:in `’ from /Users/me/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/spring-1.1.3/lib/spring/binstub.rb:11:in `load’ from /Users/me/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/spring-1.1.3/lib/spring/binstub.rb:11:in `’ from […]