Am developing an existing iOS application and I have to write unit test cases for this project. It is building and running in Simulator 6.0. Whenever I try to test the project, it is showing the error message below. Am not able to figure the exact error.
id: file not found: /Users/Yuva/Library/Developer/Xcode/DerivedData/FlyApp-aexukpgtbathuadgxlnm/Build/Products/Debug-iphonesimulator/FlyApp.app/FlyApp clag: error: linker command failed with exit code 1 (use -v to see invocation)
Could you please help me to solve this linker error and test the app?
Steps to resolve:
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.
I encountered the same error message. Turned out I had renamed my app target and had not updated the test target, Build Settings, Bundle Loader setting to my new app name.
More details on this setting can be found at Adding Unit Tests to an existing iOS project with Xcode 4 I reviewed the same steps and it helped me fix my project in Xcode 5.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With