Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] iOS build failed after updating to 3.0.28 #107

Open
Th3L0x opened this issue Jan 17, 2025 · 4 comments
Open

[Bug] iOS build failed after updating to 3.0.28 #107

Th3L0x opened this issue Jan 17, 2025 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@Th3L0x
Copy link

Th3L0x commented Jan 17, 2025

Description

After upgrading the Plugin.FirebasePushNotifications package from version 3.0.17 to 3.0.28 or to 3.0.21, I encountered the followin build errors when building the project:

  /Users/myUser/Library/Caches/XamarinBuildDownload/GUsrMess-1.1.0/Frameworks/Release/UserMessagingPlatform.framework/UserMessagingPlatform : warning MT7091: The framework /Users/myUser/Library/Caches/XamarinBuildDownload/GUsrMess-1.1.0/Frameworks/Release/UserMessagingPlatform.framework is a framework of static libraries, and will not be copied to the app.
    /usr/local/share/dotnet/packs/Microsoft.iOS.Sdk.net9.0_18.2/18.2.9170/targets/Xamarin.Shared.Sdk.targets(1665,3): error : 
      clang++ exited with code 1:
      Undefined symbols for architecture arm64:
        "_GULLogBasic", referenced from:
            -[APMASLLogger logMessage:logTag:messageCode:withLogLevel:] in GoogleAppMeasurement[arm64][11](APMASLLogger.o)
        "_GULLogError", referenced from:
            -[APMPersistentDictionary initWithFileName:] in GoogleAppMeasurement[arm64][223](APMPersistentDictionary.o)
            _APMWriteDictionaryToURL in GoogleAppMeasurement[arm64][223](APMPersistentDictionary.o)
            -[APMUserDefaults synchronize] in GoogleAppMeasurement[arm64][274](APMUserDefaults.o)
        "_GULLogInfo", referenced from:
            ___44+[UIViewController(APMScreenClassName) load]_block_invoke in GoogleAppMeasurement[arm64][291](UIViewControl
      ler+APMScreenClassName.o)
        "_GULLogWarning", referenced from:
            +[APMMeasurement sharedInstance] in GoogleAppMeasurement[arm64][65](APMMeasurement.o)
            -[APMPersistentDictionary objectForKey:] in GoogleAppMeasurement[arm64][223](APMPersistentDictionary.o)
            -[APMPersistentDictionary setObject:forKey:] in GoogleAppMeasurement[arm64][223](APMPersistentDictionary.o)
            -[APMUserDefaults objectForKey:] in GoogleAppMeasurement[arm64][274](APMUserDefaults.o)
            -[APMUserDefaults setObject:forKey:] in GoogleAppMeasurement[arm64][274](APMUserDefaults.o)
            -[APMUserDefaults synchronize] in GoogleAppMeasurement[arm64][274](APMUserDefaults.o)
            ___44+[UIViewController(APMScreenClassName) load]_block_invoke in GoogleAppMeasurement[arm64][291](UIViewControl
      ler+APMScreenClassName.o)
            ...
      ld: symbol(s) not found for architecture arm64
      clang++: error: linker command failed with exit code 1 (use -v to see invocation)

Build failed with 1 error(s) and 1461 warning(s) in 50.2s

 *  The terminal process "/bin/zsh '-l', '-c', 'dotnet build /Users/myUser/MyProject/MyProject/MyProject.csproj -p:Configuration=Debug -p:TargetFramework=net9.0-ios -p:RuntimeIdentifier=ios-arm64 -p:MtouchDebug=true'" terminated with exit code: 1. 

If I downgrade the package version back to 3.0.17 then it's working again.
I'm testing on real iOS device via Mac and VSCode.
MAUI version:
maui 9.0.14/9.0.100 SDK 9.0.100

I didn't encounter any issues when using Visual Studio on a real Android device with Windows 10.

Steps to Reproduce

Install or upgrade the package with version 3.0.28 or 3.0.21

Expected Behavior

  • Build Done

Actual Behavior

  • Build Failed

Basic Information

  • Version with issue: 3.0.21, 3.0.28
  • Last known good version: 3.0.17
@Th3L0x Th3L0x added the bug Something isn't working label Jan 17, 2025
@Th3L0x Th3L0x changed the title [Bug] [Bug] iOS build failed after updating to 3.0.28 Jan 17, 2025
@thomasgalliker
Copy link
Owner

Ok, not cool. Did you clean the bin/obj folders before you run a full solution rebuild?

@Th3L0x
Copy link
Author

Th3L0x commented Jan 17, 2025

Yes, multiple times :/

@thomasgalliker
Copy link
Owner

I just installed 3.0.28 in one of my production apps. I'm using JetBrains Rider 2024.3.3 on Windows 10. The app solutions are all on .NET 8 with MauiVersion 8.0.100. Maybe one of these components makes the difference?

@Th3L0x
Copy link
Author

Th3L0x commented Jan 17, 2025

Unfortunately, I don’t know. I’m using .NET 9.0, and all my NuGet packages and workloads are up to date. It was working fine before version 3.0.21. :/
Also, I’m using these two packages:

<PackageReference Include="Plugin.InAppBilling" Version="8.0.5" />
<PackageReference Include="Plugin.MauiMTAdmob" Version="1.7.1" />

Could these be causing any interference?

@thomasgalliker thomasgalliker self-assigned this Jan 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants