created
Sep '15
last reply
Nov '15
- 31
replies
- 6.8k
views
- 11
users
- 1
like
- 9
links
There are 31 replies with an estimated read time of 2 minutes.
There are 31 replies with an estimated read time of 2 minutes.
hi @moizjv,
Do you have any plan to enable instruments-without-delay for Xcode 7? Currently I have a test suite that runs for almost 8 hour to finish. I can imagine without instruments-without-delay option, that suite will runs for days
Thanks.
hi @tbao,
Yes we want to research that option. I have not been able to take time for that. Though for xcode 7 you might have to do it yourself, as old way of passing arguments does not work.
If you can make this work https://github.com/lawrencelomax/instruments-without-delay/tree/xcode7-quirks#xcode-7--ios-9-support85, let me know or add it to docs of appium, would help lot of people.
Thanks
Moiz
@mweiss88 try using xcode 7.1 beta, not confirmed but looks like it is working with 7.1.
@moizjv o i tried using instruments-without-delay using appium 4.1.11 on xcode 7.1 Beta2 and it is much slower than using xcode 6 for the same version of appium and same tests.
@mweiss88 it's because instruments-without-delay is turned off for xcode 7.1. I have twist the appium source code a bit to turn it on for xcode 7, and do as: https://github.com/lawrencelomax/instruments-without-delay/tree/xcode7-quirks#xcode-7--ios-9-support22
Currently it's the only workaround that I know for this
@tbao thanks, I'll give that a try when I get the chance (will be a few days). Obviously a permanent fix in appium would be ideal but thanks for the work around!
@tbao can you share how you got it working?
@moizjv Maybe you got me wrong because all I did is just follow this: https://github.com/lawrencelomax/instruments-without-delay/tree/xcode7-quirks#xcode-7--ios-9-support13. I just modified the plist and it works.
Hopefully you can find better solution for this instead of modifying the plist
Hi @tbao I also have problem with it.
It is clear that environment variable should be adde to plist file.
But how to do it step by step?
Could you explain it more extendedly?
Thanks.
@Degard Here are the steps that I did:
1. Checkout this project: https://github.com/lawrencelomax/instruments-without-delay20 first. Make sure you can open it by Xcode and build it successfully.
Back up this file: ./Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/Developer/Library/LaunchDaemons/com.apple.instruments.deviceservice.plist ( I assume your Xcode is installed in the same directory of mine, otherwise you can do a search from Xcode directory with file name "com.apple.instruments.deviceservice.plist")
Open that file and add this key - dict:<key>EnvironmentVariables</key>
<dict>
<key>DYLD_INSERT_LIBRARIES</key>
<string>/Users/tbao/Developer/tools/appium/instruments-without-delay/build/DTMobileISShim.dylib</string>
<key>LIB_PATH</key>
<string>/Users/tbao/Developer/tools/appium/instruments-without-delay/build</string
</dict>
Note: You have to change the values for the two keys DYLD_INSERT_LIBRARIES, LIB_PATH according to your checked out instruments-without-delay project.
Now try to run appium again and see if it works. To be frankly, how the author of this project solves the problem is still a mystery to me but at least it works for me. Let me know if you have any problem and I'll try to get back to you when I have time
@tbao Thank you, It works for me now.