10

testflightSDKを追加した後にプロジェクトをビルドできません

 Undefined symbols for architecture i386:
  "_TFLog", referenced from:
      -[IBIZAAppDelegate application:didFinishLaunchingWithOptions:] in IBIZAAppDelegate.o
      -[IBIZAAppDelegate application:didRegisterForRemoteNotificationsWithDeviceToken:] in IBIZAAppDelegate.o
      -[IBIZAAppDelegate application:didReceiveRemoteNotification:] in IBIZAAppDelegate.o
      -[IBIZAAppDelegate application:didFailToRegisterForRemoteNotificationsWithError:] in IBIZAAppDelegate.o
      -[IBIZAAppDelegate registerSuccess:] in IBIZAAppDelegate.o
      -[IBIZAAppDelegate registerFail:] in IBIZAAppDelegate.o
      -[MainViewController viewDidLoad] in MainViewController.o
      ...
  "_OBJC_CLASS_$_TestFlight", referenced from:
      objc-class-ref in IBIZAAppDelegate.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Xcode4.2を使用しています。同じプロジェクトは通常、Xcode4.3を使用して他のコンピューター上に構築されています。SDKが必要なすべてのターゲットに追加され、この主題に関連するすべてのソリューションも試されました。

4

4 に答える 4

38

TestFlight 0.8.1 から 0.8.3 への更新で同様の問題が発生しました。README.txt ファイルの説明を読み直しました。libz.dylib を追加する必要があると思います (「SDK をプロジェクトに統合する方法」のステップ 3)。その後、シミュレーターと開発用 iPad でアプリを実行することができました。

于 2012-03-20T03:50:27.807 に答える
3

SDK ドキュメントの統合手順のステップ 2 に慎重に戻ります。ldエラー メッセージの は、これが参照されたクラスを見つけるためのリンク時の失敗であることを示します。これはほとんどの場合、「バイナリをライブラリにリンク」ビルド段階で必要なライブラリを含めなかった結果です。

于 2012-02-09T17:13:13.883 に答える
-1

プロジェクトから TFLOG 宣言を削除しました。すべての作品

于 2012-02-09T17:09:19.600 に答える
-4

おそらくプロジェクト設定に問題があり、プロジェクトをチェックアウトすると問題が解決しました

于 2012-02-14T14:03:42.637 に答える