Skip to content

Failed build of apple-ios example #11753

Open
Open
@boffipaolo

Description

@boffipaolo

🐛 Describe the bug

I have an issue when trying building the apple-ios example app using XCode. I am working on a MacBook Pro 2021 with M1 processor.

When opening the XCode project I have the following two issues in LLaMaRunner:

Undefined symbol: executorch::extension::llm::load_tokenizer(std::__1::basic_string<char, std::__1::char_traits<char>, std::1::allocator<char>> const&, std::1::unique_ptr<std::1::vector<std::1::basic_string<char, std::__1::char_traits<char>, std::1::allocator<char>>, std::1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::1::allocator<char>>>>, std::1::default_delete<std::1::vector<std::1::basic_string<char, std::__1::char_traits<char>, std::1::allocator<char>>, std::1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::1::allocator<char>>>>>>, std::1::optional<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>>, unsigned long, unsigned long)
Undefined symbol: executorch::extension::llm::create_text_llm_runner(std::__1::basic_string<char, std::__1::char_traits<char>, std::1::allocator<char>> const&, std::1::unique_ptr<tokenizers::Tokenizer, std::__1::default_delete<tokenizers::Tokenizer>>, std::1::optional<std::1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const>, float)

Versions

PyTorch version: 2.8.0.dev20250601
Is debug build: False
CUDA used to build PyTorch: None
ROCM used to build PyTorch: N/A

OS: macOS 15.5 (arm64)
GCC version: Could not collect
Clang version: 17.0.0 (clang-1700.0.13.5)
CMake version: version 3.31.6
Libc version: N/A

Python version: 3.12.11 (main, Jun  3 2025, 15:41:47) [Clang 17.0.0 (clang-1700.0.13.3)] (64-bit runtime)
Python platform: macOS-15.5-arm64-arm-64bit
Is CUDA available: False
CUDA runtime version: No CUDA
CUDA_MODULE_LOADING set to: N/A
GPU models and configuration: No CUDA
Nvidia driver version: No CUDA
cuDNN version: No CUDA
HIP runtime version: N/A
MIOpen runtime version: N/A
Is XNNPACK available: True

CPU:
Apple M1 Pro

Versions of relevant libraries:
[pip3] executorch==0.7.0a0+56392aa
[pip3] numpy==2.3.0
[pip3] pytorch_tokenizers==0.1.0
[pip3] torch==2.8.0.dev20250601
[pip3] torchao==0.12.0+gitbc68b11f
[pip3] torchaudio==2.8.0.dev20250601
[pip3] torchdata==0.11.0
[pip3] torchsr==1.0.4
[pip3] torchtune==0.6.1
[pip3] torchvision==0.23.0.dev20250601
[conda] Could not collect

cc @shoumikhin @cbilgin @larryliu0820 @mergennachin @cccclai @helunwencser @jackzhxng

Metadata

Metadata

Labels

module: iosIssues related to iOS code, build, and executionmodule: llmIssues related to LLM examples and apps, and to the extensions/llm/ codetriagedThis issue has been looked at a team member, and triaged and prioritized into an appropriate module

Type

Projects

Status

To triage

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions