Closed felix330 closed 1 year ago
You can try to disable bitcode in the export script.
FlutterUnityIntegration\Editor\XcodePostBuild.cs
There should be a "ENABLE_BITCODE", "YES"
line in there.
This hasn't been updated since bitcode got deprecated recently.
@timbotimbo Thank you. This did get me one step further, as now the app will build successfully. However, it crashes immediately upon startup, with a message stating that it can't find VuforiaEngine. The Vuforiaengine framework does seem to exist in XCode however. I've tried re-adding it to the Unity-iPhone target, but no luck. Any ideas?
lldb) dyld[10151]: Library not loaded: @rpath/VuforiaEngine.framework/VuforiaEngine Referenced from: /private/var/containers/Bundle/Application/085F4E7E-DBC1-4AE7-9BE9-D0F9B15203B7/Runner.app/Frameworks/UnityFramework.framework/UnityFramework Reason: tried: '/private/var/containers/Bundle/Application/085F4E7E-DBC1-4AE7-9BE9-D0F9B15203B7/Runner.app/Frameworks/VuforiaEngine.framework/VuforiaEngine' (no such file), '/usr/lib/swift/VuforiaEngine.framework/VuforiaEngine' (no such file), '/usr/lib/swift/VuforiaEngine.framework/VuforiaEngine' (no such file), '/private/var/containers/Bundle/Application/085F4E7E-DBC1-4AE7-9BE9-D0F9B15203B7/Runner.app/Frameworks/VuforiaEngine.framework/VuforiaEngine' (no such file), '/private/var/containers/Bundle/Application/085F4E7E-DBC1-4AE7-9BE9-D0F9B15203B7/Runner.app/Frameworks/VuforiaEngine.framework/VuforiaEngine' (no such file), '/private/var/containers/Bundle/Application/085F4E7E-DBC1-4AE7-9BE9-D0F9B15203B7/Runner.app/Frameworks/VuforiaEngine.framework/VuforiaEngine' (no such file), '/usr/lib/swift/VuforiaEngine.framework/VuforiaEngine' (no such file), '/usr/lib/swift/VuforiaEngine.framework/VuforiaEngine' (no such file), '/private/var/containers/Bundle/Application/085F4E7E-DBC1-4AE7-9BE9-D0F9B15203B7/Runner.app/Frameworks/VuforiaEngine.framework/VuforiaEngine' (no such file), '/private/var/containers/Bundle/Application/085F4E7E-DBC1-4AE7-9BE9-D0F9B15203B7/Runner.app/Frameworks/VuforiaEngine.framework/VuforiaEngine' (no such file), '/private/var/containers/Bundle/Application/085F4E7E-DBC1-4AE7-9BE9-D0F9B15203B7/Runner.app/Frameworks/VuforiaEngine.framework/VuforiaEngine' (no such file), '/System/Library/Frameworks/VuforiaEngine.framework/VuforiaEngine' (no such file)
Looka like Vuforia has docs about using it with Unity as a library, which is used here.
I did eventually make it work. The steps are similar, but not the same as the ones in Vuforia's docs. Here are the slightly convoluted steps:
I've been trying to setup a new Flutter project with a Unity project containing Vuforia 10.12. However, as soon as Vuforia is added to the Unity project, the Flutter project will no longer build. I'm getting this error message:
I've already tried setting "enable bitcode" to false on all targets, but the error will still show up. Upon further research, Vuforia has just removed bitcode support in its most recent release, with the reason that bitcode is no longer allowed for app submissions. Does this mean that I can't use the most recent Vuforia with the Unity widget and that if I were to use an older version, it would not be able to be submitted to the app store? Or is there anything else I could do about this error?