4

Can't build the project after installing a pod: (it was ok on Xcode 11 [https://github.com/shogo4405/HaishinKit.swift][1]

  "__swift_FORCE_LOAD_$_swiftUniformTypeIdentifiers", referenced from:
      __swift_FORCE_LOAD_$_swiftUniformTypeIdentifiers_$_HaishinKit in libHaishinKit.a(ASClass.o)
      __swift_FORCE_LOAD_$_swiftUniformTypeIdentifiers_$_HaishinKit in libHaishinKit.a(AVRecorder.o)
      __swift_FORCE_LOAD_$_swiftUniformTypeIdentifiers_$_HaishinKit in libHaishinKit.a(GLHKView.o)
      __swift_FORCE_LOAD_$_swiftUniformTypeIdentifiers_$_HaishinKit in libHaishinKit.a(HTTPService.o)
      __swift_FORCE_LOAD_$_swiftUniformTypeIdentifiers_$_HaishinKit in libHaishinKit.a(IOComponent.o)
      __swift_FORCE_LOAD_$_swiftUniformTypeIdentifiers_$_HaishinKit in libHaishinKit.a(AudioIOComponent.o)
      __swift_FORCE_LOAD_$_swiftUniformTypeIdentifiers_$_HaishinKit in libHaishinKit.a(MTHKView.o)
      ...
     (maybe you meant: __swift_FORCE_LOAD_$_swiftUniformTypeIdentifiers_$_HaishinKit)
  "__swift_FORCE_LOAD_$_swiftCoreMIDI", referenced from:
      __swift_FORCE_LOAD_$_swiftCoreMIDI_$_HaishinKit in libHaishinKit.a(ASClass.o)
      __swift_FORCE_LOAD_$_swiftCoreMIDI_$_HaishinKit in libHaishinKit.a(AVRecorder.o)
      __swift_FORCE_LOAD_$_swiftCoreMIDI_$_HaishinKit in libHaishinKit.a(GLHKView.o)
      __swift_FORCE_LOAD_$_swiftCoreMIDI_$_HaishinKit in libHaishinKit.a(HTTPService.o)
      __swift_FORCE_LOAD_$_swiftCoreMIDI_$_HaishinKit in libHaishinKit.a(IOComponent.o)
      __swift_FORCE_LOAD_$_swiftCoreMIDI_$_HaishinKit in libHaishinKit.a(AudioIOComponent.o)
      __swift_FORCE_LOAD_$_swiftCoreMIDI_$_HaishinKit in libHaishinKit.a(MTHKView.o)
      ...
     (maybe you meant: __swift_FORCE_LOAD_$_swiftCoreMIDI_$_HaishinKit)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)```


  [1]: https://github.com/shogo4405/HaishinKit.swift

1 Answer 1

6

Creating a new empty Swift file using Xcode in the project worked for me. I don't really know why but Xcode fixes everything.

1
  • Just created test.swift and working like 🚀 Mar 27, 2021 at 15:53

Your Answer

Reminder: Answers generated by Artificial Intelligence tools are not allowed on Stack Overflow. Learn more

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.