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

Update XcodePostBuild.cs #102

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

nominedisorder
Copy link

Solves issue related to bug:
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Storyboard (<UIStoryboard: 0x283e21280>) doesn't contain a view controller with identifier 'unitySplashStoryboard''
This definitely occurs in the 2018 versions. I'm not sure about later 2017 versions.

Solves issue related to bug:
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Storyboard (<UIStoryboard: 0x283e21280>) doesn't contain a view controller with identifier 'unitySplashStoryboard''
This definitely occurs in the 2018 versions. I'm not sure about later 2017 versions.
@@ -271,6 +271,12 @@ private static void PatchUnityNativeCode(string pathToBuiltProject)
{
EditSplashScreenMM(Path.Combine(pathToBuiltProject, "Classes/UI/SplashScreen.mm"));
}

// TODO: There are possibly more versions with this issue.
if (Application.unityVersion.StartsWith("2018."))
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if you simply put this condition into the if condition above, will it still work?

Looking at the function in the issue you mentioned, the logic is pretty similar with 2017.3+ versions. If hasStoryboard is set to false, these storyboards won't conflict with each other, right?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll give it a try this week and report back shortly!

@jiulongw
Copy link
Owner

Hello, could you try if #104 solved this problem? Thanks!

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

Successfully merging this pull request may close these issues.

2 participants