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

LLMEval: "Cycle inside LLMEval; building could produce unreliable results" build error #64

Open
ddiddi opened this issue May 6, 2024 · 3 comments

Comments

@ddiddi
Copy link

ddiddi commented May 6, 2024

Context: I'm trying to run the LLMEval iOS application on Apple M1 Pro 32 GB running macOS Version 14.4.1

I've considered the following solutions so far:

  1. Ensured I'm running the "Release" build
  2. Ensured "Signing and Capabilities" has updated dev certificate
  3. Ensured sample swift apps seems to be working as expected
  4. Ensured mlx llm tools and other cmd apps working as expected

Looking forward to advice on fixing this issue!

Attaching error test corresponding to the above message in Xcode.
error.txt
Screenshot 2024-05-05 at 11 34 50 PM

@davidkoski
Copy link
Collaborator

Does this build if you do Product -> Clean Build Folder first?

I see a few mentions of this error in random projects, e.g. https://forums.developer.apple.com/forums/thread/731825

Some of the suggestions talk about the ordering of the steps, especially the "Embed Frameworks" step. Can you try moving it above the Copy Bundle Resources?

image

The error is a bit inscrutable -- it seems to be saying that LLMEval.app depends on itself.

@ddiddi
Copy link
Author

ddiddi commented May 7, 2024

Appreciate the swift response!

  • "Clean Succeeded" after Product -> Clean Build Folder
  • On build now, it errors on another part related to filepath buffer size (attached pic)
  • After ~110 seconds, build fails with the error
    error: '/Users/ddiddi/Library/Developer/Xcode/DerivedData/mlx-swift-examples-fipmfiedzujjajahaxtfphpzkvuv/Build/Products/Release/LLMEval.app/Contents/Resources/LLMEval.app/Contents/Resources/LLMEval.app/Contents/Resources/LLMEval.app/Contents/Resources/LLMEval.app/Contents/Resources/LLMEval.app/Contents/Resources/LLMEval.app/Contents/Resources/LLMEval.app/Contents/Resources/LLMEval.app/Contents/Resources/LLMEval.app/Contents/Resources/LLMEval.app/Contents/Resources/LLMEval.app/Contents/Resources/LLMEval.app/Contents/Resources/LLMEval.app/Contents/Resources/LLMEval.app/Contents/Resources/LLMEval.app/Contents/Resources/LLMEval.app/Contents/Resources/LLMEval.app/Contents/Resources/LLMEval.app/Contents/Resources/LLMEval.app/Contents/Resources/LLMEval.app/Contents/Resources/LLMEval.app/Contents/Resources/LLMEval.app/Contents/Resources/LLMEval.app/Contents/Resources/LLMEval.app/Contents/Resources/LLMEval.app/Contents/Resources/LLMEval.app/Contents/Resources/swift-transformers_Hub.bundle/Contents/Resources/gpt2_tokenizer_config.json' is longer than filepath buffer size (1025). (in target 'LLMEval' from project 'mlx-swift-examples')

I have currently not tried moving "Embed Frameworks" step above the Copy Bundle Resources

Screenshot 2024-05-06 at 11 16 55 PM

@davidkoski
Copy link
Collaborator

Well, this error seems to say the same thing -- LLMEval.app is a resource of itself. It looks like it is recursively copying LLVEval into itself.

I am not sure how such a thing could happen, but you might try a fresh clone of the project (o git reset --hard). Somehow the xcodeproj seems to be corrupt. Maybe :-) I am not sure what could cause this.

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