我通过CocoaPods将EarlGrey添加到我的iOS项目中。我创建了新目标,如下所述:https://github.com/google/EarlGrey/blob/master/docs/install-and-run.md。
我的问题是,按照这条指令,简单的EarlGrey swift测试会被错误解释,导致构建错误
有没有人遇到过这样的问题?我能做些什么来解决它吗?
由于我是iOS / EarlGrey的新手,请随时向我推荐一些我可以添加到此问题的内容,以使其更具体。
评论后修改
执行gem install earlgrey
后,pod install
命令会导致以下错误:
RuntimeError - Test target group not found!
/Users/karolgil/.rvm/gems/ruby-2.1.10/gems/earlgrey-1.9.3/lib/earlgrey/configure_earlgrey.rb:371:in `copy_swift_files'
/Users/karolgil/.rvm/gems/ruby-2.1.10/gems/earlgrey-1.9.3/lib/earlgrey/extensions/analyzer_extensions.rb:25:in `block (2 levels) in analyze'
/Users/karolgil/.rvm/gems/ruby-2.1.10/gems/earlgrey-1.9.3/lib/earlgrey/extensions/analyzer_extensions.rb:24:in `each'
/Users/karolgil/.rvm/gems/ruby-2.1.10/gems/earlgrey-1.9.3/lib/earlgrey/extensions/analyzer_extensions.rb:24:in `block in analyze'
/Users/karolgil/.rvm/gems/ruby-2.1.10/gems/earlgrey-1.9.3/lib/earlgrey/extensions/analyzer_extensions.rb:23:in `each'
/Users/karolgil/.rvm/gems/ruby-2.1.10/gems/earlgrey-1.9.3/lib/earlgrey/extensions/analyzer_extensions.rb:23:in `analyze'
/Users/karolgil/.rvm/gems/ruby-2.1.10/gems/cocoapods-1.2.1/lib/cocoapods/installer.rb:236:in `analyze'
/Users/karolgil/.rvm/gems/ruby-2.1.10/gems/cocoapods-1.2.1/lib/cocoapods/installer.rb:150:in `block in resolve_dependencies'
/Users/karolgil/.rvm/gems/ruby-2.1.10/gems/cocoapods-1.2.1/lib/cocoapods/user_interface.rb:64:in `section'
/Users/karolgil/.rvm/gems/ruby-2.1.10/gems/cocoapods-1.2.1/lib/cocoapods/installer.rb:149:in `resolve_dependencies'
/Users/karolgil/.rvm/gems/ruby-2.1.10/gems/cocoapods-1.2.1/lib/cocoapods/installer.rb:110:in `install!'
/Users/karolgil/.rvm/gems/ruby-2.1.10/gems/cocoapods-1.2.1/lib/cocoapods/command/install.rb:41:in `run'
/Users/karolgil/.rvm/gems/ruby-2.1.10/gems/claide-1.0.1/lib/claide/command.rb:334:in `run'
/Users/karolgil/.rvm/gems/ruby-2.1.10/gems/cocoapods-1.2.1/lib/cocoapods/command.rb:52:in `run'
/Users/karolgil/.rvm/gems/ruby-2.1.10/gems/cocoapods-1.2.1/bin/pod:55:in `<top (required)>'
/Users/karolgil/.rvm/gems/ruby-2.1.10/bin/pod:23:in `load'
/Users/karolgil/.rvm/gems/ruby-2.1.10/bin/pod:23:in `<main>'