Steps to resolve:
- Create new scheme with different name
-
Delete old scheme
-
Add new scheme
Where the problem came from:
I changed my product name and disabled the snapshot option. Then, suddenly, this error popped out:
ld: file not found:.././previousproductname.app/previousproductname
Steps I followed unsuccessfully to debug:
-
Deleted deriveddata, restarted Xcode. – not resolved.
-
Followed the steps of this: link http://twobitlabs.com/2011/06/adding-ocunit-to-an-existing-ios-project-with-xcode-4/ – same error; not resolved.
-
Finally, I changed the Scheme name, deleted my old scheme and added new, have solved my issue.