google / EarlGrey

:tea: iOS UI Automation Test Framework
http://google.github.io/EarlGrey/
Apache License 2.0
5.62k stars 744 forks source link

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

Open joemantey opened 1 month ago

joemantey commented 1 month ago

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

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: _OBJCCLASS$_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.

YuantongL commented 1 week ago

+1 We see exact same issue on our project.

gremlinflat commented 1 hour ago

Is there any update for this? I've experienced the same thing