Skip to content

BuildFrameworks generates frameworks that cannot be signed #455

Closed
@anaisbetts

Description

@anaisbetts

Describe your environment

  • Xcode version: 9.1.0
  • Firebase SDK version: master
  • Firebase Component: n/a
  • Component version: n/a

Describe the problem

Steps to reproduce:

BuildFrameworks's build.swift generates Framework folders that have a number of problems in practice:

  • The naming convention is not usable out-of-the-box, the linker will go looking for FirebaseCore_macOS/FirebaseCore_macOS while the actual binary is FirebaseCore/FirebaseCore. This is perhaps a documentation issue, but the error that ld throws is very broad and Googling will lead you down many incorrect paths

  • The generated Frameworks are manually put-together via build.swift and don't have a Versions folder. clang and ld don't seem to mind this, but codesign on Xcode 9.x seems to barf on these binaries, trying to find a Versions/A folder

  • codesign relies on Resources/Info.plist to exist and be at least somewhat correctly filled out, or it doesn't know which actual file to sign

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions