xamarin / GoogleApisForiOSComponents

MIT License
225 stars 156 forks source link

33 Build Errors when adding latest package for Xamarin.MobileAds #420

Open RobertWildgoose opened 4 years ago

RobertWildgoose commented 4 years ago

When adding latest packages into a brand new project currently getting 33 build errors.

StoatsOnAPlane commented 4 years ago

can you post the build errors?

RobertWildgoose commented 4 years ago

I can indeed please see below, the below is from a brand new project pulling down the following packages.

Xamarin.Google.iOS.mobileAds SDK - 7.57.0 Xamarin.Firebase.iOS.Core - 6.6.6

/Users/name/Projects/Test/iOS/MTOUCH: Error MT5210: Native linking failed, undefined symbol: _GULIsLoggableLevel. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in. (MT5210) (Test.iOS)

/Users/name/Projects/Test/iOS/MTOUCH: Error MT5210: Native linking failed, undefined symbol: _GULLogBasic. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in. (MT5210) (Test.iOS)

/Users/name/Projects/Test/iOS/MTOUCH: Error MT5210: Native linking failed, undefined symbol: _GULLogError. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in. (MT5210) (Test.iOS)

/Users/name/Projects/Test/iOS/MTOUCH: Error MT5210: Native linking failed, undefined symbol: _GULLogInfo. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in. (MT5210) (Test.iOS)

/Users/name/Projects/Test/iOS/MTOUCH: Error MT5210: Native linking failed, undefined symbol: _GULLogWarning. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in. (MT5210) (Test.iOS)

/Users/name/Projects/Test/iOS/MTOUCH: Error MT5210: Native linking failed, undefined symbol: _GULSetLoggerLevel. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in. (MT5210) (Test.iOS)

/Users/name/Projects/Test/iOS/MTOUCH: Error MT5211: Native linking failed, undefined Objective-C class: GULAppDelegateSwizzler. The symbol '_OBJCCLASS$_GULAppDelegateSwizzler' could not be found in any of the libraries or frameworks linked with your application. (MT5211) (Test.iOS)

/Users/name/Projects/Test/iOS/MTOUCH: Error MT5211: Native linking failed, undefined Objective-C class: GULAppEnvironmentUtil. The symbol '_OBJCCLASS$_GULAppEnvironmentUtil' could not be found in any of the libraries or frameworks linked with your application. (MT5211) (Test.iOS)

/Users/name/Projects/Test/iOS/MTOUCH: Error MT5211: Native linking failed, undefined Objective-C class: GULMutableDictionary. The symbol '_OBJCCLASS$_GULMutableDictionary' could not be found in any of the libraries or frameworks linked with your application. (MT5211) (Test.iOS)

/Users/name/Projects/Test/iOS/MTOUCH: Error MT5211: Native linking failed, undefined Objective-C class: GULNetwork. The symbol '_OBJCCLASS$_GULNetwork' could not be found in any of the libraries or frameworks linked with your application. (MT5211) (Test.iOS)

/Users/name/Projects/Test/iOS/MTOUCH: Error MT5211: Native linking failed, undefined Objective-C class: GULSwizzler. The symbol '_OBJCCLASS$_GULSwizzler' could not be found in any of the libraries or frameworks linked with your application. (MT5211) (Test.iOS)

/Users/name/Projects/Test/iOS/MTOUCH: Error MT5210: Native linking failed, undefined symbol: _kGULNetworkHTTPStatusCodeCannotAcceptTraffic. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in. (MT5210) (Test.iOS)

/Users/name/Projects/Test/iOS/MTOUCH: Error MT5210: Native linking failed, undefined symbol: _kGULNetworkHTTPStatusCodeNotFound. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in. (MT5210) (Test.iOS)

/Users/name/Projects/Test/iOS/MTOUCH: Error MT5210: Native linking failed, undefined symbol: _kGULNetworkHTTPStatusCodeNotModified. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in. (MT5210) (Test.iOS)

/Users/name/Projects/Test/iOS/MTOUCH: Error MT5210: Native linking failed, undefined symbol: _kGULNetworkHTTPStatusCodeUnavailable. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in. (MT5210) (Test.iOS)

/Users/name/Projects/Test/iOS/MTOUCH: Error MT5210: Native linking failed, undefined symbol: _kGULNetworkHTTPStatusNoContent. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in. (MT5210) (Test.iOS)

/Users/name/Projects/Test/iOS/MTOUCH: Error MT5210: Native linking failed, undefined symbol: _kGULNetworkHTTPStatusOK. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in. (MT5210) (Test.iOS)

/Users/name/Projects/Test/iOS/MTOUCH: Error MT5210: Native linking failed, undefined symbol: _pb_decode. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in. (MT5210) (Test.iOS)

/Users/name/Projects/Test/iOS/MTOUCH: Error MT5210: Native linking failed, undefined symbol: _pb_decode_varint. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in. (MT5210) (Test.iOS)

/Users/name/Projects/Test/iOS/MTOUCH: Error MT5210: Native linking failed, undefined symbol: _pb_encode. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in. (MT5210) (Test.iOS)

/Users/name/Projects/Test/iOS/MTOUCH: Error MT5210: Native linking failed, undefined symbol: _pb_encode_string. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in. (MT5210) (Test.iOS)

/Users/name/Projects/Test/iOS/MTOUCH: Error MT5210: Native linking failed, undefined symbol: _pb_encode_submessage. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in. (MT5210) (Test.iOS)

/Users/name/Projects/Test/iOS/MTOUCH: Error MT5210: Native linking failed, undefined symbol: _pb_encode_tag_for_field. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in. (MT5210) (Test.iOS)

/Users/name/Projects/Test/iOS/MTOUCH: Error MT5210: Native linking failed, undefined symbol: _pb_encode_varint. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in. (MT5210) (Test.iOS)

/Users/name/Projects/Test/iOS/MTOUCH: Error MT5210: Native linking failed, undefined symbol: _pb_istream_from_buffer. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in. (MT5210) (Test.iOS)

/Users/name/Projects/Test/iOS/MTOUCH: Error MT5210: Native linking failed, undefined symbol: _pb_ostream_from_buffer. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in. (MT5210) (Test.iOS)

/Users/name/Projects/Test/iOS/MTOUCH: Error MT5210: Native linking failed, undefined symbol: _pb_read. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in. (MT5210) (Test.iOS)

/Users/name/Projects/Test/iOS/MTOUCH: Error MT5201: Native linking failed. Please review the build log and the user flags provided to gcc: -ObjC -lc++ -lsqlite3 -lz -ObjC -lz -lsqlite3 (MT5201) (Test.iOS)

/Users/name/Projects/Test/iOS/-[APMMeasurement networkUploadCompletionHandlerWithResponse: Error: ] in GoogleAppMeasurement(APMMeasurement_87bdad44f2b9aa68c2d607a36be1b8c5.o) (Test.iOS)

/Users/name/Projects/Test/iOS/-[APMMeasurement networkUploadCompletionHandlerWithResponse: Error: ] in GoogleAppMeasurement(APMMeasurement_87bdad44f2b9aa68c2d607a36be1b8c5.o) (Test.iOS)

/Users/name/Projects/Test/iOS/-[APMMeasurement networkUploadCompletionHandlerWithResponse: Error: ] in GoogleAppMeasurement(APMMeasurement_87bdad44f2b9aa68c2d607a36be1b8c5.o) (Test.iOS)

/Users/name/Projects/Test/iOS/-[APMMeasurement networkUploadCompletionHandlerWithResponse: Error: ] in GoogleAppMeasurement(APMMeasurement_87bdad44f2b9aa68c2d607a36be1b8c5.o) (Test.iOS)

/Users/name/Projects/Test/iOS/clang: Error: linker command failed with exit code 1 (use -v to see invocation) (Test.iOS)

chrisfoulds commented 4 years ago

I just hit this on a new project also. Once I added code that referenced the code it linked but then on second build I get the same as this : https://github.com/xamarin/GoogleApisForiOSComponents/issues/412 Without cleaning everything everytime it does not run. As noted down grading xamarin.ios framework to 13.16.0.13 and it all works again.

StoatsOnAPlane commented 4 years ago

it looks similar to the errors I get as well: https://github.com/xamarin/GoogleApisForiOSComponents/issues/421

I will try downgrading to 13.16.0.13

StoatsOnAPlane commented 4 years ago

Ugh I see links for downgrading visual studio enterprise but not community. Do I need to contact microsoft for that or something?

chrisfoulds commented 4 years ago

On Mac go to /Library/Frameworks and change the shortcut called current to point to the older folder and delete the newer one. Restart VS Mac and it links against older one

chrisfoulds commented 4 years ago

for info I tracked my problems down to this https://github.com/xamarin/GoogleApisForiOSComponents/issues/423

StoatsOnAPlane commented 4 years ago

I found the libraries for my mac but do I all my dev on a PC that links to it. I have to downgrade that version of Visual Studio before it will work

IngridtRodriguez commented 3 years ago

Is there an update on this? Is it a problem with the nuget package or dependencies? Can I resolve it without downgrading? I'm having the same problem with Xamarin.iOS.Places

StoatsOnAPlane commented 3 years ago

doesnt seem like anyone is maintaining this repo :(

RobertWildgoose commented 3 years ago

Hey All,

Not sure anyone is maintaining this repo which is sad, however it seems i'm only getting this issue on simulator builds. I can get this to work with the latest version of admob on device however on simulator it just doesn't build.

vhugogarcia commented 3 years ago

Facing the exact same issue with analytics and crashlytics.

motoko89 commented 3 years ago

I'm trying to follow the instruction in hope that I can apply some fixes myself but dotnet cake --target=externals failed:

Error: One or more errors occurred. (Could not reach target 'externals' since it was skipped due to a criteria.)

And the externals folder is empty. @RobertWildgoose @StoatsOnAPlane have you successfully build this repo locally?

cshi-assetic commented 2 years ago

I'm trying to follow the instruction in hope that I can apply some fixes myself but dotnet cake --target=externals failed:

Error: One or more errors occurred. (Could not reach target 'externals' since it was skipped due to a criteria.)

And the externals folder is empty. @RobertWildgoose @StoatsOnAPlane have you successfully build this repo locally?

Same happened to me. have you resolved the issue @motoko89 ?