Skip to content

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

@SeongSeopLIm

Description

@SeongSeopLIm

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions