Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linker Error: clang: error: linker command failed with exit code 1 in Xcode when building iOS project on arm64 simulator #798

Open
milushevmus opened this issue Dec 24, 2024 · 1 comment

Comments

@milushevmus
Copy link

milushevmus commented Dec 24, 2024

We are encountering an issue when building iOS project on arm64 simulator:
Undefined symbols for architecture arm64:
"OBJC_CLASS$_ResourcesModuleMRPlurals", referenced from:
in DesignSystem.o
"OBJC_CLASS$_ResourcesModuleMRStrings", referenced from:
in DesignSystem.o
"OBJC_CLASS$_ResourcesModuleResources", referenced from:
in DesignSystem.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

The library is added via xcframework and SPM
kotlin version 1.9.10, gradle version=8.1.4, moko version 0.24.4

@Alex009
Copy link
Member

Alex009 commented Feb 2, 2025

looks like you have some DesignSystem target that depends on kotlin multipaltform framework but not links with this framework.
i don't think that this issue related to library. i think you will see errors about ANY classes from multiplatform that you use in DesignSystem and you should fix DesignSystem target linking configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants