下面给出了我系统的环境规范
Below given are environment specification of my system
System: MacBook Pro OS X version: 10.8.5 Worklight: 6.1 Emulator: 6.1 Build for iOS: 6.1 I have installed Mobile Test Workbench 8.5.1.2 in eclipse-kepler我按照网页上的说明进行操作:
I followed instruction on the page at URL:
pic.dhe.ibm/infocenter/rtwhelp/v8r5m0/index.jsp?topic=%2Fcom.ibm.rational.test.lt.moeb.doc%2Ftopics%2Frvar_select_device.html
但是当我尝试为模拟器设备和安装iPhone应用程序时,每次都会出现错误。
but when I try to instrument and install iPhone app for simulator some error occurs every time.
这里我从终端复制了错误日志,其中说:
Here I have copied error log from terminal which says:
Could not merge original binaries Could not merge instrumented binaries
------ Start Localization Folder Creation ----- Found Localization files in: /Users/sarfaraz/Documents/workspace/SumApp/apps/SumApp/iphone/package/SumApp-1.0-iphone/Resources/Localizations.bundle/ Print: Entry, ":CFBundleDevelopmentRegion", Does Not Exist ------ Localization Folder created 51235 blocks 51235 blocks Print: Entry, ":RMOTUID", Does Not Exist Print: Entry, ":CFBundleIconFile", Does Not Exist Print: Entry, "objects:C01FCF4F08A954540054247B:buildSettings:VALID_ARCHS", Does Not Exist Set: Entry, "objects:C01FCF4F08A954540054247B:buildSettings:VALID_ARCHS", Does Not Exist Print: Entry, "objects:4247AFA21330EB1200D997AA:buildSettings:VALID_ARCHS", Does Not Exist Set: Entry, "objects:4247AFA21330EB1200D997AA:buildSettings:VALID_ARCHS", Does Not Exist Print: Entry, "objects:1D6058940D05DD3E006BFB54:buildSettings:VALID_ARCHS", Does Not Exist Set: Entry, "objects:1D6058940D05DD3E006BFB54:buildSettings:VALID_ARCHS", Does Not Exist Print: Entry, "objects:1D6058950D05DD3E006BFB54:buildSettings:VALID_ARCHS", Does Not Exist Set: Entry, "objects:1D6058950D05DD3E006BFB54:buildSettings:VALID_ARCHS", Does Not Exist xcrun: Error: could not stat active Xcode path '/Volumes/Xcode/Xcode.app/Contents/Developer'. (No such file or directory) xcrun: Error: could not stat active Xcode path '/Volumes/Xcode/Xcode.app/Contents/Developer'. (No such file or directory) mergin simulator and device binaries lipo: can't open input file: /tmp/16329/work/build/Debug-iphonesimulator/SumApp.app/SumApp (No such file or directory) ---- done xcrun: Error: could not stat active Xcode path '/Volumes/Xcode/Xcode.app/Contents/Developer'. (No such file or directory) xcrun: Error: could not stat active Xcode path '/Volumes/Xcode/Xcode.app/Contents/Developer'. (No such file or directory) Print: Entry, ":objects:C01FCF4F08A954540054247B:buildSettings:OTHER_LDFLAGS:0", Does Not Exist -ObjC Print: Entry, ":objects:C01FCF4F08A954540054247B:buildSettings:LIBRARY_SEARCH_PATHS:0", Does Not Exist Print: Entry, ":objects:C01FCF4F08A954540054247B:buildSettings:LIBRARY_SEARCH_PATHS", Does Not Exist -all_load Print: Entry, ":objects:4247AFA11330EB1200D997AA:buildSettings:LIBRARY_SEARCH_PATHS:0", Does Not Exist Print: Entry, ":objects:4247AFA11330EB1200D997AA:buildSettings:LIBRARY_SEARCH_PATHS", Does Not Exist Print: Entry, ":objects:4247AFA21330EB1200D997AA:buildSettings:OTHER_LDFLAGS:0", Does Not Exist Print: Entry, ":objects:4247AFA21330EB1200D997AA:buildSettings:OTHER_LDFLAGS", Does Not Exist $(inherited) -all_load Print: Entry, ":objects:C01FCF5008A954540054247B:buildSettings:LIBRARY_SEARCH_PATHS:0", Does Not Exist Print: Entry, ":objects:C01FCF5008A954540054247B:buildSettings:LIBRARY_SEARCH_PATHS", Does Not Exist Print: Entry, ":objects:1D6058940D05DD3E006BFB54:buildSettings:OTHER_LDFLAGS:0", Does Not Exist Print: Entry, ":objects:1D6058940D05DD3E006BFB54:buildSettings:OTHER_LDFLAGS", Does Not Exist $(inherited) Print: Entry, ":objects:1D6058950D05DD3E006BFB54:buildSettings:OTHER_LDFLAGS:0", Does Not Exist Print: Entry, ":objects:1D6058950D05DD3E006BFB54:buildSettings:OTHER_LDFLAGS", Does Not Exist $(inherited) xcrun: Error: could not stat active Xcode path '/Volumes/Xcode/Xcode.app/Contents/Developer'. (No such file or directory) xcrun: Error: could not stat active Xcode path '/Volumes/Xcode/Xcode.app/Contents/Developer'. (No such file or directory) mergin simulator and device binaries lipo: can't open input file: /tmp/16329/work/build/Debug-iphonesimulator/SumApp.app/SumApp (No such file or directory) ----- done xcrun: Error: could not stat active Xcode path '/Volumes/Xcode/Xcode.app/Contents/Developer'. (No such file or directory) xcrun: Error: could not stat active Xcode path '/Volumes/Xcode/Xcode.app/Contents/Developer'. (No such file or directory) cp: Icon-29: No such file or directory adding: description.json (deflated 17%) adding: instrumented/ (stored 0%) adding: instrumented/iOS Device/ (stored 0%) adding: instrumented/iOS Simulator/ (stored 0%) adding: localize/ (stored 0%) adding: localize/de.lproj/ (stored 0%) adding: localize/de.lproj/messages.strings (deflated 62%) adding: localize/en.lproj/ (stored 0%) adding: localize/en.lproj/messages.strings (deflated 66%) adding: localize/es.lproj/ (stored 0%) adding: localize/es.lproj/messages.strings (deflated 64%) adding: localize/fr.lproj/ (stored 0%) adding: localize/fr.lproj/messages.strings (deflated 63%) adding: localize/it.lproj/ (stored 0%) adding: localize/it.lproj/messages.strings (deflated 64%) adding: localize/ja.lproj/ (stored 0%) adding: localize/ja.lproj/messages.strings (deflated 55%) adding: localize/ko.lproj/ (stored 0%) adding: localize/ko.lproj/messages.strings (deflated 55%) adding: localize/locales (deflated 5%) adding: localize/pt_BR.lproj/ (stored 0%) adding: localize/pt_BR.lproj/messages.strings (deflated 63%) adding: localize/ru.lproj/ (stored 0%) adding: localize/ru.lproj/messages.strings (deflated 59%) adding: localize/zh-Hans.lproj/ (stored 0%) adding: localize/zh-Hans.lproj/messages.strings (deflated 56%) adding: localize/zh-Hant.lproj/ (stored 0%) adding: localize/zh-Hant.lproj/messages.strings (deflated 56%) adding: original/ (stored 0%) adding: original/iOS Device/ (stored 0%) adding: original/iOS Simulator/ (stored 0%) expr 0 * 0 % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 12469 100 228 100 12241 439 23603 --:--:-- --:--:-- --:--:-- 23585 ls: /Users/sarfaraz/Library/Application Support/iPhone Simulator/6.0/Applications//*/SumApp.app: No such file or directory cp: /tmp/16329/work/build/Debug-iphonesimulator/SumApp.app: No such file or directory ls: /Users/sarfaraz/Library/Application Support/iPhone Simulator/6.1/Applications//*/SumApp.app: No such file or directory cp: /tmp/16329/work/build/Debug-iphonesimulator/SumApp.app: No such file or directory ls: /Users/sarfaraz/Library/Application Support/iPhone Simulator/7.0/Applications//*/SumApp.app: No such file or directory cp: /tmp/16329/work/build/Debug-iphonesimulator/SumApp.app: No such file or directory ls: /Users/sarfaraz/Library/Application Support/iPhone Simulator/7.0-64/Applications//*/SumApp.app: No such file or directory cp: /tmp/16329/work/build/Debug-iphonesimulator/SumApp.app: No such file or directory "uid":"b7fd1a3aca7fd008ca5f36fe09879c1d" Mar 21 18:15:12 2014 /Users/sarfaraz/Downloads/RTW-iOS-Build-Archive/runtime/Debug/libiOSRuntime.a could not merge original binaries could not merge instrumented binaries
帮助我。
推荐答案我执行了一些终端命令逐个,然后在每次执行后尝试检测。 我在下面列出的内容。
I executed some terminal commands one by one and then tried instrumentation after every execution. Which I have listed below.
Sudo su 然后才尝试=失败
Sudo xcode-select -switch /Applications/Xcode.app 然后尝试=失败
然后出现 sudo 并尝试 instrumentation 和bingo! 它成功了!。
Then came out of sudo and tried instrumentation and bingo! It succeeded!.
I think Sudo xcode-select -switch /Applications/Xcode.app worked for me.模拟器中app的检测成功。
Instrumentation of app in simulator succeeded.
更多推荐
Rational Test Workbench iPhone
发布评论