Swift 3.0 unresolved identifier for DispatchQueue

后端 未结 2 705
死守一世寂寞
死守一世寂寞 2021-01-22 14:44

I have been trying to find the answer to this for hours now but still no avail. I am trying to use the following code:

func fetchPosts() {
    ref.child(\"Amore\         


        
2条回答
  •  离开以前
    2021-01-22 14:52

    Recently, a simple swift script I had written was yielding this error when I ran it under Linux. The same script had worked fine under macOS.

    Out of curiosity, I added an 'import Dispatch' to the top of the script and it then ran fine on Linux.

提交回复
热议问题