简体   繁体   中英

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

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

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

See screen here

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.

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

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.

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'

它有时可能来自您必须更新的吊销证书:|

"

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM