0
votes

ld: building for iOS Simulator, but linking against dylib built for MacOSX file '/Applications/Xcode.app/Contents/Developer/Library/Frameworks/XCTest.framework/XCTest' for architecture i386 clang: error: linker command failed with exit code 1 (use -v to see invocation).

What to do?

1
Go to your target -> Build Phase -> See compile sources and link library and check that no item mentioned is in red.Shruti
In the Copy Bundle Resources "main.storyboard" is mentioned in red. What to do?Muraree Pareek
No that will be in red only. Please check if any of your framework you added is missing from link libraries?Shruti
Shruti I checked it .. All frameworks are available in link libraries.Muraree Pareek

1 Answers

0
votes

Please go through the link. It might help solving your problem. Reference