Xcode 10 Failed to emit precompiled header for bridging header Xcode 10 Failed to emit precompiled header for bridging header xcode xcode

Xcode 10 Failed to emit precompiled header for bridging header


Had same issue that I've tried to fix for hours.Ended up with this solution:

  1. select scheme, from appeared menu choose Manage Schemes...
  2. from popped up list of schemes find [Your Project Name] scheme, select it and delete by pressing - button in the bottom left corner of list
  3. Press Autocreate Schemes Now button in the top right corner

See screenshots below:

enter image description here

enter image description here


I'm currently facing the exact same problem (with other pod headers missing) ; tried to delete all pod folder, clear cache install again, update pods... nothing works.

Also tried to do as told in xconfig file : FRAMEWORK_SEARCH_PATHS = $(inherited) $(PROJECT_DIR) "$(SRCROOT)" "$(SRCROOT)/Framework", but still blocked.

This bridging-header error happens when using the "legacy build system", since the new build system given w/ Xcode10 brings many more issues for older projects. Dunno if this is relevant but joining here current build phases of my target.

Edit : Eventually I found what my problem was, it may be the same for some.

In the workspace settings I changed the build system to the Legacy one. However, I also thought it was a good idea to change the Build Location to Legacy ; That was what caused my issue.

How I fixed :

a) in the Workspace Settings, let build system on 'Legacy build system'

b) click on Advanced, then change build location to Xcode Default

c) then my build would still fail because of the outdated library libstdc++ ; so i changed it with the libc++ library in my 'common.xconfig' file : CLANG_CXX_LIBRARY = libc++.

Everything works fine for me now. Hope this helps others.


Could you search for JPSVolumeButtonHandler/JPSVolumeButtonHandler.h in ...

  1. finder and make sure the file exists.
  2. make sure the file is included in your project.
  3. If JPSVolumeButtonHandler is included in the bridging-header.h but JPSVolumeButtonHandler is somehow missing in source, you could get a emit precompiled error.