Crash when I use Bridging Headers in fast frames

I am doing a quick map and I want to use the old c object classes. To do this, I use the bridge header method, but when I try to build, this error appears:

<unknown>:0: error: using bridging headers with framework targets is unsupported 

I added my {PROJECT} -Bridging-Header.h to the Objective-C Bridging header in the Swift compiler - code generation

How can i solve this?

I did in applications and ran Ok, but in this structure no

thanks

+6
source share
2 answers

iHart is true

To do this, follow these steps: 1. delete the bridge header and the entire associated file., 2. Clear the assembly / solution. Cmd + Shift + k like., 3. Create a new Objective-C file to merge the header files.,.

But I also needed to add all the missing header files to the umbrella header. Also make sure that these files are marked as public. In Xcode, you can add them to a public section under "Build Phases" → "Title".

+1
source

To do this, follow these steps:

  • Remove the bridge header and all associated file.
  • Clear assembly. Cmd + Shift + k like.
  • Create a new Objective-C file to create the header header file.
  • Now add your file to other users.

Hope this work is for you because we solved exactly the same error this solution.

-1
source

Source: https://habr.com/ru/post/977087/


All Articles