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

[Bug]: Windows 11 IOS Build error in Unity 2021.3.42f1 #757

Closed
1 task done
GabrielFIAB opened this issue Sep 2, 2024 · 2 comments
Closed
1 task done

[Bug]: Windows 11 IOS Build error in Unity 2021.3.42f1 #757

GabrielFIAB opened this issue Sep 2, 2024 · 2 comments

Comments

@GabrielFIAB
Copy link

GabrielFIAB commented Sep 2, 2024

What happened?

onesignal_bug

When building in Unity 2021.3.42f1 for IOS the build will complete however the OneSignal files are not copied into the build folder. This is indicated in an error that is produced.
Looking at the target path I can see that it does C://etcC:// when the path should only have one C://etc

Steps to reproduce?

0. On Windows 11
1. Install Unity 2021.3.42f1
2. Install OneSignal 5.1.8
3. Build for IOS

What did you expect to happen?

The IOS build should include the necessary OneSignal files.

Unity version

2021.3.42f1

OneSignal Unity SDK version

5.1.8

Platform

iOS

Relevant log output

DirectoryNotFoundException: Could not find a part of the path "C:\Users\Username\Desktop\APKs\iOS\e\C:\Users\Username\Desktop\APKs\iOS\e\ConnectTheWords.entitlements".
System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.Boolean anonymous, System.IO.FileOptions options) (at <3a0ddde1abdb49459f4d700219c8f358>:0)
System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.IO.FileOptions options) (at <3a0ddde1abdb49459f4d700219c8f358>:0)
(wrapper remoting-invoke-with-check) System.IO.FileStream..ctor(string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare,int,System.IO.FileOptions)
System.IO.StreamWriter..ctor (System.String path, System.Boolean append, System.Text.Encoding encoding, System.Int32 bufferSize) (at <3a0ddde1abdb49459f4d700219c8f358>:0)
System.IO.StreamWriter..ctor (System.String path, System.Boolean append, System.Text.Encoding encoding) (at <3a0ddde1abdb49459f4d700219c8f358>:0)
(wrapper remoting-invoke-with-check) System.IO.StreamWriter..ctor(string,bool,System.Text.Encoding)
System.IO.File.WriteAllText (System.String path, System.String contents, System.Text.Encoding encoding) (at <3a0ddde1abdb49459f4d700219c8f358>:0)
UnityEditor.iOS.Xcode.PlistDocument.WriteToFile (System.String path) (at C:/build/output/unity/unity/External/XcodeAPI/Xcode/PlistParser.cs:404)
UnityEditor.iOS.Xcode.ProjectCapabilityManager.WriteToFile () (at C:/build/output/unity/unity/External/XcodeAPI/Xcode/ProjectCapabilityManager.cs:78)
OneSignalSDK.iOS.BuildPostProcessor.AddProjectCapabilities () (at Library/PackageCache/[email protected]/Editor/BuildPostProcessor.cs:164)
OneSignalSDK.iOS.BuildPostProcessor.OnPostprocessBuild (UnityEditor.Build.Reporting.BuildReport report) (at Library/PackageCache/[email protected]/Editor/BuildPostProcessor.cs:109)
UnityEditor.Build.BuildPipelineInterfaces+<>c__DisplayClass18_0.<OnBuildPostProcess>b__1 (UnityEditor.Build.IPostprocessBuildWithReport bpp) (at <9efa87370fa94dd98ca62b05b2a91b8f>:0)
UnityEditor.Build.BuildPipelineInterfaces.InvokeCallbackInterfacesPair[T1,T2] (System.Collections.Generic.List`1[T] oneInterfaces, System.Action`1[T] invocationOne, System.Collections.Generic.List`1[T] twoInterfaces, System.Action`1[T] invocationTwo, System.Boolean exitOnFailure) (at <9efa87370fa94dd98ca62b05b2a91b8f>:0)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)

Code of Conduct

  • I agree to follow this project's Code of Conduct
@shepherd-l
Copy link
Contributor

Do you have another PostProcessor script besides OneSignal's?

Your issue looks similar to: #491

If you do have multiple PostProcessor scripts, could you try what this user suggested at let us know if it works for you?
#491 (comment)

... make sure that [the OneSignal] PostProcessor script is running first by changing the callbackOrder on my other PostProcessor script.

@shepherd-l
Copy link
Contributor

Closing due to inactivity. If this is still an issue, please open a new report with updated information

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