xcode4 – XCode 4.3 – 构建错误“缺少必需的架构armv7”

前端之家收集整理的这篇文章主要介绍了xcode4 – XCode 4.3 – 构建错误“缺少必需的架构armv7”前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
将XCode从4.2升级到4.3后,我遇到了以下问题.我无法建立它.
你们有没有想法如何解决这个问题?甚至一些线索对我有帮助.
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)

解决方法

从Xcode 4.2升级后,我得到了与Simulator相同的链接错误 – > 4.3.1.我注意到4.3.1中的新项目与单元测试一起工作,所以只是比较了项目差异.

为我修好的是: –

>在项目导航器中选择项目
>选择测试目标
>选择构建设置
>转到框架搜索路径并单击它
>删除那里的任何东西
>输入$(SDKROOT)/ Developer / Library / Frameworks $(DEVELOPER_LIBRARY_DIR)/ Frameworks
>如果您有任何自定义框架,请将其添加回来

实际上,单元测试也在设备上正常运行.

原文链接:https://www.f2er.com/iOS/333203.html

猜你在找的iOS相关文章