react-native-ar / react-native-arkit

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

Undefined in not an object (evaluating ARKit.ARPlaneDetection) #169

Open nitish1099 opened 6 years ago

nitish1099 commented 6 years ago

screen shot 2018-03-10 at 2 55 06 am

macrozone commented 6 years ago

@nitish1099 can you verify that the library is installed correctly?

It should appear under your Libraries in xcode

bildschirmfoto 2018-03-09 um 22 28 15
nitish1099 commented 6 years ago

screen shot 2018-03-10 at 3 03 39 am

macrozone commented 6 years ago

some more context would be helpful.

Which version of the library do you use?

nitish1099 commented 6 years ago

0.9.0-beta.7

macrozone commented 6 years ago

ok thx. Can you give a better reproduction? Did it work with previous versions?

nitish1099 commented 6 years ago

Haven't tried, This is the first time I'm using this kit. Also I'm getting this error in simulator. It should work there right?

macrozone commented 6 years ago

arkit only works on the device, altough it should not through that error. You should get orbit control on the simulator.

Check that you are using ios11 and latest xcode.

nitish1099 commented 6 years ago

I am using xcode 9 and iOS 11 iPhone 6 in simulator

On 10-Mar-2018 3:28 AM, "Marco Wettstein" notifications@github.com wrote:

arkit only works on the device, altough it should not through that error. You should get orbit control on the simulator.

Check that you are using ios11 and latest xcode.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/react-native-ar/react-native-arkit/issues/169#issuecomment-371956840, or mute the thread https://github.com/notifications/unsubscribe-auth/AB0a8MvT5cHrvsxS2ZehEP0RZDtNaqMRks5tcvr1gaJpZM4Sk4ry .

macrozone commented 6 years ago

can you:

nitish1099 commented 6 years ago

Okay it's working in iPhone 8 simulator for some reason

Thanks

On 10-Mar-2018 3:46 AM, "Marco Wettstein" notifications@github.com wrote:

can you:

  • check if under targets --> build phases --> you see libRCTARKit.a
  • clean the projekt: cmd + shift + k
  • restart packager (react-native start)
  • run it again in xcode on real device

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/react-native-ar/react-native-arkit/issues/169#issuecomment-371960823, or mute the thread https://github.com/notifications/unsubscribe-auth/AB0a8Cs-5Kx-yGFp3_x1rFwBbcF4Bk3Tks5tcv80gaJpZM4Sk4ry .

joseocasioserra commented 4 years ago

I had the same issue. I just followed the manual installation steps and added the .workspace instead of the .xcodeproj and it worked.