首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Google框架集成给模拟器带来错误,但与设备一起工作

Google框架集成给模拟器带来错误,但与设备一起工作
EN

Stack Overflow用户
提问于 2014-03-03 12:55:55
回答 3查看 963关注 0票数 2

我正在尝试将Google框架与我的应用程序集成起来。但它给出了如下错误。

代码语言:javascript
复制
Ignoring file /Users/mani/Documents/Example/GooglePlusExample/SampleApp/Security.framework/Security, missing required architecture i386 in file /Users/mani/Documents/Example/GooglePlusExample/SampleApp/Security.framework/Security (2 slices)

 "_SecItemAdd", referenced from:


      -[GTMOAuth2Keychain setPassword:forService:accessibility:account:error:] in GoogleOpenSource(GTMOAuth2ViewControllerTouch.o)


  "_SecItemCopyMatching", referenced from:


      -[GTMOAuth2Keychain passwordForService:account:error:] in GoogleOpenSource(GTMOAuth2ViewControllerTouch.o)


  "_SecItemDelete", referenced from:


      -[GTMOAuth2Keychain removePasswordForService:account:error:] in GoogleOpenSource(GTMOAuth2ViewControllerTouch.o)


  "_SecRandomCopyBytes", referenced from:


      -[GPPSignIn randomString] in GooglePlus(GPPSignIn.o)


  "_kSecAttrAccessible", referenced from:


      -[GTMOAuth2Keychain setPassword:forService:accessibility:account:error:] in GoogleOpenSource(GTMOAuth2ViewControllerTouch.o)


  "_kSecAttrAccessibleAfterFirstUnlockThisDeviceOnly", referenced from:


      +[GTMOAuth2ViewControllerTouch saveParamsToKeychainForName:accessibility:authentication:error:] in GoogleOpenSource(GTMOAuth2ViewControllerTouch.o)


  "_kSecAttrAccount", referenced from:


      +[GTMOAuth2Keychain keychainQueryForService:account:] in GoogleOpenSource(GTMOAuth2ViewControllerTouch.o)


  "_kSecAttrGeneric", referenced from:


      +[GTMOAuth2Keychain keychainQueryForService:account:] in GoogleOpenSource(GTMOAuth2ViewControllerTouch.o)


  "_kSecAttrService", referenced from:


      +[GTMOAuth2Keychain keychainQueryForService:account:] in GoogleOpenSource(GTMOAuth2ViewControllerTouch.o)


  "_kSecClass", referenced from:


      +[GTMOAuth2Keychain keychainQueryForService:account:] in GoogleOpenSource(GTMOAuth2ViewControllerTouch.o)


  "_kSecClassGenericPassword", referenced from:


      +[GTMOAuth2Keychain keychainQueryForService:account:] in GoogleOpenSource(GTMOAuth2ViewControllerTouch.o)


  "_kSecMatchLimit", referenced from:


      -[GTMOAuth2Keychain passwordForService:account:error:] in GoogleOpenSource(GTMOAuth2ViewControllerTouch.o)


  "_kSecMatchLimitOne", referenced from:


      -[GTMOAuth2Keychain passwordForService:account:error:] in GoogleOpenSource(GTMOAuth2ViewControllerTouch.o)


  "_kSecRandomDefault", referenced from:


      -[GPPSignIn randomString] in GooglePlus(GPPSignIn.o)


  "_kSecReturnData", referenced from:


      -[GTMOAuth2Keychain passwordForService:account:error:] in GoogleOpenSource(GTMOAuth2ViewControllerTouch.o)


  "_kSecValueData", referenced from:


      -[GTMOAuth2Keychain setPassword:forService:accessibility:account:error:] in GoogleOpenSource(GTMOAuth2ViewControllerTouch.o)


ld: symbol(s) not found for architecture i386

但我遵守了他们的指示。添加了Security.framework,Other Linker Flags: -ObjC也已正确设置。我可以假设,这是个愚蠢的错误。但我没能发现。请帮帮我。

注意:--我使用的是xcode5.0。

更新:--我添加了他们提到的所有框架。看看我的尖叫声。

Update2:现在正在使用iPod Touch-5设备,但不使用模拟器。我不知道,它是如何与设备一起工作的。

EN

回答 3

Stack Overflow用户

回答已采纳

发布于 2014-03-12 06:14:06

您似乎无意中将Security.framework复制到您的项目中,而不仅仅是从框架搜索路径链接到它。

文件路径显示框架路径,

代码语言:javascript
复制
/SampleApp/Security.framework/Security

检查项目目录中的.framework文件并删除它。清洁+再建。请查看here以获得更多的解决方案。

希望这能帮上忙!

票数 3
EN

Stack Overflow用户

发布于 2014-03-03 19:32:14

您缺少了SystemConfiguration框架--尝试添加该框架,应该会很好。

票数 1
EN

Stack Overflow用户

发布于 2014-03-11 10:23:08

它清楚地表明,框架( Google )不是为i386体系结构(仿真器).Instead构建的,框架是为设备架构(armv7和armv7s)构建的。它不会在模拟器中工作。

如果您想在模拟器上运行,您应该获得Google框架的模拟器版本。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/22147400

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档