Undefined symbols for architecture arm64

Hello,

I am building using Jenkins on a node that has Xcode 11.1 (IL2CPP, Universal) and I am getting some linker issues any idea how to fix this?

note: building on another node that has Xcode 10 works

5047007–495149–Logs.txt (187 KB)

Also had this issue in our CI scenario (Gitlab + custom scripts on both build node and C# side), different Unity version in 2019.2.x cycle, seems irrelevant to version of Unity, but only on XCode 11.1 though.

Turned out to be related to derivedData caching mechanism in XCode - cache is generated under
~/Library/Developer/Xcode/DerivedData/Unity-iPhone-
Clearing manually (xcodebuild clean doesn’t help this) by removing the dir helps, but issue randomly reappears after some new code gets added to the project.

While thinking on how to make it permanent, instead of doing something like
rm -rf ~/Library/Developer/Xcode/DerivedData/* before each build we found out that xcodebuild command has option to change location of derivedData called -derivedDataPath - this way we redirected it to temporary location our CI clears after each build.

Let me know if it helped.