7.2.1 stuck in "install additional required components" loop

7.2.1 stuck in "install additional required components" loop, just keeps prompting me for user/password



Googled and Tried the various fixes including

  1. sudo /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -license accept
  2. sudo installer -pkg /Applications/Xcode.app/Contents/Resources/Packages/MobileDevice.pkg -target /
  3. sudo installer -pkg /Applications/Xcode.app/Contents/Resources/Packages/MobileDeviceDevelopment.pkg -target /


and nothing works.




Trying to revert back to 7.2

Reinstalled 7.2 and it's works as expected.

Started xcode from the command line and got this, install additional components prompt not requiring user/pwd and still just an endless loop



Mobile-Dev-MBP:~ SNGI$ sudo /Applications/Xcode.app/Contents/MacOS/Xcode

2016-02-04 14:42:51.468 Xcode[1368:354014] ### Failed to load Addressbook class CNContactNameFormatter

2016-02-04 14:42:51.610 Xcode[1368:354014] NSWindow warning: adding an unknown subview: <NSView: 0x7fd3ebf43980>. Break on NSLog to debug.

2016-02-04 14:42:51.612 Xcode[1368:354014] Call stack:

(

0 AppKit 0x00007fff875674ef -[NSThemeFrame addSubview:] + 107

1 AppKit 0x00007fff87595ab4 -[NSView replaceSubview:with:] + 153

2 IDEKit 0x00000001039275a8 -[IDEFirstLaunchExperienceViewController _replaceView:withView:] + 176

3 IDEKit 0x000000010392611f -[IDEFirstLaunchExperienceViewController showFirstLaunchExperienceModallyIfNecessary] + 181

4 IDEKit 0x0000000103352cf3 -[IDEWelcomeWindowController _showFirstLaunchExperienceIfAppropriate] + 264

5 IDEKit 0x0000000103352bd8 -[IDEWelcomeWindowController openWelcomeWindowAfterFirstLaunchExperienceIfAppropriate:] + 27

6 IDEKit 0x000000010335291c -[IDEApplicationController applicationOpenUntitledFile:] + 230

7 AppKit 0x00007fff875bad63 -[NSApplication _doOpenUntitled] + 397

8 AppKit 0x00007fff875ba852 __58-[NSApplication(NSAppleEventHandling) _handleAEOpenEvent:]_block_invoke + 251

9 AppKit 0x00007fff875ba1ed -[NSDocumentController(NSInternal) _autoreopenDocumentsIgnoringExpendable:withCompletionHandler:] + 804

10 AppKit 0x00007fff87982513 -[NSApplication _reopenWindowsAsNecessaryIncludingRestorableState:completionHandler:] + 274

11 AppKit 0x00007fff875b8880 -[NSApplication(NSAppleEventHandling) _handleAEOpenEvent:] + 544

12 AppKit 0x00007fff875b8337 -[NSApplication(NSAppleEventHandling) _handleCoreEvent:withReplyEvent:] + 250

13 Foundation 0x00007fff8b6ff861 -[NSAppleEventManager dispatchRawAppleEvent:withRawReply:handlerRefCon:] + 290

14 IDEKit 0x0000000103587d16 -[NSAppleEventManager(DVTAssertionOverrides) swizzleDispatchRawAppleEvent:withRawReply:handlerRefCon:] + 19

15 Foundation 0x00007fff8b6ff6db _NSAppleEventManagerGenericHandler + 102

16 AE 0x00007fff892c0231 _Z20aeDispatchAppleEventPK6AEDescPS_jPh + 531

17 AE 0x00007fff892bffb8 _ZL25dispatchEventAndSendReplyPK6AEDescPS_ + 31

18 AE 0x00007fff892bfed4 aeProcessAppleEvent + 288

19 HIToolbox 0x00007fff954daaf9 AEProcessAppleEvent + 55

20 AppKit 0x00007fff875b2588 _DPSNextEvent + 2245

21 AppKit 0x00007fff8797e943 -[NSApplication _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 454

22 DVTKit 0x00000001026ef0c2 -[DVTApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 247

23 AppKit 0x00007fff875a7fc8 -[NSApplication run] + 682

24 AppKit 0x00007fff8752a520 NSApplicationMain + 1176

25 libdyld.dylib 0x00007fff95f2d5ad start + 1

)

Mobile-Dev-MBP:~ SNGI$

Tried


sudo

/Applications/Xcode.app/Contents/MacOS/Xcode -installComponents


and got this at least a hundred times



2016-02-04 14:56:06.558 Xcode[1409:435620] This application is modifying the autolayout engine from a background thread, which can lead to engine corruption and weird crashes. This will cause an exception in a future release.

Stack:(

0 CoreFoundation 0x00007fff8d517ae2 __exceptionPreprocess + 178

1 DVTFoundation 0x0000000101abcb07 DVTFailureHintExceptionPreprocessor + 194

2 libobjc.A.dylib 0x00007fff972c3f7e objc_exception_throw + 48

3 CoreFoundation 0x00007fff8d51798d +[NSException raise:format:] + 205

4 Foundation 0x00007fff8b72cb44 _AssertAutolayoutOnMainThreadOnly + 79

5 Foundation 0x00007fff8b73288e -[NSISEngine optimize] + 49

6 Foundation 0x00007fff8b72ca6e -[NSISEngine withBehaviors:performModifications:] + 244

7 AppKit 0x00007fff87559072 -[NSView _setWindow:] + 3009

8 AppKit 0x00007fff8758d6eb -[NSView removeFromSuperview] + 471

9 AppKit 0x00007fff87595b6e -[NSView replaceSubview:with:] + 339

10 IDEKit 0x00000001032cb378 -[IDEFirstLaunchExperienceViewController _setCurrentView:] + 321

11 IDEKit 0x00000001032ca410 -[IDEFirstLaunchExperienceViewController _showPackagesToInstallIfNecessary] + 112

12 IDEKit 0x00000001032cb102 __78-[IDEFirstLaunchExperienceViewController _promptForUITestingAccessIfNecessary]_block_invoke_2 + 134

13 IDEFoundation 0x0000000102665f32 __96-[IDEUITestingPermissionManager checkUITestingPermissionForXcodeUITestingAgentWithPrompt:reply:]_block_invoke + 398

14 DVTFoundation 0x0000000101af78f8 __DVTDispatchAsync_block_invoke + 153

15 libdispatch.dylib 0x00007fff87482871 _dispatch_call_block_and_release + 12

16 libdispatch.dylib 0x00007fff8747733f _dispatch_client_callout + 8

17 libdispatch.dylib 0x00007fff8747b1cf _dispatch_root_queue_drain + 1890

18 libdispatch.dylib 0x00007fff8747aa34 _dispatch_worker_thread3 + 91

19 libsystem_pthread.dylib 0x00007fff8d9e168f _pthread_wqthread + 1129

20 libsystem_pthread.dylib 0x00007fff8d9df365 start_wqthread + 13

)

CoreAnimation: warning, deleted thread with uncommitted CATransaction; set CA_DEBUG_TRANSACTIONS=1 in environment to log backtraces.

Taking a scorched earth approach. Deleted everything under \Library\Developer and ~\Library\developer and installing 7.2.1 from the DMG file from developer center

And this didn't work either

Finally got 7.2.1 to install required components by going into recovery mode disabling SIP, reboot, installing and then launching xcode. Once xcode launched sucessfully I reenabled SIP


So far so good

Nope.... this seemed to work until I actually started using xcode.



New scorched earth approach.... erase the harddrive and start over

I have deleted everything and done a fresh Xcode install; each time I lauched Xcode, it asked to installed additional required component. I guess this is a bug on the 7.2.1 version and will be fixed in next release. Besides this slight annoynance, everything else works fine.


I wonder if there is anyone who is running 7.2.1 version and does not have this issue.

I'm running 7.2.1 and don't have that issue.

I have the issue with 7.2.1 on my MBA but not on my iMac. 😕

Same issue here on a MBP and XCode 7.2.1.

7.2.1 stuck in "install additional required components" loop
 
 
Q