Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Game not building after Xcode and MacOS update #187

Open
flashmandv opened this issue Dec 4, 2023 · 4 comments
Open

Game not building after Xcode and MacOS update #187

flashmandv opened this issue Dec 4, 2023 · 4 comments

Comments

@flashmandv
Copy link

flashmandv commented Dec 4, 2023

So I updated Xcode to v15.0.1 and MacOS to Sanoma 14.1.1 and the game stopped building for Mac App store (after also updating your plugin to latest).
The exception is:
AppleAuthMacosPostprocessorHelper: Error while fixing MacOSAppleAuthManager.bundle bundle identifier :: Could not find a part of the path "/Users/MyMac/Documents/RentoBoardHQ/BinMacStore/PROD/Contents/Plugins/MacOSAppleAuthManager.bundle/Contents/Info.plist".

I debugged it and the editor code is trying to open .app file but I'm exporting Xcode project.
Strangely exporting .app also did not work (despite the file path being OK).

But I feel that should not be the cause of auth plugin not working as I see it only makes configs that I can make in Xcode.
The game is crashing when invoking the LoginWithAppleId method.

DllNotFoundException: MacOSAppleAuthManager assembly:<unknown assembly> type:<unknown type> member:(null) [STACK] +AppleAuth.AppleAuthManager..cctor () (at <d2da6348442a410d972f6d232b2b5b4f>:0) Rethrow as TypeInitializationException: The type initializer for 'AppleAuth.AppleAuthManager' threw an exception.

Tried importing the package both via package manager and via .unitypackage file.
MacOSAppleAuthManager plugin does not get copied to Xcode Plugins folder and even coping it manually does not work
Any ideas?

@flashmandv
Copy link
Author

So I fixed the SIgnIn exception issue by setting Any CPU for MacOSAppleAuthManager.bundle and it copied to plugins Xcode project folder and now I can login.
But you may still want to fix the other issue with the helper

@lupidan
Copy link
Owner

lupidan commented Jan 21, 2024

@flashmandv If you can provide a Unity version, I can take a look. Plugin settings between Unity versions can be a bit problematic if fiddled with.

@flashmandv
Copy link
Author

Hello,
Unity version is 2021.3.27.

Thanks!

@lupidan
Copy link
Owner

lupidan commented Apr 21, 2024

Are you trying to export a macOS Xcode project instead of a normal build? I got the error for that particular case.

The plugin doesn't currently support Xcode project generation, that's something I would need to look into.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants