簡體   English   中英

Parse.framework的鏈接器錯誤(未定義符號)

[英]Linker errors (undefined symbols) with Parse.framework

我將Parse.framework添加到我的項目中。 在AppDelegate.m中,我只導入它並設置應用程序ID。 看起來還可以,但是運行時出現4個錯誤。

我應該添加哪些其他框架,或者我還應該做什么?

這是我添加的框架:

AudioToolbox.framework
CFNetwork.framework
CoreGraphics.framework
CoreLocation.framework
MobileCoreServices.framework
QuartzCore.framework
Security.framework
StoreKit.framework
SystemConfiguration.framework
libz.dylib
libsqlite3.dylib
Parse.framework

這是我得到的錯誤:

Undefined symbols for architecture i386:
"_OBJC_CLASS_$_BFExecutor", referenced from:
objc-class-ref in Parse(Parse.o)//And other six

"_OBJC_CLASS_$_BFTask", referenced from:
objc-class-ref in Parse(Parse.o)//And other six

"_OBJC_CLASS_$_BFTaskCompletionSource", referenced from:
objc-class-ref in Parse(PFOfflineStore.o)//And other six

ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)

您還必須按照快速入門頁面上的步驟2中所述,添加Parse SDK隨附的Bolts.framework

https://www.parse.com/apps/quickstart#parse_data/mobile/ios/native/existing

並確保將其列在“構建階段->使用庫鏈接二進制文件”下。

編輯

體系結構i386的未定義符號:_OBJC_CLASS _ $ _ SKPSMTPMessage“,引用自:錯誤

找到了


  1. 當您有多個具有相同名稱的類時,通常會發生這種情況。 您可能再添加一次文件。
  2. 還要檢查您是否有可能將.m文件導入到某個文件中。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM