lupidan / apple-signin-unity

Unity plugin to support Sign In With Apple Id
MIT License
588 stars 83 forks source link

Game not building after Xcode and MacOS update #187

Open flashmandv opened 9 months ago

flashmandv commented 9 months ago

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 commented 9 months ago

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 commented 7 months ago

@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 commented 7 months ago

Hello, Unity version is 2021.3.27.

Thanks!

lupidan commented 4 months ago

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.