-
Notifications
You must be signed in to change notification settings - Fork 530
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
Error when running flutter run while embedding a Unity Project with Vuforia as its AR Framework #314
Comments
I am experiencing the exact same error |
Similar problem, the app builds, and then immediately produces the error. here's my environment:
Flutter doctor:
XCode build completes successfully, but there's an error immediately after the app starts:
Steps to reproduce are very simple:
I've also changed the It seems to be a simple issue of XCode build note being able to locate Vuforia correctly, but I don't have enough XCode experience to find out how to fix it. Error on running, after successful build: |
Managed to solve it: The main step for me was adding both Vuforia and ARFoundationDriver frameworks inside Runner, as it is where Xcode originally looks for them. Detailed steps for implementing Vuforia iOS in the example:
Related errors:
It's probably not the best way to solve this problem, we should just be able to modify the search path to where the the frameworks are originally placed, but I've tried in multiple places to no success. @Badjessa-git, @ChrisLmis, please comment if this helps you, maybe someone more experienced with Xcode could help finding a better way, or we could just add this solution into readme Vuforia: iOS section. |
Hi @mtpython, I have this error, do you happen to know how to fix it? Error: framework not found Vuforia ld: warning: directory not found for option '-F/Users/kuchin/2_Connected-Environments/9_CASA0022_Dissertation/6_Flutter-and-Unity/flutter_app_test/ios/Pods/../UnityLibrary' |
@mtpython The current Vuforia Third party frameworks look like this: |
Describe the bug
I have been unable to use Vuforia with the plugin on a ios. I followed all the instructions to install.
`(lldb) dyld: dependent dylib '@rpath/ARFoundationDriver.framework/ARFoundationDriver' not found for '/private/var/containers/Bundle/Application/EB7A6FE8-16A5-4A7E-A3C1-DC1953015CC5/Runner.app/Frameworks/UnityFramework.framework/UnityFramework', tried but didn't find: '/private/var/containers/Bundle/Application/EB7A6FE8-16A5-4A7E-A3C1-DC1953015CC5/Runner.app/Frameworks/ARFoundationDriver.framework/ARFoundationDriver' '/usr/lib/swift/ARFoundationDriver.framework/ARFoundationDriver' '@rpath/ARFoundationDriver.framework/ARFoundationDriver' '/System/Library/Frameworks/ARFoundationDriver.framework/ARFoundationDriver'
frame #0: 0x00000001048cf440 dyld
__abort_with_payload + 8 dyld
__abort_with_payload:-> 0x1048cf440 <+8>: b.lo 0x1048cf460 ; <+40>
0x1048cf444 <+12>: pacibsp
0x1048cf448 <+16>: stp x29, x30, [sp, #-0x10]!
0x1048cf44c <+20>: mov x29, sp
Target 0: (Runner) stopped. `
I tried adding Vuforia for iOS using instructions here https://library.vuforia.com/articles/Solution/Getting-Started-with-Vuforia-for-iOS-Development.html as a framework to the Runner without any success. Any help here would be greatly appreciated
Xcode 12.0
flutter doctor -v
`[✓] Flutter (Channel master, 1.26.0-13.0.pre.141, on macOS 11.1 20C69 darwin-x64, locale en-US)
• Flutter version 1.26.0-13.0.pre.141 at /Users/romeobahoumda/flutter
• Framework revision f9a8c86d79 (2 weeks ago), 2021-01-23 15:04:04 -0500
• Engine revision fdddf87080
• Dart version 2.12.0 (build 2.12.0-253.0.dev)
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
• Android SDK at /Users/romeobahoumda/Library/Android/sdk
• Platform android-29, build-tools 29.0.2
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 12.2, Build version 12B45b
• CocoaPods version 1.10.1
[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[✓] Android Studio (version 4.1)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)
[✓] VS Code (version 1.52.1)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.19.0
[✓] Connected device (2 available)
• iPhone (mobile) • 00008030-001824D01AD8802E • ios • iOS 14.3
• Chrome (web) • chrome • web-javascript • Google Chrome 88.0.4324.146
• No issues found!`
Smartphone (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: