undefined symbol errors

hello, when i try to archive my unity game through xcode to publish it on app store connect i get these 4 undefined symbol errors: undefined symbol:_initializeclass, undefined symbol: _initializeunityobject, undefined symbol: _onrequestasync, undefined symbol: _onrequestsync. is there anyway to get rid of this error ? the only solution i found was enabling module verifier in build settings but when i do that i get this error:error: Sandbox: mkdir(24068) deny(1) file-write-create , i get rid of this by choosing no to user script sandboxing in builds settings, but when i do that i get these errors: double-quoted include "LifeCycleListener.h" in framework header, expected angle-bracketed instead, "RedefinePlatforms.h can only be used after UndefinePlatforms.h got included before.", double-quoted include "RenderPluginDelegate.h" in framework header, expected angle-bracketed instead, umbrella header for module 'UnityFramework' does not include header 'RedefinePlatforms.h', umbrella header for module 'UnityFramework' does not include header 'RedefinePlatforms.h', fatal) could not build module 'Test'. what should i do ?

Thanks for the post. Can you post the output from the Xcode console here

It seems like this is a Unity game through Xcode for publishing on the App Store Connect. The undefined symbol errors you mentioned are related to missing or incorrectly linked symbols in your build. Here are some steps you can take to troubleshoot and resolve these errors:

  • Clean and Rebuild:
    • First, try cleaning your Xcode project (Product > Clean) and then rebuilding it (Product > Build). This can help remove any temporary build artifacts and ensure a fresh build.
  • Update Unity Framework and Xcode:
    • Ensure that you are using the latest versions of Unity and Xcode. Outdated versions can sometimes cause compatibility issues.
  • Reconfigure Unity Framework:
    • Go to your Unity project's 'Editor' folder.
    • Open the 'BuildSettings.asset' file in a text editor.
    • Search for 'RedefinePlatforms.h' and 'UnityFramework.h' include directives. Ensure they are correctly defined and included only once.
  • Contact Unity Support:
    • If none of the above steps work, the issue might be specific to your Unity project or a combination of settings.
    • I recommend reaching out to Unity Support for further assistance, as they can provide more targeted help based on your project's structure and configuration.

Remember to be cautious when making changes to your project's settings and always keep backups of your project before making significant alterations. The process may require some trial and error, so be patient and persistent in resolving these issues.

Albert Pascual
  Worldwide Developer Relations.

undefined symbol errors
 
 
Q