iOS Archive Fails

Reply by k3kalinix | 2024-07-17 18:22:55

2.1.0

Reply by lukefoster007 | 2024-07-17 18:25:52

yes

Reply by lukefoster007 | 2024-07-17 18:27:53

i have customized the convai demo scene, my app is a single screen with just avayar at the center

Reply by lukefoster007 | 2024-07-17 18:28:15

does updating the plugib will effect it?

Reply by lukefoster007 | 2024-07-17 18:34:05

<@1023671043287699568>

Reply by k3kalinix | 2024-07-17 18:34:08

Okay

Reply by k3kalinix | 2024-07-17 18:34:11

Give me a minute

Reply by k3kalinix | 2024-07-17 18:34:15

let me find old example posts

Reply by lukefoster007 | 2024-07-17 18:35:13

okay, thanks

Reply by k3kalinix | 2024-07-17 18:37:34

  • Ensure that your Unity project contains an Assets/link.xml file with the following content to prevent potential FileNotFoundException errors related to the libgrpc_csharp_ext.x64.dylib file:
<linker>
  <assembly fullname="UnityEngine">
    <type fullname="UnityEngine.Application" preserve="fields">
      <property name="platform"/>
    </type>
  </assembly>
</linker>
  • Create Assets/Scripts/BuildIos.cs script in your Unity project. This script should be added to a game object within your scenes and will automate steps 2 and 3 during the post-build process:
#if UNITY_EDITOR && UNITY_IOS
using System.IO;
using UnityEngine;
using UnityEditor;
using UnityEditor.Callbacks;
using UnityEditor.iOS.Xcode;
public class BuildIos : MonoBehaviour
{
 [PostProcessBuild]
 public static void OnPostProcessBuild(BuildTarget target, string path)
 {
  var projectPath = PBXProject.GetPBXProjectPath(path);
  var project = new PBXProject();
  project.ReadFromString(File.ReadAllText(projectPath));
#if UNITY_2019_3_OR_NEWER
  var targetGuid = project.GetUnityFrameworkTargetGuid();
#else
  var targetGuid = project.TargetGuidByName(PBXProject.GetUnityTargetName());
#endif
  project.AddFrameworkToProject(targetGuid, "libz.tbd", false);
  project.SetBuildProperty(targetGuid, "ENABLE_BITCODE", "NO");
  File.WriteAllText(projectPath, project.WriteToString());
 }
}
#endif

GRPC DLL LINK: Dropbox

Reply by lukefoster007 | 2024-07-17 18:41:00

i have one more quick question, will i lose my work in demo scene if i update the package?

Reply by k3kalinix | 2024-07-17 18:42:17

Yes, it is a big update.

Reply by lukefoster007 | 2024-07-17 18:42:48

oh okay

Reply by lukefoster007 | 2024-07-17 18:43:39

where should i add dll files

Reply by lukefoster007 | 2024-07-17 18:44:00

btw, my error is related to lib_burst_generated.cpp

Replying to lukefoster007’s Message

Reply by lukefoster007 | 2024-07-17 18:43:39
where should i add dll files

Reply by k3kalinix | 2024-07-17 18:45:27

Scripts / Editor

Reply by lukefoster007 | 2024-07-17 18:49:22

Assets/Scripts/Editor?

Reply by lukefoster007 | 2024-07-17 18:50:01

or Assets/Convai/Scripts/Editor?

Reply by lukefoster007 | 2024-07-17 18:50:40

Assets/link.xml
or Assets/Convai/link.xml?

Replying to lukefoster007’s Message

Reply by lukefoster007 | 2024-07-17 18:50:40
Assets/link.xml
or Assets/Convai/link.xml?

Reply by k3kalinix | 2024-07-17 18:50:49

.