Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Build fails with "Command PrecompileSwiftBridgingHeader failed with a nonzero exit code"

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

like image 324
Krunal Nagvadia Avatar asked Nov 06 '18 10:11

Krunal Nagvadia


3 Answers

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

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

See screen here

like image 192
Taras Avatar answered Oct 04 '22 17:10

Taras


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.

like image 22
MRizwan33 Avatar answered Oct 04 '22 17:10

MRizwan33


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

like image 35
maxonflic Avatar answered Oct 04 '22 18:10

maxonflic