Skip to content

Undefined symbols UISceneWillConnectNotification #4547

@Shebuka

Description

@Shebuka

[READ] Step 1: Are you in the right place?

  • For issues or feature requests related to the code in this repository
    file a Github issue.

[REQUIRED] Step 2: Describe your environment

  • Xcode version: 10.3 (10G8)
  • iOS SDK: 12.4
  • Firebase SDK version: 6.14.0
  • Firebase Component: GoogleUtilities
  • Component version: latest

[REQUIRED] Step 3: Describe the problem

Steps to reproduce:

Failing to build a project that I'm updating from Fabric Answers to Google Analytics.

Added all the requested frameworks and updated the code that builds perfectly, but the linker is failing with this error:

Undefined symbols for architecture armv7:
  "_UISceneWillConnectNotification", referenced from:
      ___47+[GULAppDelegateSwizzler proxyOriginalDelegate]_block_invoke in GoogleUtilities(GULAppDelegateSwizzler.o)
  "_OBJC_CLASS_$_UIScene", referenced from:
      objc-class-ref in GoogleUtilities(GULAppDelegateSwizzler.o)
  "___isPlatformVersionAtLeast", referenced from:
      ___47+[GULAppDelegateSwizzler proxyOriginalDelegate]_block_invoke in GoogleUtilities(GULAppDelegateSwizzler.o)
      +[GULAppDelegateSwizzler handleSceneWillConnectToNotification:] in GoogleUtilities(GULAppDelegateSwizzler.o)
      -[GULAppDelegateSwizzler scene:openURLContexts:] in GoogleUtilities(GULAppDelegateSwizzler.o)

I've traced that this pull request introduced use of UISceneWillConnectNotification a couple of weeks ago.

Relevant Code:

        [[NSNotificationCenter defaultCenter]
            addObserver:self
               selector:@selector(handleSceneWillConnectToNotification:)
                   name:UISceneWillConnectNotification
                 object:nil];

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions