2013-03-27 128 views
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) 

回答

1

您還需要聯繫你的目標對SystemConfiguration.framework。您可以按照與CFNetwork.framework鏈接相同的方式執行此操作。

+0

令人驚歎 - 謝謝! – YogevSitton 2013-03-27 08:06:45