我正在尝试更新到最新版本的 Flurry,从 4.2.2 到 4.2.3。我已经更新了文件,但现在我遇到了各种链接错误。
Undefined symbols for architecture i386:
"_SecItemAdd", referenced from:
-[FlurryKeychainWrapper setData:forKey:] in libSDLibrary.a(libFlurry.a-i386-master.o)
"_SecItemCopyMatching", referenced from:
-[FlurryKeychainWrapper dataForKey:] in libSDLibrary.a(libFlurry.a-i386-master.o)
"_SecItemDelete", referenced from:
-[FlurryKeychainWrapper removeObjectForKey:] in libSDLibrary.a(libFlurry.a-i386-master.o)
"_SecItemUpdate", referenced from:
-[FlurryKeychainWrapper updateValueData:forKey:] in libSDLibrary.a(libFlurry.a-i386-master.o)
"_kSecAttrAccessible", referenced from:
-[FlurryKeychainWrapper setData:forKey:] in libSDLibrary.a(libFlurry.a-i386-master.o)
"_kSecAttrAccessibleWhenUnlocked", referenced from:
-[FlurryKeychainWrapper setData:forKey:] in libSDLibrary.a(libFlurry.a-i386-master.o)
"_kSecAttrAccount", referenced from:
-[FlurryKeychainWrapper setupSearchForKey:] in libSDLibrary.a(libFlurry.a-i386-master.o)
"_kSecAttrGeneric", referenced from:
-[FlurryKeychainWrapper setupSearchForKey:] in libSDLibrary.a(libFlurry.a-i386-master.o)
"_kSecAttrService", referenced from:
-[FlurryKeychainWrapper setupSearchForKey:] in libSDLibrary.a(libFlurry.a-i386-master.o)
"_kSecClass", referenced from:
-[FlurryKeychainWrapper setupSearchForKey:] in libSDLibrary.a(libFlurry.a-i386-master.o)
"_kSecClassGenericPassword", referenced from:
-[FlurryKeychainWrapper setupSearchForKey:] in libSDLibrary.a(libFlurry.a-i386-master.o)
"_kSecMatchLimit", referenced from:
-[FlurryKeychainWrapper dataForKey:] in libSDLibrary.a(libFlurry.a-i386-master.o)
"_kSecMatchLimitOne", referenced from:
-[FlurryKeychainWrapper dataForKey:] in libSDLibrary.a(libFlurry.a-i386-master.o)
"_kSecReturnData", referenced from:
-[FlurryKeychainWrapper dataForKey:] in libSDLibrary.a(libFlurry.a-i386-master.o)
"_kSecValueData", referenced from:
-[FlurryKeychainWrapper setData:forKey:] in libSDLibrary.a(libFlurry.a-i386-master.o)
-[FlurryKeychainWrapper updateValueData:forKey:] in libSDLibrary.a(libFlurry.a-i386-master.o)
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
至少可以说这是相当令人沮丧的。我已经包含了 SystemConfiguration 框架(如前所述 here )。我正在运行 xCode 4.6.3。关于问题可能出在哪里的任何想法?
最佳答案
您需要添加 Security.framework
,因为链接器错误中提到的符号来自该框架。
如何更新?
Download the latest version of Flurry’s SDK (version 4.2.3) here. Include Apple’s Security Framework in your build process. (see the FAQ entry below for details on how to do this)
“安全”框架是强制性的吗?
To ensure the integrity of your data, Flurry requires that you include this framework in your updated app.
关于ios - Flurry v 4.2.3 链接问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18767011/