react-native-ar / react-native-arkit

React Native binding for iOS ARKit
MIT License
1.72k stars 143 forks source link

Library not loaded: @rpath/PocketSVG.framework/PocketSVG #196

Open eddiehale3 opened 5 years ago

eddiehale3 commented 5 years ago

I can build my demo app but unable to run on a device. I get the following:

dyld: Library not loaded: @rpath/PocketSVG.framework/PocketSVG Referenced from: /var/containers/Bundle/Application/D9192E4B-C3DA-4520-AF0C-C9B10545F85C/RNArkitApp.app/RNArkitApp Reason: image not found

image

image

I have the PocketSVG.xcodeproj added per the manual instructions. Is there an extra step that I'm missing?

react-native-cli: 2.0.1 react-native: 0.57.8 react-native-arkit: ^0.9.0 react: 16.6.3 Xcode version: 10.1 (10B61) iOS version: 12 Device: iPhone X

oricoh commented 5 years ago

I have the same issue

kvasko2 commented 5 years ago

I also have this issue in only slightly updated framework versions from what the original poster had.

I was able to hackily get around it by removing PocketSVG and any references to it in the RCTARKit project. It means you cannot use the ARKit.Shape component but, I do not currently need to use it, even though it would be nice to have it working.

I am sure there is some way to ensure the dependency is properly filled, but I did not feel like spending my time figuring that out yet.

kvasko2 commented 5 years ago

I am an idiot. The "iOS > Manual Installation" section of the readme covers all that is needed. I figured most of it out without seeing that, except for the last step where PocketSVG ios is added as an embedded binary.

macrozone commented 5 years ago

sorry for the pocketsvg integration. I know its not super clean and only really needed for one small feature: It enables you to create easy 3d objects by using a 2d svg shape and extrude it.

kvasko2 commented 5 years ago

No worries macrozone. It is a pretty nice addition. Worth the few seconds it takes to setup the dependencies manually.