ios-demo-app icon indicating copy to clipboard operation
ios-demo-app copied to clipboard

library not found for -lPods-PyTorchDemo

Open gmendozah opened this issue 5 years ago • 3 comments

Got the following error trying to run the code:

Showing Recent Messages

Build target PyTorchDemo of project PyTorchDemo with configuration Debug

Ld /Users/gvs/Library/Developer/Xcode/DerivedData/PyTorchDemo-brnftyiccqnynwcjudbbqwtswfct/Build/Products/Debug-iphoneos/PyTorchDemo.app/PyTorchDemo normal arm64 (in target 'PyTorchDemo' from project 'PyTorchDemo') cd /Users/gvs/dev/ios/ios-demo-app/PyTorchDemo /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -target arm64-apple-ios12.4 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.6.sdk -L/Users/gvs/Library/Developer/Xcode/DerivedData/PyTorchDemo-brnftyiccqnynwcjudbbqwtswfct/Build/Products/Debug-iphoneos -L/Users/gvs/dev/ios/ios-demo-app/PyTorchDemo/Pods/LibTorch/install/lib -F/Users/gvs/Library/Developer/Xcode/DerivedData/PyTorchDemo-brnftyiccqnynwcjudbbqwtswfct/Build/Products/Debug-iphoneos -filelist /Users/gvs/Library/Developer/Xcode/DerivedData/PyTorchDemo-brnftyiccqnynwcjudbbqwtswfct/Build/Intermediates.noindex/PyTorchDemo.build/Debug-iphoneos/PyTorchDemo.build/Objects-normal/arm64/PyTorchDemo.LinkFileList -Xlinker -rpath -Xlinker @executable_path/Frameworks -dead_strip -Xlinker -object_path_lto -Xlinker /Users/gvs/Library/Developer/Xcode/DerivedData/PyTorchDemo-brnftyiccqnynwcjudbbqwtswfct/Build/Intermediates.noindex/PyTorchDemo.build/Debug-iphoneos/PyTorchDemo.build/Objects-normal/arm64/PyTorchDemo_lto.o -Xlinker -export_dynamic -Xlinker -no_deduplicate -stdlib=libc++ -fobjc-arc -fobjc-link-runtime -L/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos -L/usr/lib/swift -Xlinker -add_ast_path -Xlinker /Users/gvs/Library/Developer/Xcode/DerivedData/PyTorchDemo-brnftyiccqnynwcjudbbqwtswfct/Build/Intermediates.noindex/PyTorchDemo.build/Debug-iphoneos/PyTorchDemo.build/Objects-normal/arm64/PyTorchDemo.swiftmodule -ObjC -lc++ -lc10 -lclog -lcpuinfo -leigen_blas -lnnpack -lpytorch_qnnpack -lstdc++ -ltorch -force_load /Users/gvs/dev/ios/ios-demo-app/PyTorchDemo/Pods/LibTorch/install/lib/libtorch.a -lPods-PyTorchDemo -Xlinker -dependency_info -Xlinker /Users/gvs/Library/Developer/Xcode/DerivedData/PyTorchDemo-brnftyiccqnynwcjudbbqwtswfct/Build/Intermediates.noindex/PyTorchDemo.build/Debug-iphoneos/PyTorchDemo.build/Objects-normal/arm64/PyTorchDemo_dependency_info.dat -o /Users/gvs/Library/Developer/Xcode/DerivedData/PyTorchDemo-brnftyiccqnynwcjudbbqwtswfct/Build/Products/Debug-iphoneos/PyTorchDemo.app/PyTorchDemo

ld: library not found for -lPods-PyTorchDemo clang: error: linker command failed with exit code 1 (use -v to see invocation)

gmendozah avatar Aug 06 '20 20:08 gmendozah

+1 here

Daniel-Kelvich avatar Aug 10 '20 14:08 Daniel-Kelvich

@xta0 can you take a look, please?

Daniel-Kelvich avatar Aug 11 '20 07:08 Daniel-Kelvich

@Daniel-Kelvich @gmendozah Firstly, you should run "pod install" then the you should open .xcworkspace file instead if .xcodeproj

andredsnogueira avatar Aug 19 '20 18:08 andredsnogueira