简体   繁体   中英

How to fix No developer directory found error in Xcode 4.5.1?

Am working in Xcode 4.5.1 with iOS 6.0. Am new to " Test " the iOS applications. Whenever I try to "Test" the app it is showing " Test Succeeded " but through an error in Debugger area. The error message is,

Error: No developer directory found at /Volumes/RED Zone/Softrware Dump/Xcode Tools/xcode 4.5.1/Xcode.app/Contents/Developer. Run /usr/bin/xcode-select to update the developer directory path.
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'launch path not accessible'
*** Call stack at first throw:

Also I tried to update the path using Terminal like below,

/usr/bin/xcode-select -switch /Applications/CompanyName/xcode 4.5.1/Xcode.app/Contents/Developer

It showed below error message:

xcode-select: Error: argument missing from -switch option.
Usage: xcode-select -print-path
   or: xcode-select -switch <xcode_folder-path>
   or: xcode-select -version
Arguments:

I dont know how to fix this issue? Anyone please help me on this? Looking forward your help. Thanks in advance.

Try using the tab key to autocomplete the directory names; that will escape the spaces. The error is occurring because xcode-select doesn't recognise the path you're providing as being valid.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM