0

I need some help please. I can't seem to figure out how to fix this clang error in Xcode 10.0, Swift 4 (MacOs Cocoa):

linker command failed with exit code 1 (use -v to see invocation)

Here is a picture of the build log:

enter image description here

Does anyone know how to fix this? Thank you.

P.S. Please note that I am not using Cocoa Pods, but my app does use URL

10
  • If you want an answer, you need to update your question with more information. Does your project use Cocoapods or any other third-party frameworks? If you press Cmd-9, you can select the build and see the low-level steps Xcode takes to build the project. See the following question: Xcode - how to see build command and log?. Update your question with the contents of the build log for the link step that fails. Commented Sep 12, 2020 at 19:12
  • Ok I will, thanks. Commented Sep 12, 2020 at 20:49
  • Just added more information. Hope it’s useful. Commented Sep 12, 2020 at 22:29
  • The link error says you have an empty object file, view2.0. That error implies there was a problem compiling a file view2.swift. Update your question with the build log for the build step that compiles view2.swift. Commented Sep 12, 2020 at 23:41
  • Ok, I updated my question again. I hope it's more helpful this time :) Commented Sep 13, 2020 at 3:49

0

Your Answer

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

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.