Home > OS >  Xcode 13 Swift project - Archive build giving me error on Objective C Bridge
Xcode 13 Swift project - Archive build giving me error on Objective C Bridge

Time:01-31

I have a Swift project running on Xcode 13. The project builds perfect without any error, but when I try to Archive then I get error that is related to the Objective-c Bridge.

enter image description here

I have the my .h bridge file created correctly. That's why when I build it works perfect. This is only happening when I want to Archive for a publish.

This is the content of my .h bridge file:

#ifndef TestApp_TestApp_Bridging_Header_h
#define TestApp_TestApp_Bridging_Header_h

#import "ECSlidingViewController.h"
#import "DSLCalendarView.h"
#import "UINavigationController Orientation.h"
#endif

I also have under my Target - Build Settings, the reference to the Bridge file:

enter image description here

Any clue what can I could try. I need this to get ready for publish.

CodePudding user response:

You also need to set the bridging header path in the release section as well.

  •  Tags:  
  • Related