The Stack Overflow podcast is back! Listen to an interview with our new CEO.

Questions tagged [xcode]

WARNING: Almost all questions about development or app distribution are off topic here. See the FAQs for details. Xcode is Apple's official software development environment for Mac OS X and iOS

Filter by
Sorted by
Tagged with
1540
votes
7answers
955k views

Why am I getting an “invalid active developer path” when attempting to use Git after upgrading to macOS Catalina?

After upgrading to macOS Catalina, I tried to run git from Terminal but it kept giving me the following error: xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), ...
119
votes
10answers
117k views

OS X computer name not matching what shows on terminal

My computer name in System Preferences > sharing is set to "archos" but is showing as "iphone" on the terminal. It just started doing this after I loaded Xcode for doing iPhone development. Last ...
114
votes
4answers
87k views

What is the format of a .xip file

As Xcode 8 beta is available to download, I see it's distributed with a .xip extension, Xcode_8_beta.xip. What is the .xip format? What's the difference between previous .dmg format?
81
votes
7answers
99k views

OS X Yosemite Xcode update stuck on 'Waiting'

I recently downloaded Yosemite, and I'm trying to update my Xcode. I hit 'Update' in the App Store, and but it's been stuck at 'Waiting' for the past 30 minutes. What can I do to fix this?
79
votes
6answers
193k views

How do I install GCC via Homebrew?

I am using Homebrew exclusively (i.e. I don’t, and won’t, use MacPorts or Fink). I also want to keep manual installations to a bare minimum.1 … But how can I install GCC? First of all, I’ve of ...
67
votes
23answers
93k views

Xcode failed to download. Use the Purchases page to try again

Xcode is showing in the Mac App Store, ready to be updated. Clicking update results in an error: Xcode failed to download. Use the Purchases page to try again. Steps taken that didn't help: ...
63
votes
3answers
154k views

How do I transfer my iOS developer profile to another computer?

I got a new MBP and would like to transfer my certificates and profiles from my old computer. According to TN 2250, under "Transferring Your Identities," I need to transfer three sets of items: all ...
60
votes
8answers
42k views

Can I delete unnecessary device simulators of Xcode?

I found that Xcode on my laptop consumes much of its storage, so I am trying to delete unnecessary files in Xcode. There are four directories under Application/Xcode.app/Contents/Developer/Platforms/....
44
votes
4answers
38k views

Where did Icon Composer go from Xcode?

I can't seem to find Icon Composer on the Xcode versions at run on Mountain Lion. Where is it? Has it been taken out? How to get it back?
43
votes
7answers
30k views

How can I install the Command Line Tools completely from the command line?

I'd like to script the installation of the the Xcode Command Line Tools. On Mavericks, xcode-select --install will open a dialog prompting the user to install, but I'd like to trigger the install ...
42
votes
4answers
10k views

Xcode doesn't show up in spotlight results, neither search results

I haven't noticed exactly when it happened but previously I was always using spotlight to run Xcode. Now if i'm typing "Xcode" in it, only folders containing this name show up, or some xcode projects, ...
41
votes
5answers
71k views

How to accept Xcode license?

I want to install a C based toolbox on MATLAB software. To do this, I need to install the GCC compiler. I think I have done that already. And I have Xcode too. To setup the toolbox, I need to write ...
39
votes
2answers
23k views

Reduce size of the Xcode application

Is there anyway to reduce the disk space used to store the Xcode application? I only downloaded Xcode so that I could compile C and C++, so if possible I would like it to take up much less than the 9....
37
votes
3answers
51k views

Can't update Xcode

I am aware there are more questions with the same title, but I couldn't find any other post with this specific case. I have Xcode 7.0 and I want to update to the last version (7.3). But it doesn't ...
36
votes
3answers
35k views

Was the FileMerge application removed from OS X 10.7.3?

I just updated to 10.7.3 and can no longer find the FileMerge application, which is part of the Xcode developer tools package. Did apple remove this in 10.7.3? I've checked in my developer directory, ...
35
votes
5answers
164k views

How can I compile and run C in Xcode?

Our teacher is teaching use some Data Structures algorithms that are being implemented in C. He uses Visual Studio in class, but I want to be able to run simple programs that we write in Xcode. I've ...
33
votes
4answers
31k views

Can I code using Swift on Mavericks?

Is is possible to code using Swift on OS X Mavericks? I found the manual on iBooks but that's as far as I can get right now.
32
votes
3answers
8k views

XCode 6 on Yosemite crashing in fullscreen mode when build & running app on device

Xcode 6 on Yosemite crashes everytime when pressing Build&Run on Device. Current window disappears and Start screen appears. Anyone else experiencing this? UPDATE: As it seems Xcode is not ...
30
votes
3answers
212k views

Enable “Developer” inside the “Settings” app on iOS

Before Xcode 6 one could go to the Xcode Organizer window. Tap on the Devices tab. Select the connected device and click the "Use for Development" button. See here. However with Xcode 6 there are no ...
28
votes
6answers
114k views

iOS Untrusted Developer error when testing app

I am trying to make my own iOS applications by using Xcode 7 and iOS 9.0. I have successfully been able to install the app on my own iPod by following Xcode 7 develop for iOS without developer account ...
27
votes
4answers
83k views

Where can I download Filemerge - the app for comparing two tools and merging them?

I would like to install Filemerge, but can't find where to go to download it. Where can I download it?
27
votes
5answers
123k views

How to set gcc 4.8 as default gcc compiler

I recently installed gcc 4.8 using brew on OSX 10.7.5 (Lion). I can now compile using gcc 4.8 by using g++-4.8 some_file.c or using the default gcc 4.2 by using g++ some_file.c I want to use gcc 4....
27
votes
10answers
67k views

Can't start Xcode - stuck on installing state

I was trying to upgrade Xcode because it didn't let me upload to apps to iTunes Connect. Now it's stuck in installing state (few hours) and doesn't start: Xcode is being updated Xcode can not be ...
27
votes
7answers
67k views

Installing Xcode via command line

I am a Linux user and have never used OSX before. Someone asked me for help with installing some software on an OSX "Lion" server. I asked him to give me an SSH shell, assuming that would be ...
26
votes
4answers
57k views

Installing Xcode Command Line Tools

I performed a fresh install of macOS Mojave 10.14. Immediately after that I installed Xcode Version 10.0 (10A255) from the Mac App Store. Now, I wish to install Homebrew which requires Xcode Command ...
26
votes
4answers
6k views

Git Config Error in Xcode

When I opened xcode and tried to make a macosx app, this weird message came up. Is this a glitch or a virus, as Apple wouldn't say something like this. It does not look like a system message.
26
votes
2answers
15k views

Xcode.app gets scanned by socketfilterfw (OS X Firewall) at every launch

Situation: When I launch Xcode, socketfilterfw, OS X's application based firewall, starts using a lot of CPU. After some research I narrowed it down to this: socketfilterfw reads all the files in ...
25
votes
8answers
86k views

iPhone 7 won't charge from my MacBook Pro [duplicate]

My iPhone 7 which I recently bought doesn't charge with my MacBook Pro Retina 2015. It always shows for one second that it recharges but then something like lost connection and then again. and goes on ...
25
votes
3answers
39k views

Xcode error The maximum number of apps for free development profiles has been reached

I am under the age of 18 so I can't get into the Apple Developer program. I am forced to just use my free developer account and I have been for the past year. Today for some reason I am getting this ...
25
votes
4answers
63k views

Xcode 7 develop for iOS without developer account

I have updated my iPod to iOS 9 and want to make my own apps for it, however, I do not want to pay for a developer account because of how much it costs. I read that in Xcode 7 that you can develop ...
25
votes
3answers
28k views

Determine xcode command line tools version

How do I determine what version(s) of xcode command line tools I have? I tried doing $ gcc --version Configured with: --prefix=/Library/Developer/CommandLineTools/usr --with-gxx-include-dir=/usr/...
24
votes
7answers
9k views

Switch between full-screen windows of the same application in Lion

Is there a keyboard shortcut in Lion for navigating through my open full screen Xcode projects? ⌘~ is not working.
22
votes
6answers
6k views

Save file to hidden directory with standard OS X save dialog

Using TextEdit, when I try to save example.txt to some hidden directory, for example ~/Library, I can't because save panel doesn't show them. The only way I found was to save file to non-hidden ...
22
votes
2answers
13k views

How to compile mod_wsgi, mod_fastcgi, etc on Mountain Lion (Mavericks) by fixing `apxs:Error: Command failed with rc=65536`?

I've updated to OS X Mountain Lion. Update has removed all of my python and apache modules including mod_wsgi. Now I'm trying to recompile mod_wsgi (it compiled without problems on Lion). I use ...
22
votes
3answers
9k views

Why is /usr/include missing? I have Xcode and Command Line Tools installed (Mojave)

I just upgraded to Mojave from High Sierra and installed Xcode plus its command line tools and additional tools. Nothing will compile from the terminal, everything says /usr/include is missing! I ...
22
votes
1answer
121k views

Download older version of Xcode?

I upgraded to Xcode 8 and now I really regret it. I'm trying to download Xcode 7.3.1 here: https://developer.apple.com/download/more/ It is a 4.8 GB file. After three attempts - the download ...
21
votes
5answers
4k views

Xcode 8.2.1 crashes on opening project with array index out of bounds

I just upgraded to Xcode 8.2.1 and Xcode crashes every time I open my project with the following traceback. I verified that an older version of Xcode (8.1) can still open the project file. Any help ...
21
votes
3answers
30k views

Is it safe to erase ~Library/Developer?

In the user Library, there is a Developer folder with about 3.2 GB of space (2.8GB from DocSets and the rest mainly from Xcode/iOS DeviceSupport). I had Xcode installed, I presume these are from that? ...
20
votes
7answers
50k views

Xcode update would not work, and now won't leave the App Store update queue

Hello I am trying to remove this update. It was not working and I ended up downloading the Xcode update directly from apple.developer, it gave me no problem. This has been my spring cleaning project ...
17
votes
5answers
17k views

git is broken: “Agreeing to the Xcode/iOS license requires admin privileges, please re-run as root via sudo”

My install of git seems to be broken, and it looks like somehow my Developer Tools are broken. When I try to run git, I get this error. This happens both with /usr/bin/git and /opt/local/bin/git (...
17
votes
3answers
2k views

How do WWDC presenters paste text during demos?

During demos in the WWDC videos, the presenter will often paste code into Xcode to save having to type it in. How are they pasting each different snippet without switching to another app to copy it?
17
votes
4answers
16k views

Is it safe to remove the “Install Xcode” application after installation?

Is it safe to remove the Xcode 4 installation program from my Applications folder after I installed Xcode? If there is a free update, will I still get it, or do I have to buy it again? The installer ...
17
votes
3answers
4k views

How to undo pressing Don't Trust on Apple Watch

I want to test out my watch app on Xcode. So I plugged my iPhone paired with an Apple Watch Series 2 into my computer. The iPhone displayed a dialog saying whether to trust this computer or not, I ...
16
votes
5answers
34k views

Xcode appears to be installed but xcodebuild is unusable

I was had to reinstall Xcode 4 and now I'm getting message Xcode appears to be installed but xcodebuild is unusable; and xcodebuild exists but failed to execute all the time when I try to install ...
16
votes
4answers
22k views

How do I resize the iOS simulator?

I know that there's Window>Scale>100/75/50% but the scale of the retina iPad simulator is still too big for my screen to be able to test anything. Is there a way I can scale the size of the iOS ...
16
votes
3answers
10k views

In Xcode 4.3, where do I put the additional tools?

I'm confused. I just downloaded 6 supplementary packages using Xcode > Open Developer Tool > More Developer Tools... and I thought the .dmg files would contain .pkg files, but instead they ...
16
votes
2answers
1k views

Can't enable spell checker option in Xcode

Option is greyed out and I cannot enable spell checking in Xcode
15
votes
7answers
46k views

Where can I download Xcode (n) Beta?

I want to start developing in Swift. I already own an apple developer account, yet am struggling to download Xcode (n) beta. How can I do this? Thank you in advance.
15
votes
1answer
13k views

Reopen Swift 2.0 migration tool in Xcode 7

I just opened a Swift project on the new Xcode 7. I didn't really look on what button I clicked and closed the migration tools without migrating anything. Any idea how I could reopen it?
15
votes
1answer
7k views

XCode 5 - Remove offline documentation?

Is it possible to remove all/most offline documentation from XCode 5, to free up disk space? I would assume it is possible to make XCode (like Visual Studio in Windows) access documentation online, ...