I have spent my last five hours looking for this weird situation a reasonable explanation.
Here is the warning:
ld: warning: directory not found for opt
Also check Build Settings->Framework Search Path for unused folders (this kind of warning happened to me when I deleted Carthage from the project today)