所以我最近一直在尝试使用Bwoken和tuneupjs为我的iOS应用程序实现测试套件。我的应用程序目前仅针对iOS 7构建,仅与32位架构兼容。
当我尝试运行$ bwoken test
时,我收到此构建错误:
Standard Error:
2014-10-22 14:16:21.980 xcodebuild[94140:3433708] DeveloperPortal: Using pre-existing current store at URL (file:///Users/sdagostino/Library/Developer/Xcode/DeveloperPortal%206.1.db).
** BUILD FAILED **
The following build commands failed:
Ld /Users/sdagostino/Library/Developer/Xcode/DerivedData/TestApp-aecacvpqnqgkozgqmkrucotliffv/Build/Intermediates/TestApp.build/Debug-iphonesimulator/TestApp.build/Objects-normal/x86_64/TestApp normal x86_64
(1 failure)
Build failed!
Users/sdagostino/.rvm/gems/ruby-2.1.0@ios-test-app/gems/bwoken-2.1.0.rc.2/lib/bwoken/build.rb:86:in `compile': Bwoken::BuildFailedError (Bwoken::BuildFailedError)
from /Users/sdagostino/.rvm/gems/ruby-2.1.0@ios-test-app/gems/bwoken-2.1.0.rc.2/lib/bwoken/cli/test.rb:83:in `compile'
from /Users/sdagostino/.rvm/gems/ruby-2.1.0@ios-test-app/gems/bwoken-2.1.0.rc.2/lib/bwoken/cli/test.rb:69:in `run'
from /Users/sdagostino/.rvm/gems/ruby-2.1.0@ios-test-app/gems/bwoken-2.1.0.rc.2/lib/bwoken/cli.rb:58:in `<top (required)>'
from /Users/sdagostino/.rvm/gems/ruby-2.1.0@ios-test-app/gems/bwoken-2.1.0.rc.2/bin/bwoken:3:in `require'
from /Users/sdagostino/.rvm/gems/ruby-2.1.0@ios-test-app/gems/bwoken-2.1.0.rc.2/bin/bwoken:3:in `<top (required)>'
from /Users/sdagostino/.rvm/gems/ruby-2.1.0@ios-test-app/bin/bwoken:23:in `load'
from /Users/sdagostino/.rvm/gems/ruby-2.1.0@ios-test-app/bin/bwoken:23:in `<main>'
from /Users/sdagostino/.rvm/gems/ruby-2.1.0@ios-test-app/bin/ruby_executable_hooks:15:in `eval'
from /Users/sdagostino/.rvm/gems/ruby-2.1.0@ios-test-app/bin/ruby_executable_hooks:15:in `<main>'
仅供参考:我可以在Xcode中构建和运行我的应用程序,但是我的模拟器设置了iPhone 5.
我的问题是:如何通过bwoken而不是Xcode来指定构建哪个体系结构?
以下是我的依赖文件:
Podfile
# Uncomment this line to define a global platform for your project
platform :ios, '7.0'
pod 'tuneup_js'
source 'https://github.com/CocoaPods/Specs.git'
target 'TestApp' do
end
target 'TestAppTests' do
end
的Gemfile
# A sample Gemfile
source "https://rubygems.org"
# gem "rails"
gem 'bwoken', '2.1.0.rc.2'
gem 'cocoapods'
2.1.0
0.34.4
提前感谢任何贡献。
答案 0 :(得分:0)
使用--device <device-name-or-id>
定位某个设备(使用instruments -s devices
列出可用的设备)。如果您有多个构建方案,--scheme
可能会有用。
我在编写测试时也使用--skip-build
。