Xcode 4.3 - Build Error "Missing required armv7 architecture"

After upgrading Xcode from 4.2 to 4.3, I have a problem below. I canโ€™t build it. Do you guys know how I can solve this problem? even a hint would be helpful to me.

ld: warning: ignoring file /Applications/Xcode.app/Contents/Developer/Library/Frameworks/SenTestingKit.framework/SenTestingKit, missing required architecture armv7 in file Undefined symbols for architecture armv7: "_STComposeString", referenced from: -[NSMutableURLRequest_ParametersTest verifyDefaultParametersForRequest:] in NSMutableURLRequest+ParametersTest.o -[NSMutableURLRequest_ParametersTest verifyModifiedParametersForRequest:] in NSMutableURLRequest+ParametersTest.o -[NSMutableURLRequest_ParametersTest verifyEmptyParametersForRequest:] in NSMutableURLRequest+ParametersTest.o -[NSString_URLEncodingTest testURLEncodedString] in NSString+URLEncodingTest.o -[NSURL_BaseTest testURLStringWithoutQuery] in NSURL+BaseTest.o -[OAHMAC_SHA1SignatureProviderTest testSignClearText] in OAHMAC_SHA1SignatureProviderTest.o -[OAMutableURLRequestTest testGenerateNonce] in OAMutableURLRequestTest.o ... "_OBJC_CLASS_$_SenTestCase", referenced from: _OBJC_CLASS_$_NSMutableURLRequest_ParametersTest in NSMutableURLRequest+ParametersTest.o _OBJC_CLASS_$_NSString_URLEncodingTest in NSString+URLEncodingTest.o _OBJC_CLASS_$_NSURL_BaseTest in NSURL+BaseTest.o _OBJC_CLASS_$_OAHMAC_SHA1SignatureProviderTest in OAHMAC_SHA1SignatureProviderTest.o _OBJC_CLASS_$_OAMutableURLRequestTest in OAMutableURLRequestTest.o _OBJC_CLASS_$_OAPlaintextSignatureProviderTest in OAPlaintextSignatureProviderTest.o _OBJC_CLASS_$_OARequestParameterTest in OARequestParameterTest.o ... "_OBJC_METACLASS_$_SenTestCase", referenced from: _OBJC_METACLASS_$_NSMutableURLRequest_ParametersTest in NSMutableURLRequest+ParametersTest.o _OBJC_METACLASS_$_NSString_URLEncodingTest in NSString+URLEncodingTest.o _OBJC_METACLASS_$_NSURL_BaseTest in NSURL+BaseTest.o _OBJC_METACLASS_$_OAHMAC_SHA1SignatureProviderTest in OAHMAC_SHA1SignatureProviderTest.o _OBJC_METACLASS_$_OAMutableURLRequestTest in OAMutableURLRequestTest.o _OBJC_METACLASS_$_OAPlaintextSignatureProviderTest in OAPlaintextSignatureProviderTest.o _OBJC_METACLASS_$_OARequestParameterTest in OARequestParameterTest.o ... ld: symbol(s) not found for architecture armv7 clang: error: linker command failed with exit code 1 (use -v to see invocation) 
+7
source share
6 answers

I got the same binding error for Simulator after upgrading from Xcode 4.2 -> 4.3.1. I noticed that new projects in 4.3.1 work with Unit Tests, so I just compare the differences of the project.

This has been fixed for me: -

  • Select a project in the project navigator
  • Choose a test target
  • Select Build Settings
  • Go to the search paths in the Framework and click once on it.
  • Delete everything that is.
  • Enter $ (SDKROOT) / Developer / Library / Frameworks $ (DEVELOPER_LIBRARY_DIR) / Frameworks
  • If you have any custom frameworks, add them back

Actually, device tests also work on the device too.

+23
source

It seems that this was either an accidental (or as intended) omission on the Apple part.

If (and only if) you are a registered Apple developer, you can go to the Apple Developer Forums, and if you copy this related search query into your address bar , you will see that other people had the same problem.

So far, it seems you can only use SenTestingKit on the simulator.

+2
source

I had a similar problem with Xcode 4.4. My solution: Removed SetTestingKit.framework from the main target (system under test) "link binary with libraries", leaving it in the test target as it is. Not sure why it ended up there in the first place.

+2
source

I believe this error is now fixed in Xcode 4.4.1

0
source

Using xcode 4.6 and trying to add facebook SDK 3.1 I had this problem because I did not want to add files to my test target.

You should check both targets when copying the framework.

0
source

I just upgraded to 4.3.1. There is a problem with the SenTestingKit infrastructure. I removed the source code of the test from the project, it builds fine. And it can work on device 5.1. But I got the _dyld_dyld_start error when I ran it on the simulator. I had to remove SenTestingKit from the project in order for it to work on the simulator.

-one
source

All Articles