When trying to build my tests, I exclusively run into errors such as the following:
Undefined symbols for architecture x86_64:
  "vtable for c10::AutogradMetaInterface", referenced from:
      c10::AutogradMetaInterface::AutogradMetaInterface() in TorchModule.o

None of my fixes have worked so far. I have created an objective-c bridging header for my tests, and here is my Podfile:
# Uncomment the next line to define a global platform for your project
# platform :ios, '9.0'

target 'FinalDancer' do
  # Comment the next line if you don't want to use dynamic frameworks
  use_frameworks!

  # Pods for FinalDancer
  pod 'LibTorch', '~> 1.4.0'

  target 'FinalDancerTests' do
    inherit! :search_paths
    # Pods for testing
    pod 'LibTorch', '~> 1.4.0'
  end

end

Hope this helps, thanks!