2013-03-27 3 views
0

J'essaie d'ajouter l'infrastructure ObjectiveFlickr à mon projet.Ajout d'ObjectiveFlickr au projet

J'ai essayé de suivre les instructions suivantes:

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 

Mais, il semble que ces instructions ont été écrites pour les anciennes versions de XCode (j'utilise 4.6). J'ai essayé de « traduire » ces instructions pour la nouvelle version de XCode, mais peu importe ce que je fais, libObjectiveFlickr.a reste en rouge et je reçois les erreurs suivantes:

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) 

Répondre

1

Vous devez également associer votre cible contre SystemConfiguration.framework. Vous pouvez le faire de la même manière que vous avez lié CFNetwork.framework.

+0

Incroyable - merci! – YogevSitton

Questions connexes