Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Resolved Build error on xcode, Framework not found FBLPromises, (using firebase notification)

Discussion in 'iOS and tvOS' started by DE_Hizral, Mar 31, 2022.

  1. DE_Hizral

    DE_Hizral

    Joined:
    Feb 21, 2020
    Posts:
    19
    Hello everyone

    From the topic above, I have trouble building my apps on xcode. I keep on getting Framework not found FBLPromises error. How do I fix this error, tried to googling on solution but found nothing.

    so anyone have any solution to fix this error.

    Thank you.
     
  2. DE_Hizral

    DE_Hizral

    Joined:
    Feb 21, 2020
    Posts:
    19
    Thank you everyone, I manage to resolve the Issues, I have to force update my cocoapods directly into my xcode project. Now I dont have the framework error anymore.
     
  3. ClubGamerZone

    ClubGamerZone

    Joined:
    Apr 9, 2018
    Posts:
    3
    Could you please help me explaining how did you force update the cocoapods into the xcode?

    thank you
     
    miyacchi likes this.
  4. DE_Hizral

    DE_Hizral

    Joined:
    Feb 21, 2020
    Posts:
    19
    Sorry for the late reply, I can give a link that help me fix the Framework Not Found issues.
    https://www.youtube.com/watch?v=zdv9qE4j-VU&list=WL&index=6

    Hope this will help you sort your cocoapods.
     
  5. ClubGamerZone

    ClubGamerZone

    Joined:
    Apr 9, 2018
    Posts:
    3
    Thank you so much, I'll update if this works for future reference's.
     
  6. DE_Hizral

    DE_Hizral

    Joined:
    Feb 21, 2020
    Posts:
    19
    Hello, did you manage to sort out your issues?
     
  7. ClubGamerZone

    ClubGamerZone

    Joined:
    Apr 9, 2018
    Posts:
    3
    Yes, thank you so much!
     
  8. afurioso

    afurioso

    Joined:
    Jan 12, 2022
    Posts:
    88
    I've already installed .workplace file and I also tried it manually. But I'm continuing to see those errors:

    Undefined symbol: _OBJC_CLASS_$_FIRDatabase
    Undefined symbol: _OBJC_CLASS_$_FIRDatabaseReference
    Undefined symbol: _OBJC_CLASS_$_FIRTransactionResult

    Do you have any other solution because I'm getting crazy
     
  9. Muddasir

    Muddasir

    Joined:
    Jul 25, 2015
    Posts:
    3
    delete share class
     
    afurioso likes this.
  10. afurioso

    afurioso

    Joined:
    Jan 12, 2022
    Posts:
    88
    Can you tell me how to do it? I'm new on xcode
     
  11. d_sharov

    d_sharov

    Joined:
    Dec 24, 2021
    Posts:
    23
    The problem was solved in about a week.
    Summary: the problem is in cocoa pods.
    For the solution, various combinations of project settings were sorted out. We're going to a unity cloud build, so we couldn't manipulate the project's xcode directly.
    Added post-processing:

    Code (CSharp):
    1. [PostProcessBuild(45)] //must be between 40 and 50 to ensure that it's not overriden by Podfile generation (40) and that it's added before "pod install" (50)
    2. private static void PostProcessBuild_iOS(BuildTarget target, string buildPath)
    3. {
    4. if (target != BuildTarget.iOS)
    5. return;
    6.  
    7. Debug.Log(
    8. $"{nameof(PodFilePostProcess)} Start Post Process Build");
    9.  
    10. var content = "\n\npost_install do |installer|\n" +
    11.              "installer.pods_project.targets.each do |target|\n" +
    12.              "  target.build_configurations.each do |config|\n" +
    13.              $"    config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '{PlayerSettings.iOS.targetOSVersionString}'\n" +
    14.              "     config.build_settings['ENABLE_BITCODE'] = 'NO'\n" +
    15.              "  end\n" +
    16.              " end\n" +
    17.              "end\n";
    18.  
    19. using var streamWriter = File.AppendText(Path.Combine(buildPath, "Podfile"));
    20. streamWriter.WriteLine(content);
    21.  
    22. Debug.Log(
    23. $"{nameof(PodFilePostProcess)} End success Post Process Build");
    24. }
    25.  
    26.  
    27. And set in the ios resolver settings:
    28. use_framevorks! :linkage => :static
     

    Attached Files:

  12. creative_unity314

    creative_unity314

    Joined:
    Sep 3, 2020
    Posts:
    1
    Where you able to find solution because I'm too stuck with same error message