x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Xcode "Clean Project" causes Shared UE4Editor.app binary to be deleted.

Reproduce:

  1. Create a C++ project.

  2. Generate Xcode project.

  3. Close UE4 editor.

  4. Open Xcode project.

  5. Build and run for the project target, not UE4 target. Observe that UE4 editor for the current project runs.

  6. Stop.

  7. Clean the project via Xcode's Product > Clean menu option.

  8. Try to build again. Observe build failure with a message saying:

clang: error: no such file or directory: '/Users/Shared/UnrealEngine/4.10/Engine/Binaries/Mac/UE4Editor.app/Contents/MacOS/UE4Editor-Core.dylib' clang: error: no such file or directory: '/Users/Shared/UnrealEngine/4.10/Engine/Binaries/Mac/UE4Editor.app/Contents/MacOS/UE4Editor-CoreUObject.dylib' clang: error: no such file or directory: '/Users/Shared/UnrealEngine/4.10/Engine/Binaries/Mac/UE4Editor.app/Contents/MacOS/UE4Editor-Engine.dylib' clang: error: no such file or directory: '/Users/Shared/UnrealEngine/4.10/Engine/Binaries/Mac/UE4Editor.app/Contents/MacOS/UE4Editor-InputCore.dylib' ERROR: UBT ERROR: Failed to produce item: /Users/saim/Projects/Unreal/Travelers/Binaries/Mac/UE4Editor-${PROJECT_NAME}.dylib

If you check the file system, you can find that the file is actually missing.

You can reinstall the missing UE4Editor.app via Epic Launcher > Select the engine > Verify.

After "Verify", build works again.

I think Xcode clean is removing the shared binary mistakenly.

Product Version: UE 4.10
Tags:
more ▼

asked Dec 06 '15 at 10:07 AM in Bug Reports

mindblender gravatar image

mindblender
81 2 9 14

tianqi gravatar image tianqi May 20 '16 at 05:40 PM

The same problem in UE 4.11.2

(comments are locked)
10|2000 characters needed characters left

3 answers: sort voted first

This still happens in UE 4.15.1 and Xcode 8.3.

I updated to Xcode 8.3, which means my PCH files were compiled with a different branch of the clang compiler. The fix for that is to Clean the project. While this fixed the PCH compiler mismatch issue, it caused several dylib files to be deleted.

If you Verify the Engine in the Epic Game Launcher, it fixes the problem.

This really should get fixed, or at least have a warning come up after cleaning the project from Xcode.

more ▼

answered Mar 30 '17 at 08:07 PM

JonathanADaley gravatar image

JonathanADaley
469 26 33 64

Doug Wilson gravatar image Doug Wilson ♦♦ STAFF Mar 31 '17 at 11:45 AM

Hey Jonathan-

I've added a private note to the original report to indicate that this is still occurring. As mentioned in the report (https://issues.unrealengine.com/issue/UE-23624) you can work around this by choosing the Verify option for the affected engine version in the Launcher.

JonathanADaley gravatar image JonathanADaley Mar 31 '17 at 02:16 PM

Thanks for updating the original report.

As a side note, Xcode 8.3 is causing some issues; see https://answers.unrealengine.com/questions/583010/error-in-unrealmathneonh-when-packaging-for-ios.html

schubboy gravatar image schubboy Jul 17 '17 at 02:36 PM

This still happens in the pre-release (dev-ar-kit) for 4.17 BTW. Compiling for in XCode 11 beta 3, I ran clean on a project and binaries for UE4Editor all disappeared.

Doug Wilson gravatar image Doug Wilson ♦♦ STAFF Jul 17 '17 at 03:26 PM

Currently our resources are dedicated elsewhere and UE-23624 is not a priority item for us to work on. We don't have a timeframe for when this may be addressed. Please keep in mind that Verifying the engine version from the launcher should restore any missing files and allow the project to open.

schubboy gravatar image schubboy Jul 18 '17 at 04:44 PM

which is fine for most cases, but for the arkit branch, the launcher is not capable of doing that, unless I'm missing something (certainly possible).

(comments are locked)
10|2000 characters needed characters left

any workaround?

more ▼

answered May 25 '16 at 05:08 PM

Woohoou gravatar image

Woohoou
6 1 1

mindblender gravatar image mindblender May 25 '16 at 05:28 PM

You can make a workaround. I don't see this as a permanent one though.

Basically, you can add script target as a dependency to your main project, which will detect "Clean" action and temporarily move the stuff you want to prevent from deletion. And, also perform the reverse operation after "Clean" build finishes.

For more info on Xcode hookup:

http://stackoverflow.com/questions/1903890/run-script-during-clean-clean-all-in-xcode

This definitely needs to be fixed in unreal build pipeline. But, it think the script should prevent this specific issue.

Doug Wilson gravatar image Doug Wilson ♦♦ STAFF May 25 '16 at 05:54 PM

Hey Woohoou-

As mindblender mentioned, if you run the Verify option from the Launcher for the engine version you're using, it should regenerate the XCode files and allow the engine to be used again.

Woohoou gravatar image Woohoou May 25 '16 at 09:03 PM

Verifying was enough!, Thank you guys.

(comments are locked)
10|2000 characters needed characters left

Hey mindblender-

This is a known issue that has been reported and is under investigation (UE-23624).

Cheers

Doug Wilson

more ▼

answered Dec 07 '15 at 01:51 PM

Doug Wilson gravatar image

Doug Wilson ♦♦ STAFF
50k 776 24 556

norlin gravatar image norlin Jan 25 '17 at 06:04 AM

https://issues.unrealengine.com/issue/UE-23624

Why this issue is backlogged? I've just faced with it in UE4.14.3 and just accidentally tried "verify" in the Epic Launcher.

At least, you should fix the Epic Launcher to show some error message and suggest to try Verify" option!

Doug Wilson gravatar image Doug Wilson ♦♦ STAFF Jan 25 '17 at 05:24 PM

Currently our resources are dedicated elsewhere and UE-23624 is not a priority item for us to work on. We don't have a timeframe for when this may be addressed. Please keep in mind that with source code access, a programmer on your project can implement your own solution, and you are welcome to share that result with Epic for possible integration.

(comments are locked)
10|2000 characters needed characters left
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question