我是红宝石的新手.当我键入任何与gem相关的东西时,会发生以下错误.为什么会导致它以及如何解决问题?谢谢!
Error loading RubyGems plugin "/Users/chiang/.rvm/gems/ruby-2.0.0-p247@global/gems/rubygems-bundler-1.2.2/lib/rubygems_plugin.rb": dlopen(/Users/chiang/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/x86_64-darwin12.3.0/openssl.bundle, 9): Library not loaded: /opt/local/lib/libssl.1.0.0.dylib
Referenced from: /Users/chiang/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/x86_64-darwin12.3.0/openssl.bundle
Reason: image not found - /Users/chiang/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/x86_64-darwin12.3.0/openssl.bundle (LoadError)
Run Code Online (Sandbox Code Playgroud) 我*.xcodeproj
不小心把一些文件放在同一级别的文件中.当我将这些文件移动到Finder中的正确位置时,Xcode告诉我这些文件丢失了.所以我删除了包含这些文件名称已被读取的组(我意识到这是一个错误).然后我将这些文件从Finder拖到xcode中以构建一个新组.但是当我尝试运行该项目时,Xcode仍然无法找到这些代码.我该如何解决这个问题?
我正在关注如何在Linux上找到包含特定文本的所有文件的最佳答案?在我的项目中搜索字符串.
这是我的命令 grep --include=*.rb -rnw . -e "pattern"
Zsh告诉我 zsh: no matches found: --include=*.rb
似乎grep不支持--include
选项.
当我输入时grep --help
,它返回
usage: grep [-abcDEFGHhIiJLlmnOoPqRSsUVvwxZ] [-A num] [-B num] [-C[num]]
[-e pattern] [-f file] [--binary-files=value] [--color=when]
[--context[=num]] [--directories=action] [--label] [--line-buffered]
[--null] [pattern] [file ...]
Run Code Online (Sandbox Code Playgroud)
不,--include
这里
我的grep版本太旧了吗?或者我的命令有问题吗?
在setProgram
和setGraphic
方法中我们有相同的代码:
NSLog(@"%@", self.display);
Run Code Online (Sandbox Code Playgroud)
但是,输出显示self.display是空的setProgram
,但它是一个UILable对象中setGraphic
.
是什么导致了不同的结果?display
是IBOutlet并且program
是NSArray对象.虽然program
是SOGraphicViewController的模型,但我将从另一个控制器传递程序的值[segue.destinationViewController setProgram: self.brain.program]
.
@interface SOGraphicViewController ()
@property (nonatomic, weak) IBOutlet graphicView *graphic;
@end
@implementation SOGraphicViewController
@synthesize program = _program;
@synthesize graphic = _graphic;
@synthesize display = _display;
- (void)setProgram:(id)program {
_program = program;
[self.graphic setNeedsDisplay];
NSLog(@"%@", self.display);
}
- (void)setGraphic:(graphicView *)graphic {
_graphic = graphic;
self.graphic.dataSource = self;
NSLog(@"%@", self.display);
}
Run Code Online (Sandbox Code Playgroud) go ×1
grep ×1
ios ×1
macos ×1
objective-c ×1
ruby ×1
rubygems ×1
synthesize ×1
xcode ×1
zsh ×1