Panich Maxim
Panich Maxim

Reputation: 1115

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

So I am trying to change my application directory (I moved my project in new folder) and this error occurred. I tried to clean and rebuild my project, restart xCode and mac, nothing helps. Looks like the problem is that I need to update old path somewhere, but I don't know where exactly.

Error stack:

ld: file not found: /Users/panich/Library/Developer/Xcode/DerivedData/BuildingLoyalty-ezexzzfxemzfmsfdygvetpstlugg/Build/Products/Debug-iphoneos/BuildingLoyalty.app/BuildingLoyalty
clang: error: linker command failed with exit code 1 (use -v to see invocation)

My project name - BuildingLoyalty. The error is also connected with BuildingLoyaltyTests. Thx.

Screenshot:

enter image description here

Upvotes: 0

Views: 94

Answers (2)

cdescours
cdescours

Reputation: 6022

You should try to delete your DerivedData folder. In your case, it seems to be located here : /Users/panich/Library/Developer/Xcode/DerivedData

Upvotes: 1

Rajat
Rajat

Reputation: 11127

Go to your Project, then select your Test target, then under Testing clear the values of Debug and Release like this

enter image description here

Upvotes: 1

Related Questions