abdelaziz-mahdy / pytorch_lite

flutter package to help run pytorch lite models classification and YoloV5 and YoloV8.
MIT License
51 stars 22 forks source link

iOS Simulator Linker Error libtorch #74

Closed noob8boi closed 4 months ago

noob8boi commented 4 months ago

I get this error when I try to run my app on simulator for taking screenshots.. Preparing it for app store launch.

Error (Xcode): Building for 'iOS-simulator', but linking in object file (/Users/xyz/Desktop/abc/abc_app/ios/Pods/LibTorch/install/lib/libtorch.a[arm64][2](empty.cpp.o)) built for 'iOS'

Error (Xcode): Linker command failed with exit code 1 (use -v to see invocation)

Any suggestions?

abdelaziz-mahdy commented 4 months ago

Can you provide flutter doctor output

noob8boi commented 4 months ago

Can you provide flutter doctor output

image btw it works well on physical devices.

abdelaziz-mahdy commented 4 months ago

it works for me on simulator, i have same flutter version as you, so i dont know where is the problem :_(

noob8boi commented 4 months ago

it works for me on simulator, i have same flutter version as you, so i dont know where is the problem :_(

After I excluded arm64 architecture from build settings in xcode.. it started to work. Welp resolved now :)

abdelaziz-mahdy commented 4 months ago

Glad to know