UE4 insists XCode is not installed

Apologies, but this is my first post on this forum so please bear with me!

I have a fresh installation of UE 4.5.1 and Xcode 6.1 on Mac OS X 10.10.

I’ve created a vanilla project based on TappyChicken and attempted to launch it on my iPhone 4S device through the launch options in the editor.

Whilst my device is listed in the device manager, the only options I’m given when clicking the Launch drop down button are “iOS Support” which insists I don’t have XCode installed?

Based off of this post: Why can’t UE4 detect Xcode on my Mac? it would appear that the check for Xcode is pretty straight forward and I can confirm that Xcode is indeed located in /Applications/Xcode.app

I’ve come to a bit of a sudden halt here, so any help would be appreciated!

PS I’ve place my (developer) .mobileprovision file in: /Users/Shared/UnrealEngine/4.5/Engine/Build/IOS/ and renamed it to: UE4Game.mobileprovision and have the necessary developer certificates in my keychain.

Cheers!

I’m not sure what’s going on with this one. If Xcode is in /Applications then it should find it. Let me see if I can reproduce this as I just recently updated to OS X 10.10.

-Pete

Thanks Pete! If it’s any help, I upgraded to 10.10 rather than a fresh installation - hopefully that wouldn’t have upset anything?

Have you opened Xcode & allowed it to install any necessary additional components? You’ll need to do this again if you have updated from 10.9 to 10.10 as the update process erases the components Xcode installs.

I’m pretty sure I did, maybe I didn’t give it long enough (our network has been incredibly slow recently). I’m on leave until Monday now, so will have a look at it first thing Monday morning and get back to you. Thanks for the suggestion :slight_smile:

If you didn’t when you first launch Xcode it will pop-up a little dialog asking for permission to install additional components. If it launches straight into the project selector then they are already installed.

Cool. I’ll double check this on Monday, I might even try a fresh installation. I’ll see about properly clearing any trace of Xcode from my Mac and try again if I don’t get the pop-up and UE4 still can’t find Xcode.

You could also check where xcode-select thinks the default Xcode installation resides. In Terminal.app:
xcode-select -p

This should be: /Applications/Xcode.app/Contents/Developer

Removing Xcode should just be case of deleting the Xcode.app bundle, removing the other components is unnecessary & unwise. You can always forcibly reinstall the command-line tools from the downloadable installers (or apparently even xcode-select).

The last thing to check would be the Xcode permissions - maybe during the update the permissions or owner have changed so that UE4 can’t access Xcode. Disk Utility.app can repair disk permissions.

That’s brilliant thanks! I’ll give this all a try - it all sounds promising! Fingers crossed :slight_smile:

Ok; I’ve run xcode-select -p from the command line which is definitely reporting back: /Applications/Xcode.app/Contents/Developer.

Xcode has installed additional components. I’ve even manually downloaded the Xcode command-line utils for 10.10 from the Apple Developer portal.

I’ve also used the Disk Utility app to repair permissions of which there were some issues, but nothing in the output seemed to suggest they were Xcode related.

Am really stumped now, as I really thought it may have been a permissions issue.

Short of doing a complete wipe of my system and a fresh install of everything, I’m not sure what else to try?

Can I supply you with any log output?

Again, thanks for any help you can give me :slight_smile:

Assuming that you are an admin user & that you’ve tried reinstalling Xcode, I’m at a complete loss. You could try using Finder’s Get Info > Permissions panel to ensure that your user account has access to the Xcode app & all its contents (or use chmod & chown from the Terminal if you are sufficiently familiar with them). Until/unless we somehow stumble upon a way of reproducing this I’m stumped.

I had the same issue with a project i was porting from Windows to OSX. Reinstalling XCode or Unreal did not work, and a newly created template project would work fine. My solution ended up editing the .uproject text file and removing everything except the main fields at the top and the “Modules” section. Specifically i removed the plugins section and the one that was listing the target platforms, even if it included MacNoEditor. Everything went smooth after that.

We had the exact same issue while developing a project on Windows and Mac, but unfortunately editing the .uproject file like anticto suggested in the answer above didn’t work for us. After a bit of trial and error we found out that the issue was that the DefaultEditorPerProjectUserSettings.ini config file got checked-in under source control and contained the following settings which apparently were the source of the issue:

[/Script/SourceCodeAccess.SourceCodeAccessSettings]
PreferredAccessor=VisualStudio2017

Deleting the file and purging the config cache in /Users/[user]/Library/Application Support/Epic/UnrealEngine/4.15/Saved did the trick for us.

1 Like

That worked! Thank you!!!

In case anybody else runs into this problem, with XCode 10 Beta, I had to place it in Applications and rename it just XCode and everything is working fine now.

Purging the /Saved folder worked for me. Thanks for the tip.

i just renamed Xcode 10.1 into Xcode and it’s worked

If solutions above did not work maybe open your .uproject with text editor and change:

“Name”: “XCodeSourceCodeAccess”,
“Enabled”: false

to

“Name”: “XCodeSourceCodeAccess”,
“Enabled”: true