Tag: ruby在轨道上

在OS X Mavericks上安装Calabash-cucumber错误

我想通过引用链接在OS-x mavericks上自动安装葫芦( https://github.com/calabash/calabash-ios ) 我已经安装了最新版本的ruby,自制软件,rbenv。 请注意,命令 homebrew doctor 只给我一个警告: Warning: Xcode is installed to a directory with a space in the name. This will cause some formulae to fail to build. 我无法删除此警告。 还有一些论坛build议,这可能是无害的。 在连续两天的安装问题挣扎之后,我被困在这个地方,我得到以下错误: nitzs-iMac:tabbedapp nitzarg$ sudo gem install calabash-cucumber Password: Building native extensions. This could take a while… ERROR: Error installing calabash-cucumber: ERROR: Failed […]

错误:无法在任何存储库中find有效的gem'cocoapods'(> = 0)

我正在尝试运行一个AWS Cognito服务项目,其中我添加了适用于iOS的AWS开发工具包,但在添加并尝试运行之后,它会向我显示图像中显示的下面的错误 错误:无法在任何存储库中find有效的gem'cocoapods'(> = 0) 当我爬上它在互联网上,发现一些cocoapods安装说明,所以在尝试之后,我得到了一些像下面的其他错误 aparajita:Objective-C Aparajita$ sudo gem install cocoapods Password: /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/universal-darwin14/rbconfig.rb:213: warning: Insecure world writable dir /usr/local in PATH, mode 040777 ERROR: Could not find a valid gem 'cocoapods' (>= 0) in any repository aparajita:Objective-C Aparajita$ gem install cocoapods /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/universal-darwin14/rbconfig.rb:213: warning: Insecure world writable dir /usr/local in PATH, mode 040777 ERROR: Could […]

葫芦iOS:如何使用查询命令获取价值

我试图通过查询命令来获取每个类的值。 下面是我得到的示例UI组件: [0] { "class" => "UITabBarSwappableImageView", "id" => "imageView-34", "rect" => { "center_x" => 288, "y" => 522, "width" => 48, "x" => 264, "center_y" => 538, "height" => 32 }, "frame" => { "y" => 2, "width" => 48, "x" => 6, "height" => 32 }, "label" => nil, "description" => "<UITabBarSwappableImageVie….>" 在Android上,我可以使用它来列出类组件的所有值: […]

使用Devise注册,login并注销iOS应用程序

我有一个非常基本的Rails应用程序,使用devise用户注册,login等。我想暴露Devise到iOS应用程序。 有很multithreading是高层次的解释,但我对Rails很新。 我基本上发布一个请求给用户/ sign_up像这样: AFHTTPClient *client = [AFHTTPClient clientWithBaseURL:[NSURL URLWithString:@"http://localhost:5000"]]; //[client defaultValueForHeader:@"Accept"]; [client setParameterEncoding:AFJSONParameterEncoding]; NSDictionary *params = [NSDictionary dictionaryWithObjects:[NSArray arrayWithObjects: @"first.last@gmail.com", @"testtest", @"testtest", nil] forKeys:[NSArray arrayWithObjects: @"email", @"password", @"password_confirmation", nil]]; [client registerHTTPOperationClass:[AFHTTPRequestOperation class]]; NSURLRequest *request = [client requestWithMethod:@"GET" path:@"/users/sign_up" parameters:params]; AFHTTPRequestOperation *operation = [AFJSONRequestOperation JSONRequestOperationWithRequest:request success:^(NSURLRequest *request, NSHTTPURLResponse *response, id JSON) { NSLog(@"%@", JSON); NSLog(@"%@", […]

使用Appium和RubytestingiOS应用程序时是否需要加载元素?

我正在testing一个iOS应用程序,并且不能与login后的元素交互,因为Appium速度太快了。 有人可以请我指出一个使用WebDriverWait风格等待Appium iOStesting的例子吗? 最好在Ruby中。 谢谢。

安装老cocoapods?

我的整个项目目前是怪人,因为没有任何依赖符合cocoapods 1.0。 不仅是数百万Podspecs不工作,还有多个其他问题曾经是警告,现在build立停止错误…很令人沮丧。 我已经尝试删除~/.cocoapods , sudo gem uninstall cocoapods和sudo gem install cocoapods -v 0.39.0 ,发生同样的错误。 看起来好像是在安装它呢? cocoapods (0.39.0) cocoapods-core (1.0.0, 0.39.0) cocoapods-deintegrate (1.0.0) cocoapods-downloader (1.0.0, 0.9.3) cocoapods-plugins (1.0.0, 0.4.2) cocoapods-search (1.0.0, 0.1.0) cocoapods-stats (1.0.0, 0.6.2) cocoapods-trunk (1.0.0, 0.6.4) cocoapods-try (1.0.0, 0.5.1) 如何使用100%的旧版本,直到这些库被修复?

从XCode访问Mac上的本地主机? Phonegap与Ajax通信到本地的Rails应用程序

有没有办法在iPhone设备(而不是模拟器),在XCode中通过iPhone的Phonegap运行的HTML文件中访问http://localhost:3000/posts ? 如果我在Phonegap中有一个HTML5应用程序,那么我只能通过file://Users/etc..或http://…访问外部样式表http://…当我在iPhone / iPad本身上进行testing时。 如果我正在运行模拟器,我可以访问本地主机没有问题。 有没有解决的办法? 我知道我可以通过执行http://username.local/posts从运行Windows的Parallels访问Mac上的localhost,对于iOS开发,有没有这样的东西?

将运行脚本构build阶段添加到来自podspec的Xcode项目中

我正在为我的库编写Cocoapods规范,它必须修改Xcode项目,并将“运行脚本构build阶段”添加到项目的目标。 我以为我可以使用post_install挂钩。 但是“ pod spec lint ”说这个钩子已经被弃用了: – WARN | [iOS] The post install hook of the specification DSL has been deprecated, use the `resource_bundles` or the `prepare_command` attributes. 我不知道如何用* resource_bundles *或* prepare_command *replacepost_install钩子。 谁知道解决我的问题的其他方法? 可能吗? 而另一个问题是如何修改Xcode项目来添加构build阶段,但只有解决了“post_hook问题”时才是实际的。

iOS上的Python或Ruby解释器

我在应用程序商店find了这个应用程序: iLuaBox ,我想知道如果没有越狱的话iPhone还有其他的东西,但是对于Python或Ruby来说呢? Lua对我来说可能是类似的,但是我想我会问)

iOS推送通知不能用于分发

我已经尝试推送通知我的应用程序的开发,它工作正常。 当我生成生产(发行)的.p12文件时,它正在创build。 在服务器上部署.pem文件之后,它会抛出错误。 OpenSSL :: SSL :: SSLError(SSL_connect返回= 1 errno = 0状态= SSLv3读服务器操作票A:sslv3警报证书未知):“} 服务器:RoR(Ruby on Rails)任何帮助都是非常可观的。 注意: 对于开发.p12它工作正常。 问题是当我部署分布.p12。 请build议我可能错过了什么。 感谢致敬