2016-04-06 9 views
1

私はCordovaプロジェクトでApptentiveを使用しようとしています。私のXcodeプロジェクトを構築している間、私はエラーを取得しています:Apptentive:Cordovaプロジェクトの `Undefined symbols for architecture ...`エラーです。

Undefined symbols for architecture arm64: 
"_CGImageSourceCreateWithURL", referenced from: 
    -[ATFileAttachment createThumbnailOfSize:] in libApptentiveConnect.a(ATFileAttachment.o) 
"_kCGImageSourceCreateThumbnailWithTransform", referenced from: 
    -[ATFileAttachment createThumbnailOfSize:] in libApptentiveConnect.a(ATFileAttachment.o) 
"_kCGImageSourceThumbnailMaxPixelSize", referenced from: 
    -[ATFileAttachment createThumbnailOfSize:] in libApptentiveConnect.a(ATFileAttachment.o) 
"_OBJC_CLASS_$_QLPreviewController", referenced from: 
    objc-class-ref in libApptentiveConnect.a(ATAttachmentController.o) 
    objc-class-ref in libApptentiveConnect.a(ATMessageCenterViewController.o) 
"_kCGImageSourceCreateThumbnailFromImageAlways", referenced from: 
    -[ATFileAttachment createThumbnailOfSize:] in libApptentiveConnect.a(ATFileAttachment.o) 
"_CGImageSourceCreateThumbnailAtIndex", referenced from: 
    -[ATFileAttachment createThumbnailOfSize:] in libApptentiveConnect.a(ATFileAttachment.o) 
"_CGImageSourceCopyTypeIdentifiers", referenced from: 
    ___50+[ATFileAttachment canCreateThumbnailForMIMEType:]_block_invoke in libApptentiveConnect.a(ATFileAttachment.o) 
ld: symbol(s) not found for architecture arm64 
clang: error: linker command failed with exit code 1 (use -v to see invocation) 

ありStackOverflowの上で同様の問題があるが、解決策は、私のために動作しませんでした:私はすべての必要な依存関係を持っているように/

は、ルックスまた、私はリンカのために-lApptentiveConnectフラグを追加しました。

Frameworks

答えて

2

自動的にリンクされていないいくつかの必要なシステムフレームワークがあるように見えます。

AVFoundation、CoreData、CoreGraphics、Foundation、ImageIO、MobileCoreServices、QuartzCore、SystemConfiguration、UIKit、弱いリンクStoreKitおよびCoreTelephonyにリンクする必要があります。ステップバイ

ステップ:

  1. Xcodeでプロジェクトナビゲータでプロジェクトを選択します。
  2. ターゲットのリストからターゲットを選択します。
  3. [ビルドフェーズ]タブを選択します。
  4. [リンクライブラリとバイナリ]グループを展開します。
  5. +ボタンをクリックし、前述のフレームワーク(弱いリンクを含む2つのフレームワークを含む)を選択します。 -クリックすると複数選択できます。
  6. ライブラリのリストに戻ったら、2つのウィークリンクされたフレームワークの「オプション」を選択します。

正常にビルドして実行できるはずです。

+0

また、QuickLookフレームワークを追加する必要がありました。ありがとう! –