Skip to content

Capacitor app build: link command failed with exit code 1 #188

@steinerjakob

Description

@steinerjakob

Hi,
I'm currently trying to build my Capacitor app for iOS. On macOS with xcode the app builds just fine and it can be tested on a device.

I do use the latest xTool and XCode 26

With xtool I do get the following error:

Planning...
[1/1] Planning build
Building for debugging...
error: link command failed with exit code 1 (use -v to see invocation)
ld64.lld: error: undefined symbol: main
>>> referenced by the entry point

ld64.lld: warning: auto-linked framework not found for -framework UIUtilities
ld64.lld: warning: auto-linked framework not found for -framework UIUtilities
ld64.lld: warning: auto-linked framework not found for -framework UIUtilities
ld64.lld: warning: auto-linked framework not found for -framework UIUtilities
ld64.lld: warning: auto-linked framework not found for -framework UIUtilities
ld64.lld: warning: auto-linked framework not found for -framework UIUtilities
ld64.lld: warning: auto-linked framework not found for -framework UIUtilities
ld64.lld: warning: auto-linked framework not found for -framework UIUtilities
ld64.lld: warning: auto-linked framework not found for -framework UIUtilities
ld64.lld: warning: auto-linked framework not found for -framework UIUtilities
ld64.lld: warning: auto-linked framework not found for -framework UIUtilities
ld64.lld: warning: auto-linked framework not found for -framework UIUtilities
ld64.lld: warning: auto-linked framework not found for -framework UIUtilities
ld64.lld: warning: auto-linked framework not found for -framework UIUtilities
ld64.lld: warning: auto-linked framework not found for -framework UIUtilities
ld64.lld: warning: auto-linked framework not found for -framework UIUtilities
ld64.lld: warning: auto-linked framework not found for -framework UIUtilities
ld64.lld: warning: auto-linked framework not found for -framework UIUtilities
ld64.lld: warning: auto-linked framework not found for -framework UIUtilities
clang: error: linker command failed with exit code 1 (use -v to see invocation)
[3/4] Linking CapApp-SPM-App
Error: exit(1)

The app is public on github: https://github.com/steinerjakob/FireYak/tree/feature/ios-spm-support

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions