Skip to content

macOS app Xcode project fails after pkl-swift #30

Open
@arkavo-com

Description

@arkavo-com

Error:

Undefined symbols for architecture arm64:
  "_objc_addLoadImageFunc", referenced from:
      getMachHeaders()::$_0::operator()(void*) const in Discovery.o
ld: symbol(s) not found for architecture arm64
clang++: error: linker command failed with exit code 1 (use -v to see invocation)

macOS 15.1
M4
Xcode 16.1

Works when used in a swift app, fails in Xcode.

To reproduce:

  • Create macOS app in Xcode
  • add https://github.com/apple/pkl-swift as Package Dependencies
  • build it

Note this is not iOS, it is macOS

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions