简体   繁体   中英

Apple Mach-O Linker Error GoogleAnalyticslib

Hi I cant compile my app because of Apple Mach-O linker error, last time it worked when i removed the architecture arm64, but I need another solution to make it work. Please watch these pictures with the errors I'm getting. 在此处输入图片说明在此处输入图片说明

It seems you are not including the Google Analytics library.

In Xcode select target.

In the general tab, scroll down until the "Linked Frameworks and Libraries" .

Do you have libGoogleAnalyticsServices.a in the list ? If not, this is your problem.

If you already have them, then the library might not contain the x64 symbols.

Download the latest library from google (they added support for x64 in January).

As a side note, x86_64 , the target you are compiling for, seems to be a simulator. arm64 and x86_64 are different platforms.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM