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

UniversalSDKSettings.asset Not applied in batchmode for iOS Builds #48

Open
SeongSeopLIm opened this issue Jun 5, 2024 · 1 comment

Comments

@SeongSeopLIm
Copy link

SeongSeopLIm commented Jun 5, 2024

When building for iOS in batch mode, the SDKSettings values are not applied.

In PListUpdating.OnPostprocessBuild, which inputs information into Info.plist, the UniversalSDKSettings.Instance value is not set.

[PostProcessBuildAttribute(1)]
public static void OnPostprocessBuild(BuildTarget target, string pathToBuiltProject)
{
    ...
}

During builds in the GUI editor, the Instance is set from UniversalSDKSettingsEditor, so there are no issues. However, in batchmode, it seems to bypass UniversalSDKSettingsEditor.OnInspectorGUI and directly go to UniversalSDKSettings.Instance.

Since UniversalSDKSettings.Instance does not handle the UNITY_EDITOR condition, it fails to fetch the asset via AssetDatabase.LoadAssetAtPath, leading to the failure of proper value settings.

Unity version : 2022.3.20
SDK version :1.3.2

@coolishbee
Copy link
Owner

Thanks for the good report. I'll make sure it's resolved ASAP.

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