25

I just insert the NVActivityIndicatorView library and then I remove this framework in to trash. When I build the project it's showing following image.

Command PrecompileSwiftBridgingHeader failed with a nonzero exit code

Krunal Nagvadia
  • 1,083
  • 2
  • 12
  • 33

6 Answers6

41

Check your TargetName-Bridging-Header.h location in project. Open

Target -> Built Settings -> Objective-C Bridging Header

See screen here

auspicious99
  • 3,902
  • 1
  • 44
  • 58
Taras
  • 1,485
  • 1
  • 16
  • 31
33

In my case.

  1. Go to Build Settings and search for Objective-C Bridging Header and double click to its value.
  2. clear the path given in it. (if any)
  3. Now drag your Bridging Header file and drop it to Objective-C Bridging Header value view.
  4. Finally clean your project and build. (Its Done).

Note: Collective, just change the path of Bridging Header File in your Build Settings.

Happy Coding.

MRizwan33
  • 2,723
  • 6
  • 31
  • 42
1

check your TargetName-Bridging-Header.h location in project. This file should be in root folder

maxonflic
  • 64
  • 6
  • It doesn't _need_ to be at the root if you follow Taras's answer below about specifying its location in your build settings – marcshilling Sep 16 '21 at 17:29
1

If you are working with React Native, delete you bridging header file and then create a swift file under your Target. XCode will automatically ask you if you want to create bridging file.

mcnk
  • 1,690
  • 3
  • 20
  • 29
0

I had same problem on a React Native project. Make sure all values of the IPHONEOS_DEPLOYMENT_TARGET: XX.X inside project.pbxproj is same as in Podfile platform :ios, 'XX.X'

enestatli
  • 535
  • 1
  • 9
  • 19
0

It sometimes can be from a revoked certificate which you have to update :|

monchisan
  • 590
  • 8
  • 24