Skip to content

Undefined Symbol: error when attempting build an EG2 project with Xcode 16 #2051

@joemantey

Description

@joemantey

Our test project consists of 3 targets which are defined with Xcodegen:

  • App: The app over which we are running the tests
  • WhiteBoxUtils: A target that contains our white box tests methods that we call via eDistantObject
  • Tests: EG2 test target with all of our tests

We are having issues upgrading our EarlGrey2 tests project from Xcode 15 to Xcode 16 as we’re unable to export symbols from the App to the WhiteBoxUtils target.

When we build we see several error messages in the format of “Undefined symbol: OBJC_CLASS$_someClassName”

The only promising fix we’ve tested so far is using Xcodegen to create static libraries alongside our existing app targets for WhiteboxUtils to link to, but so far we haven’t been able to fully implement that

I was wondering if anyone has seen similar issues integrating EG2 into an Xcode 16 project and curious about any solutions that may have arisen.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions