我正在尝试将Google框架与我的应用程序集成起来。但它给出了如下错误。
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设备,但不使用模拟器。我不知道,它是如何与设备一起工作的。
发布于 2014-03-12 06:14:06
您似乎无意中将Security.framework复制到您的项目中,而不仅仅是从框架搜索路径链接到它。
文件路径显示框架路径,
/SampleApp/Security.framework/Security检查项目目录中的.framework文件并删除它。清洁+再建。请查看here以获得更多的解决方案。
希望这能帮上忙!
发布于 2014-03-03 19:32:14
您缺少了SystemConfiguration框架--尝试添加该框架,应该会很好。
发布于 2014-03-11 10:23:08
它清楚地表明,框架( Google )不是为i386体系结构(仿真器).Instead构建的,框架是为设备架构(armv7和armv7s)构建的。它不会在模拟器中工作。
如果您想在模拟器上运行,您应该获得Google框架的模拟器版本。
https://stackoverflow.com/questions/22147400
复制相似问题