react-native-ar / react-native-arkit

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

no file or directory: PocketSVG #195

Closed eddiehale3 closed 5 years ago

eddiehale3 commented 5 years ago

I'm getting the following when trying to run an app with react-native-arkit:

no such file or directory: '/Users/eddiehale/Library/Developer/Xcode/DerivedData/RNArkitApp-fldfrsqhgepxxtakivtcwompfgup/Build/Products/Debug/PocketSVG.framework/PocketSVG'

I went to the directory and the file exists:

image

Steps:

  1. react-native init RNArkit
  2. cd RNArkit && yarn add react-native-arkit
  3. Followed manual installation steps: https://github.com/react-native-ar/react-native-arkit
  4. In XCode -> Build. Command line -> react-native run-ios

Running in XCode returns the error but I'm able to run the app in a simulator via react-native run-ios (still getting the error & Build Failed, but it will run). Any idea why XCode cannot see this file?

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 commented 5 years ago

I was able to fix by removing the PocketSVG.xcodeproj from the Library and adding it back.