重申一下,我正在运行第一个OS X 10.10测试版,并试图用Homebrew重新安装MongoDB.
运行后$ brew install mongodb,这是输出:
==> Downloading http://downloads.mongodb.org/src/mongodb-src-r2.6.1.tar.gz
==> /usr/local/opt/scons/bin/scons install --prefix=/usr/local/Cellar/mongodb/2.6.1 -j8 --cc=/usr/bin/clang --cxx=/usr/bin/clang++ --osx-version-min=10.10 --full --64
scons: Reading SConscript files ...
Mkdir(".scons/Darwin/nohost")
usage: scons [OPTION] [TARGET] ...
SCons Error: option --osx-version-min: invalid choice: '10.10' (choose from '10.6', '10.7', '10.8', '10.9')
Run Code Online (Sandbox Code Playgroud)
显然,安装包没有为10.10配置,因为它尚未向公众发布.
有没有办法在构建过程中手动绕过它?
更新到Yosemite 10.10后,我无法连接到我的postgresql数据库.我运行rails控制台并尝试获取第一个用户,但得到此错误...
> ? game_golf git:(master) ? rails c
> Loading development environment (Rails 4.1.4)
> [1] pry(main)> User.first
> PG::ConnectionBad: could not connect to server: Connection refused
> Is the server running on host "localhost" (::1) and accepting
> TCP/IP connections on port 5432?
> could not connect to server: Connection refused
> Is the server running on host "localhost" (127.0.0.1) and accepting
> TCP/IP connections on port 5432?
> from /Users/pauldornfeld/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/activerecord-4.1.4/lib/active_record/connection_adapters/postgresql_adapter.rb:888:in `initialize'
> [2] pry(main)>
Run Code Online (Sandbox Code Playgroud)
我该怎么办!我试图重新安装postgresql,重新安装自制程序.请帮忙!
我的工作,有一个自定义的应用程序NSView上NSStatusBar,当用户点击它执行所有的绘图.但这就是问题,我正在绘制的颜色,因为视图的背景颜色与系统蓝色不同.
我的应用程序的颜色:
Twitter的菜单项颜色(系统):
你清楚地看到,我的蓝色比系统轻.这是我目前使用的代码(并且在比Yosemite更早的版本上完美运行):
[[NSColor selectedMenuItemColor] set];
NSRectFill(rect);
Run Code Online (Sandbox Code Playgroud)
我甚至尝试过挑选菜单项的颜色,但似乎颜色受到菜单栏下方壁纸的影响.
关于如何实现系统的任何想法看起来?
在我的Mac应用程序中,我一直在SMCopyAllJobDictionaries()用来检查应用程序是否会在登录时自动启动.基本上,我得到所有登录项的数组,并检查我的Bundle ID是否在数组中.
此函数调用一直有效,直到Mavericks,但在Yosemite中已弃用.根据Apple的说法,
此例程已弃用,将在以后的版本中删除.没有提供替代品.
但是,我怎么能在优胜美地做同样的工作呢?我必须检查我的应用程序是否在登录项列表中,以便正确显示一个复选框.我找不到Apple的相关文档.
我一直在快速学习,我正在尝试开发一个下载图像的OS X应用程序.
我已经能够将我正在寻找的JSON解析为一系列URL,如下所示:
func didReceiveAPIResults(results: NSArray) {
println(results)
for link in results {
let stringLink = link as String
//Check to make sure that the string is actually pointing to a file
if stringLink.lowercaseString.rangeOfString(".jpg") != nil {2
//Convert string to url
var imgURL: NSURL = NSURL(string: stringLink)!
//Download an NSData representation of the image from URL
var request: NSURLRequest = NSURLRequest(URL: imgURL)
var urlConnection: NSURLConnection = NSURLConnection(request: request, delegate: self)!
//Make request to download URL
NSURLConnection.sendAsynchronousRequest(request, queue: NSOperationQueue.mainQueue(), completionHandler: { …Run Code Online (Sandbox Code Playgroud) 在OS X 10.9下,Jenkins CI由launchd自动启动.更新到10.10后,它不再启动.
Jenkins是使用jenkins-ci.org的OS X安装程序安装的.我正在运行v1.584.在这个问题出现之后我重新安装使用v1.585无济于事.
org.jenkins-ci.plist中指定的日志文件中没有输出.Syslog有几条消息表明org.jenkins-ci服务"无法初始化:14A389:xpcproxy + 14045 [1344] [1016C726-9ACF-3A24-9C51-A279F5C6B167]:0xd".
在优胜美地打破了詹金斯的变化是什么?
日志消息末尾的"0xd"是错误代码吗?
我尝试通过launchctl手动加载和启动.没有错误输出到控制台,但jenkins仍未运行.
这个问题并不是詹金斯独有的.我有另一个启动项目,自更新到10.10以来也失败:TrendMicro反病毒.
我安装OS X Yosemite,现在我的gcc 4.9.1编译器存在很大问题.我希望有人可以帮助我.
我尝试编译我的程序,我有警告消息:
gcc: warning: couldn’t understand kern.osversion ‘14.0.0'
Run Code Online (Sandbox Code Playgroud)
我搜索谷歌,我发现https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61407 我尝试应用补丁:
sudo patch -p1 < /usr/local/bin/00-darwin-10.10.patch
Run Code Online (Sandbox Code Playgroud)
在gcc文件夹中:/usr/local/bin/gcc
我收到了以下消息:
can't find file to patch at input line 5
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff --git a/fixincludes/fixincl.x b/fixincludes/fixincl.x
|index dd45802..0db14d7 100644
|--- a/fixincludes/fixincl.x
|+++ b/fixincludes/fixincl.x
--------------------------
File to patch:
Run Code Online (Sandbox Code Playgroud)
在File to patch:我已经尝试过gcc,我收到了消息:
patching file gcc
Hunk #1 FAILED at 1.
Hunk #2 FAILED at …Run Code Online (Sandbox Code Playgroud) 我刚刚更新到xCode 6.1并且不得不重新安装我的iOS 7模拟器.
除了5s iOS 7.1 sim之外,我可以在所有模拟器上运行我的应用程序.我得到了这个崩溃
dyld: Symbol not found: _objc_isAuto
Referenced from: /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
Expected in: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.1.sdk/usr/lib/libobjc.A.dylib
in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
(lldb)
Run Code Online (Sandbox Code Playgroud)
是什么赋予了?任何想法为什么这个SIM卡崩溃?
谢谢
我想创建一个自定义的窗口工具栏,但不使用实际的NSToolbar(因为它在某些情况下不能满足我的需要而且我不能按照我想要的方式设置它),因此我需要添加子视图到窗口标题栏.它应该如下所示:
一种可行的方式是:
[[[_window contentView] superview] addSubview:_titlebarView];
Run Code Online (Sandbox Code Playgroud)
但这有问题,它会在Yosemite(NSWindow warning: adding an unknown subview: <NSView: 0x608000122b20>)上引发警告,所以这似乎不是正确的方法.
目前我将工具栏视图添加到标题栏视图:
[[[_window standardWindowButton:NSWindowCloseButton]
superview] addSubview:_titlebarView];
Run Code Online (Sandbox Code Playgroud)
但这也错了.
由于我的应用程序仅针对OS X 10.10(Yosemite),因此我可以使用仅限Yosemite的API,所以我看了一下,NSTitlebarAccessoryViewController并设法成功地将其子类化并使用它NSWindow的addTitlebarAccessoryViewController:方法.使用这种方法仍然存在一个问题,可能的值layoutAttribute是:
NSLayoutAttributeBottomNSLayoutAttributeRight这NSLayoutAttributeBottom不适合我,因为我需要在窗口标题栏的顶部放置一些东西(见上面的截图)并将红绿灯居中.
NSLayoutAttributeRight将是我所需要的,但我找不到增加标题栏高度的方法,因此视图被剪切到标题栏高度,这对我来说毫无用处.(注意:使用带纹理的窗口并更改内容边框不起作用,因为它不会更改实际的标题栏高度)
建议的方法是什么?我更愿意使用官方API并使用AccessoryViewController方法,如果可能有一个大于默认标题栏的视图.
cocoa objective-c appkit osx-yosemite nstitlebaraccessoryviewcontroller
我有一个Macbook Pro 13英寸与OS X Yosemite [内存8 GB,图形Intel Iris Graphics 6100 1536 MB].我正在尝试将Genymotion设置为Android模拟器.我首先从https://www.virtualbox.org/wiki/Downloads [VirtualBox-5.0.0-101573-OSX.dmg] 安装Oracle VirtualBox ,然后从Genymotion安装 Genymotion供个人使用[genymotion-2.5.0.dmg] .
但是我收到以下错误 -

我在StackOverflow和Google搜索结果中检查了所有以前的答案,我做了以下操作,但没有一个解决了问题.
1. (a)
sudo/Library/Startupitems/VirtualBox/VirtualBox restart
或(b)
sudo/Library/Application\Support/VirtualBox/LaunchDaemons/VirtualBoxStartup.sh restart
由于我的/ Library/Startupitems /为空,我尝试了选项(b).
2. 打开VirtualBox - >首选项 - >网络,在" 仅主机网络 "下,删除列出的那个.在" Nat Networks "下,有一个名为" NatNetwork " 的Active网络,它被检查.
3. vboxmanage被添加到路径中并且在hostonlys下没有任何内容
终奌站:
$ which vboxmanage
/usr/local/bin/vboxmanage
$ echo $PATH
/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin: <others>
$ vboxmanage list hostonlyifs
## no output - prints nothing
Run Code Online (Sandbox Code Playgroud)
这些都是我通过Google搜索找到的.如何让Genymotion为Yosemite工作?
{如果可能的话,请提供一个不太技术性的解决方案,因为我是Mac新手,它也可能帮助人们第一次使用Mac.我知道这不是StackOverflow的新问题.但以前的帖子都没有帮助过我.}
谢谢你的帮助.
osx-yosemite ×10
macos ×4
cocoa ×3
android ×1
appkit ×1
c ×1
c++ ×1
gcc ×1
genymotion ×1
homebrew ×1
jenkins ×1
json ×1
mongodb ×1
nscolor ×1
nsmenu ×1
nsmenuitem ×1
nsstatusbar ×1
nstitlebaraccessoryviewcontroller ×1
objective-c ×1
postgresql ×1
ruby ×1
scons ×1
swift ×1
xcode ×1
xcode6 ×1