0

プロジェクトに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)
4

1 に答える 1

1

また、ターゲットをにリンクする必要がありますSystemConfiguration.framework。に対してリンクしたのと同じ方法でこれを行うことができますCFNetwork.framework

于 2013-03-27T07:31:44.697 に答える