Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

257
Vistas
Xcode framework: Swift Generated Interface not in DerivedSources folder

Xcode 10, iOS 12 I have a project, that has 2 targets: an app and a framework. I use both Swift and Objective-C. I'm trying to reference Swift classes from Objective-C. I've set the SWIFT_OBJC_INTERFACE_HEADER_NAME property to "SwiftInterface.h" in the project, and when the target is "app", all is working well, I can include and use Swift classes. With the same settings, the "framework" doesn't compile, because it can't find the generated header.

What I have investigated:

  • The "app" generates the header file to {TempFolder}/{Project}.build/Debug-iphoneos/MyApp.build/DerivedSources/SwiftInterface.h

  • The "framework" has the corresponding folder, but the header file is missing.

I've read, that this might be because of Swift compiler errors, but it is not, since the file is actually generated in the MyFramework.framework/Headers folder, where the public headers are.

Now, if I copy this header file to the DerivedSources folder manually, the framework seems to compile normally.

So the question is: How can I make Xcode generate the swift bridging header to the right place, and how to remove it from the public headers folder.

Clean, Rebuild, DerivedData-Nuke didn't help.

over 4 years ago · Santiago Trujillo
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda