react-native-arkit icon indicating copy to clipboard operation
react-native-arkit copied to clipboard

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

Open eddiehale3 opened this issue 6 years ago • 5 comments

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

eddiehale3 avatar Dec 19 '18 17:12 eddiehale3

I have the same issue

oricoh avatar Feb 09 '19 13:02 oricoh

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 avatar Mar 08 '19 22:03 kvasko2

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.

kvasko2 avatar Mar 14 '19 15:03 kvasko2

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.

macrozone avatar Mar 14 '19 15:03 macrozone

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

kvasko2 avatar Mar 14 '19 20:03 kvasko2