mlc-llm icon indicating copy to clipboard operation
mlc-llm copied to clipboard

for architecture arm64

Open Leoeeeeeeea opened this issue 2 years ago • 1 comments

in /Users/leo/Desktop/mlc-llm-main/ios/build/lib/libmlc_llm.a(conv_templates.cc.o), building for iOS Simulator, but linking in object file built for iOS, file '/Users/leo/Desktop/mlc-llm-main/ios/build/lib/libmlc_llm.a' for architecture arm64

i just followed the instructions

how can i fix it?

Leoeeeeeeea avatar Jun 08 '23 09:06 Leoeeeeeeea

Sorry I couldn't follow your question. Yes, we do cross-compilation to ARM64 for iOS build, because iOS is certainly ARM64.

junrushao avatar Jun 12 '23 15:06 junrushao

@junrushao actually i am running into the same issue. I am following https://mlc.ai/mlc-llm/docs/deploy/ios.html in the last step https://mlc.ai/mlc-llm/docs/deploy/ios.html#id6 where it builds the iOS application I chose my own iPhone as the target and the build fails with the same error message in /Users/leo/Desktop/mlc-llm-main/ios/build/lib/libmlc_llm.a(conv_templates.cc.o), building for iOS Simulator, but linking in object file built for iOS, file '/Users/leo/Desktop/mlc-llm-main/ios/build/lib/libmlc_llm.a' for architecture arm64.

It looks like the current steps do not work if you tried to build the target as your own iPhone?

NullCodex avatar Jul 25 '23 16:07 NullCodex

@NullCodex on the contrary, it works for a real iphone but doesn’t work with a simulator.

junrushao avatar Jul 25 '23 17:07 junrushao

@junrushao you are right i had it set on the wrong device my bad.

NullCodex avatar Jul 25 '23 18:07 NullCodex