pytorch / pytorch/executorch

No such module 'executorch'

Open
#12,538 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

module: ios need-user-input
Dominant language
Python
Stars
5k
Forks
1.2k
Avg merge
2d 10h
Merged PRs (30d)
581

Description

🐛 Describe the bug

Receiving fatal error when trying to add package dependency in Xcode 16.2.
Usual way: File->Add Package Dependicies->Insert "https://github.com/pytorch/executorch.git" with Use branch: main and Use version 0.6.0 and tried 1.0.0 also. -> Final Result: Receiving can not resolve package. Fatal Error -> Then when trying to import executorch, still receving module not found error.
I have tried manually also. I have built as a framework (with headers & modulemap) and linnked it in “Link Binary With Libraries” and embedded that with “Embed & Sign”. Still getting module not found error.
What is the correct way of adding executorch to Xcode 16.2 ? Thanks

Versions

Xcode 16.2

cc @shoumikhin @cbilgin

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the package dependency setup in Xcode 16.2 using the executorch repository URL and the reported 0.6.0 or 1.0.0 versions. Check whether the package resolves and whether importing executorch succeeds after the reported manual framework-linking steps; done means the dependency resolves and the module can be imported.

Written by the indexing model from the issue text.

Assessment

Tech stack
ios
Domain
mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.