Xcode 14.3 Failed to emit precompiled header 'Runner/Runner-Bridging-Header.h'

5.1k Views Asked by At

enter image description here

I fail to emit precompiled header issue when I try to build an IOS app through Xcode. Currently, my Xcode (14.3) and the app I am running is in Flutter (3.7.10). Can anyone please provide me with a solution?

1

There are 1 best solutions below

2
Karan Mehta On

Go to -> iOS/Pods -> Target Support Files -> Pods-Runner -> Pods-Runner-frameworks.sh

and then add

-f

in

source="$(readlink "${source}")"

like this

source="$(readlink -f "${source}")"

then delete iOS/Podfile.lock file,

also delete derived data,

and then run these commands one by one in flutter/iOS folder:

  • flutter clean
  • sudo gem uninstall cocoapods
  • pod deintegrate
  • rm -rf Pods
  • pod cache clean --all
  • pod setup
  • pod install --repo-update

your problem should be solved now !