AppLovin / AppLovin-MAX-Unity-Plugin

127 stars 35 forks source link

Facebook & Ironsource iOS Undefined symbols #437

Closed justin-tsai closed 1 month ago

justin-tsai commented 1 month ago

MAX Plugin Version

7.0.0

Unity Version

2022.3.10f1

Device/Platform Info

iOS

Current Behavior

When I build a clean project with latest Facebook and IronSource, I get the following errors

Undefined symbols:

Linker command failed with exit code 1 (use -v to see invocation)

Surrounding logs:

ld: warning: ignoring duplicate libraries: '-lc++' ld: warning: Could not find or use auto-linked library 'libAppVerificationLibrary': library 'libAppVerificationLibrary' not found ld: warning: Could not find or use auto-linked library 'swiftXPC': library 'swiftXPC' not found ld: warning: Could not find or use auto-linked framework 'CoreAudioTypes': framework 'CoreAudioTypes' not found ld: warning: Could not find or use auto-linked framework 'UnitySwiftProtobuf': framework 'UnitySwiftProtobuf' not found ld: Undefined symbols: swift_FORCELOAD$_swiftXPC, referenced from: swift_FORCELOAD$swiftXPC$_FBAudienceNetwork in FBAudienceNetwork415 __swift_FORCELOAD$swiftXPC$_IronSource in IronSource[arm64]616

Expected Behavior

Build to succeed

How to Reproduce

Open demo project targetting iOS Install latest Facebook and Ironsource. Build to a folder Open .workspace file in XCode Try building to a device and the build fails with undefined symbols

Reproducible in the demo app?

Yes

Additional Info

No response

alvarshahanji commented 1 month ago

@justin-tsai which Xcode version are you using?

alvarshahanji commented 1 month ago

@justin-tsai this is an issue we observed on older Xcode versions and version 15.4 or above should not have the issue.

justin-tsai commented 1 month ago

Update: I was on Xcode 15.2. I updated to Xcode 16.0 and it works correctly. Thank you!