HTML5   发布时间:2022-04-27  发布网站:大佬教程  code.js-code.com
大佬教程收集整理的这篇文章主要介绍了xcode4 – XCode 4.3 – 构建错误“缺少必需的架构armv7”大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
将XCode从4.2升级到4.3后,我遇到了以下问题.我无法建立它.
你们有没有想法如何解决这个问题?甚至一些线索对@L_674_2@帮助.
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
>如果您有任何自定义框架,请将其添加回来

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

大佬总结

以上是大佬教程为你收集整理的xcode4 – XCode 4.3 – 构建错误“缺少必需的架构armv7”全部内容,希望文章能够帮你解决xcode4 – XCode 4.3 – 构建错误“缺少必需的架构armv7”所遇到的程序开发问题。

如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。