Tag: xcode

Interface Builder没有看到MacRuby的出口

我试图使用XCode和Interface Builder获得一个基本的hello world应用程序。 但是,在Interface Builder中,我无法看到我的sockets连接起来。 我转到对象检查器窗格的连接选项卡,并显示“New Referencing Outlet”。 我想知道我的代码是否错误。 这里是 class HelloWorldController attr_accessor :hello_label, :hello_button, :hello def awakeFromNib @hello = true end def changeLabel(sender) if @hello @hello_label.stringValue = “Good Bye” @hello_button.title = “Hello” @hello = false else @hello_label.stringValue = “Hello World” @hello_button.title = “Good Bye” @hello = true end end end 据我了解,我应该能够看到你好,hello_label,hello_button和changeLabel,但我没有。 我想也许我在某个地方拼错了,但这似乎也不是。 这是两个界面构建器窗口的镜头。 任何帮助表示赞赏。 […]

如何以编程方式检查证书是否已被撤销?

我正在开发一个xcode自动构建系统。 执行一些预构建validation时,我想检查指定的证书文件是否已被撤销。 我了解security verify-certvalidation其他证书属性,但不validationrevokation。 我怎样才能检查是否有效? 我正在用Ruby编写构建系统,但我对任何语言的思想都很开放。 我读了这个答案( Openssl – 如何检查证书是否被撤销 )但是底部的链接( OpenSSL现在是否自动处理CRL(证书撤销列表)? )进入的材料对我来说有点过于牵连(上传撤销证书的用户是远远不够的情况)。 是否有更简单/ ruby​​导向的方法来检查revokation? 提前致谢!

无法设置ruby环境 – 安装fii gem错误

我正在尝试为ruby项目设置环境。 但是当我运行’bundle’时,我在安装’fii’gem时遇到错误: Installing ffi (1.8.1) Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension. /Users/bmalets/.rvm/rubies/ruby-1.9.3-p448/bin/ruby extconf.rb checking for ffi.h… *** extconf.rb failed *** Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers. Check the mkmf.log file for more details. You may need configuration options. /Users/bmalets/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/1.9.1/mkmf.rb:381:in `try_do’: The compiler failed to […]

如何删除XCode 4.2并安装4.1以在OSX Lion上开发Ruby / Rails?

我使用RVM(ruby版本管理器)开发Rails应用程序。 我不得不下载XCode,在应用程序商店我只得到版本4.2。 现在RVM说它不能用这个XCode正确地构建rubies,所以我遵循了这个教程: http://www.frederico-araujo.com/2011/07/30/installing-rails-on-os-x-lion-with-homebrew-rvm-and-mysql/ 我从控制台中键入rvm requirements时显示的链接下载了XCode版本。 (https://developer.apple.com/downloads/download.action?path=Developer_Tools/xcode_4.1_for_lion/xcode_4.1_for_lion.dmg) 现在,有一个带有installXCodeLion软件包的3.09 GB .dmg,它安装成功,但在我的系统上没有XCode或任何东西。 (我也停止了iTunesHelper流程…) 有谁知道如何安装XCode 4.1? 或者从Apple正式获得它的位置? 或者有人在Lion上成功使用RVM和ruby 1.9.2 w / Rail 3.1?

如何让xcode在运行脚本时使用正确版本的ruby?

在xcode中,我有一个运行ruby脚本的“运行脚本”构建阶段。 但是,似乎xcode正在尝试使用默认的mac 1.8版本的ruby而不是最新版本来运行它。 鉴于脚本需要一个gem,它失败并出现require错误,错误中的路径指向/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems/ 显然,那条路上的1.8让我怀疑。 如果我打开终端并运行命令ruby -v然后它正确返回我安装的2.0.0p0并使用RVM设置为默认值。 我怎么能让Xcode在正确的位置看? 或者我错误地解释了这个错误? 更新: 为了提供更多信息,这里是编译器抛出的确切错误: /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require’: no such file to load — json (LoadError) from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `require’ from /Volumes/Macintosh HD/Documents/Projects/WesternMusicElements/WesternMusicElements/Ruby/NoteCollectionParser.rb:9 Command /bin/sh failed with exit code 1

使用rvm在Xcode Run Script构建阶段强制使用特定的Ruby

在Xcode之外我使用特定版本的Ruby,使用RVM来管理多个Ruby安装。 Apple的命令行开发工具在/usr/bin/ruby安装Ruby,版本为1.8.7。 我通过RVM使用1.9.3。 有没有办法在运行Run Script构建阶段时强制Xcode使用我的1.9.3安装? 我已经尝试将Shell路径设置为我特定Ruby的完整路径,但这似乎没有什么区别,我的意思是我在1.9.3中安装的特定Gems不可用/可见在Xcode中运行时的脚本。 如果我在命令行上通过xcodebuild运行我的项目,则Run Script阶段使用我的特定Ruby,因为它是在我的shell环境中运行的(即使项目文件中的Shell路径设置为/usr/bin/ruby ,它也是如此)仍然使用我的1.9.3)。 我该怎么做才能使IDE使用我的1.9.3 Ruby安装?

Mac Rmagick不会安装Xcode 4.2

我刚刚得到一个新的macbook pro并尝试设置我的开发环境。 我从应用程序商店下载了xcode 4.2并安装了它,之后我安装了自制程序和RVM。 ImageMagick,readline,ruby 1.9.3-head全部安装完美,直到我运行捆绑更新,试图安装rmagick。 经过很长一段时间的调查,我得出结论,它找不到libgomp。 输出来自gem install rmagick是: $ gem install rmagick Building native extensions. This could take a while… ERROR: Error installing rmagick: ERROR: Failed to build gem native extension. /Users/dhiemstra/.rvm/rubies/ruby-1.9.3-head/bin/ruby extconf.rb checking for Ruby version >= 1.8.5… yes extconf.rb:128: Use RbConfig instead of obsolete and deprecated Config. checking for clang… yes […]

无法从rubygems.org安装’cocoapods’gem(错误的响应后端读取错误)

当我在OSX Mavericks上运行’gem install cocoapods’时出现错误。 $ gem install cocoapods ERROR: Could not find a valid gem ‘cocoapods’ (>= 0), here is why: Unable to download data from https://rubygems.org/ – bad response backend read error 503 (https://rubygems.global.ssl.fastly.net/quick/Marshal.4.8/cocoapods-0.27.1.gemspec.rz) ERROR: Possible alternatives: cocoapods 请注意,我可以直接下载cocoapods-0.27.1.gemspec.rz。 我正在运行最新版本的XCode(5.0.1)和最新版本的CLI工具。 RVM还配置为运行最新的Ruby版本(2.0.0p247)

编译器无法生成可执行文件。 (RuntimeError)

我最近升级到OS Mountain Lion。 我正在处理的项目需要gem sys-proctable作为依赖项,但是当我运行bundle install我得到: Fetching gem metadata from https://rubygems.org/……… . . . Installing sys-proctable (0.9.2) with native extensions Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension. /Users/mgriffel/.rvm/rubies/ruby-1.9.3-p194/bin/ruby extconf.rb checking for rb_pid_t in ruby.h… *** extconf.rb failed *** Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers. Check […]

使用Xcode 4.3.1在Mac上更新Ruby

我正在使用RVM来安装它,它给了我这个错误: The provided compiler ‘/usr/bin/gcc’ is LLVM based, it is not yet fully supported by ruby and gems, please read `rvm requirements`. 我在Lion 10.7.3上,我有Xcode 4.3.1。