Skip to content

Building for iPhone (iOS) error: xpc/xpc.h not found in IOSurfaceAPI when including <Metal/Metal.h> in ggml-metal.m #3106

Closed
@l3utterfly

Description

@l3utterfly

Getting the error xpc/xpc.h not found when building targeting iOS.

I followed the fix in this stackoverflow answer: https://stackoverflow.com/questions/24013814/how-to-resolve-xpc-h-not-found-error

I downloaded the necessary headers from: https://github.com/realthunder/mac-headers, then copied the xpc directory in there into the root folder of llama.cpp.

After this fix, iOS builds work.

Is this something wrong with my setup in particular? Or is adding the xpc headers is necessary? If so, should I do a pull request adding the headers?

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