友盟分享SDK編譯錯誤

2021-07-04 23:59:04 字數 1623 閱讀 6623

今天為專案做乙個分享功能,但是匯入了友盟分享sdk後,編譯發現報錯,錯誤資訊:

undefined symbols for architecture x86_64:

"_scnetworkreachabilitycreatewithaddress", referenced from:

+[umsocialnetworkreachabilitymanager managerforaddress:] in libumsocial_sdk_4.2.3.a(umsocialnetworkreachabilitymanager.o)

"_scnetworkreachabilitycreatewithname", referenced from:

+[umsocialnetworkreachabilitymanager managerfordomain:] in libumsocial_sdk_4.2.3.a(umsocialnetworkreachabilitymanager.o)

"_scnetworkreachabilitygetflags", referenced from:

___53-[umsocialnetworkreachabilitymanager startmonitoring]_block_invoke_2 in libumsocial_sdk_4.2.3.a(umsocialnetworkreachabilitymanager.o)

"_scnetworkreachabilityschedulewithrunloop", referenced from:

-[umsocialnetworkreachabilitymanager startmonitoring] in libumsocial_sdk_4.2.3.a(umsocialnetworkreachabilitymanager.o)

"_scnetworkreachabilitysetcallback", referenced from:

-[umsocialnetworkreachabilitymanager startmonitoring] in libumsocial_sdk_4.2.3.a(umsocialnetworkreachabilitymanager.o)

"_scnetworkreachabilityunschedulefromrunloop", referenced from:

-[umsocialnetworkreachabilitymanager stopmonitoring] in libumsocial_sdk_4.2.3.a(umsocialnetworkreachabilitymanager.o)

ld: symbol(s) not found for architecture x86_64

clang: error: linker command failed with exit code 1 (use -v to see invocation)

然後google了一遍,發現同仁有類似的問題,沒有解決.然後仔細看了下報錯原因,其實是沒有匯入systemconfiguration.framework框架.在link binary with libraries匯入即可.

iOS 友盟SDK分享

友盟sdk分享 基本步驟 1 註冊友盟開發者賬號 4 解壓sdk壓縮包,將形如umsocial sdk x.x.x檔案拖入工程中 例如 umsocial sdk 4.4 5 專案面板中手動新增系統庫systemconfiguration.framework 注意 1 新增sdk後需要手動新增系統庫s...

友盟 分享bug

這在 xcode 6.4 ios 8 時,是不會有的情況,原因是 為了強制增強資料訪問安全,ios9 缺省會把所有從nsurlconnection cfurl nsurlsession發出的 http 請求,都改為 https 請求 ios9.x sdk編譯時,缺省會讓所有從nsurlconnect...

友盟實現分享

在build.gradle中加上 compile filetree dir libs include jar 三。在配置環境下面填寫 wxentryactivity類在第五步中有教你新建 android name android value 你申請的值 android name wxapi.wxen...