0
我正在尝试将ObjectiveFlickr框架添加到我的项目中。将ObjectiveFlickr添加到项目
我试图按照这些指示:
Add ObjectiveFlickr.xcodeproj to your Mac project (from Xcode menu Project > Add to Project...) On your app target, open the info window (using Get Info on the target), then in the General tab, add ObjectiveFlickr (library) to Direct Dependencies Also, in the same window, add CFNetwork.framework to Linked Libraries Drag libObjecitveFlickr.a to the target's Linked Binary With Libraries group
Open the Info window of your target again. Set Configuration to All Configurations, then in the Header Search Paths property, add these two paths, separately (<OF root> is where you checked out ObjectiveFlickr):
<OF root>/Source
<OF root>/LFWebAPIKit
Use #import "ObjectiveFlickr.h" in your project
不过,似乎这些指令是为旧版本的XCode(我用4.6)编写的。 我试图“翻译”这些说明的XCode的新版本,但无论我做什么,libObjectiveFlickr.a停留在红色和我得到以下错误:
Undefined symbols for architecture armv7:
"_SCNetworkReachabilityUnscheduleFromRunLoop", referenced from:
-[LFSiteReachability stopChecking] in libObjectiveFlickr.a(LFSiteReachability.o)
"_SCNetworkReachabilitySetCallback", referenced from:
-[LFSiteReachability startChecking] in libObjectiveFlickr.a(LFSiteReachability.o)
"_SCNetworkReachabilityCreateWithAddress", referenced from:
-[LFSiteReachability networkConnectivityExists] in libObjectiveFlickr.a(LFSiteReachability.o)
-[LFSiteReachability startChecking] in libObjectiveFlickr.a(LFSiteReachability.o)
"_SCNetworkReachabilityScheduleWithRunLoop", referenced from:
-[LFSiteReachability startChecking] in libObjectiveFlickr.a(LFSiteReachability.o)
"_SCNetworkReachabilityGetFlags", referenced from:
-[LFSiteReachability networkConnectivityExists] in libObjectiveFlickr.a(LFSiteReachability.o)
-[LFSiteReachability startChecking] in libObjectiveFlickr.a(LFSiteReachability.o)
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
令人惊叹 - 谢谢! – YogevSitton 2013-03-27 08:06:45