`xcodebuild -showBuildSettings` hangs when running multiple instances in parallel

Originator:stephanheilner
Number:rdar://25779929 Date Originated:18-Apr-2016 10:53 AM
Status:Open Resolved:
Product:iOS Product Version:Xcode 7.3
Classification: Reproducible:Always
 
Bug Reporter
Attention
Open3
Hidden
Closed3
Archive3
Drafts
SEARCH

SearchResults
PRODUCTS

Developer Tools2
iOS2
iOS SDK1
iPhone/iPod touch1
Stephan Heilner
stephanheilner@gmail.com
Log out
 NewSearch

Filter Problem List
Sort by Date Originated ▼
25809715Add ability to run individual tests or specified list of tests with `xcodebuild test`
iOS
19-Apr-2016 01:06 PM
Rank : No Value
Summary: I need the ability (outside of a 3rd party tool like xctool) to run a subset of my test within a target across several machines. Currently, you have to manually divide them up into multiple targets, but ideally, you could just specify a list of tests to test with the xcodebuild command it run just those tests, similar to how you would within Xcode. Steps to Reproduce: xcodebuild -project MyProject.xcodeproj -scheme "MyProject" test -only MyProjectUnitTests:TestClass1/test1,TestClass1/test2,TestClass2/test3 Expected Results: Test just the classes or individual test specified Actual Results: Run all all tests within a target. Version: All versions of Xcode Notes: Configuration: Mac OSX Attachments:
25779929`xcodebuild -showBuildSettings` hangs when running multiple instances in parallel
iOS
18-Apr-2016 10:53 AM
Rank : No Value
xcodebuild -showBuildSettings often hangs as well when not run in parallel, just when run independently
18455024Creating a Selection in JavaScript doesn't Show the Selection UI
iOS SDK
25-Sep-2014 09:54 AM
Rank : No Value
Summary: When creating a selection object in JavaScript on iOS, the native selection UI (selection grabbers and blue box) do not appear. We are using UIWebView to render content that the user will annotate. Without the ability to create a selection that triggers the selection UI we are blocked from allowing the user update and adjust their highlights. Steps to Reproduce: http://jsfiddle.net/c6jsa/ Create a javascript Range object, add it to a Selection. Expected Results: The blue selection UI with grabbers appears. (UIWebView enters selection mode) The pre-defined selection Range defines the start/end of the grabbers. Actual Results: Nothing. The only way to enter selection mode is to long press on text. The blue selection UI never shows. Version: All versions of iOS Notes: The desired behavior is to programmatically enter selection mode in UIWebView. Right now, the ONLY way to do that is through a long press gesture on text. Here's a stackoverflow post where others are desiring the same behavior: http://stackoverflow.com/questions/16972655/how-to-programmatically-enter-selection-mode-in-a-uiwebview Configuration: All iOS devices, including simulators Attachments:
25779929 
`xcodebuild -showBuildSettings` hangs when running multiple instances in parallel
2
State:OpenProduct:iOS
Rank:No Value
Add new information...
Choose FileAttach a fileHide |  Resolved Revert Save
Stephan Heilner19-Apr-2016 01:15 PM

xcodebuild -showBuildSettings often hangs as well when not run in parallel, just when run independently
Stephan Heilner18-Apr-2016 10:53 AM

Summary:
When running multiple xcodebuild -showBuildSettings at the same time, I get a NSRecursiveLock, which causes them to deadlock and hang. I use a tool called xctool that allows me to divide up and run my tests suite in parallel. Its worked really great up until the Xcode 7.3 release. When I run a `ps aux | grep xcodebuild`, I see this process is stuck:

`/Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -configuration Debug -sdk iphonesimulator9.3 -destination id=17C92A97-0AB2-4F49-ABAB-5D4E0D03CA1B -destination-timeout 10 CONFIGURATION_BUILD_DIR=/Users/iosbuild/Jenkins/workspace/GospelLibrary-PullRequest-IntegrationTests/build/derivedData PLATFORM_NAME=iphonesimulator -project GospelLibrary.xcodeproj -target GospelLibraryIntegrationTests OBJROOT=/Users/iosbuild/Jenkins/workspace/GospelLibrary-PullRequest-IntegrationTests/build/derivedData/Build/Intermediates SYMROOT=/Users/iosbuild/Jenkins/workspace/GospelLibrary-PullRequest-IntegrationTests/build/derivedData/Build/Products SHARED_PRECOMPS_DIR=/Users/iosbuild/Jenkins/workspace/GospelLibrary-PullRequest-IntegrationTests/build/derivedData/Build/Intermediates/PrecompiledHeaders TARGETED_DEVICE_FAMILY=1,2 build -showBuildSettings`

xctool, runs this command and then spawns a simulator and lets you get a list of all your tests within a target. I take that list, partition it out and run the tests on 6 different machines so that I can slim down 2 hours worth of tests to 20 minutes.

Steps to Reproduce:
Download sample project (MyTestProject.zip), extract, run the 'makeHang.sh' script, which just runs 10 xcodebuild -showBuildSettings simultaneously. 

Expected Results:
Run multiple xcodebuild -showBuildSettings simultaneously without hanging

Actual Results:
Run multiple xcodebuild -showBuildSettings simultaneously causes it to hang

Version:
Xcode 7.3

Notes:


Configuration:
OSX - MacBook Pro, Mac Mini and Mac Pro

Attachments:
'spindump.txt' and 'MyTestProject.zip' were successfully uploaded.









xcodebuild -showBuildSettings often hangs as well when not run in parallel, just when run independently

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!