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

Undefined in not an object (evaluating ARKit.ARPlaneDetection)

Open nitish1099 opened this issue 6 years ago • 11 comments

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

nitish1099 avatar Mar 09 '18 21:03 nitish1099

@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

macrozone avatar Mar 09 '18 21:03 macrozone

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

nitish1099 avatar Mar 09 '18 21:03 nitish1099

some more context would be helpful.

Which version of the library do you use?

macrozone avatar Mar 09 '18 21:03 macrozone

0.9.0-beta.7

nitish1099 avatar Mar 09 '18 21:03 nitish1099

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

macrozone avatar Mar 09 '18 21:03 macrozone

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?

nitish1099 avatar Mar 09 '18 21:03 nitish1099

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.

macrozone avatar Mar 09 '18 21:03 macrozone

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

On 10-Mar-2018 3:28 AM, "Marco Wettstein" [email protected] 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 .

nitish1099 avatar Mar 09 '18 22:03 nitish1099

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

macrozone avatar Mar 09 '18 22:03 macrozone

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

Thanks

On 10-Mar-2018 3:46 AM, "Marco Wettstein" [email protected] 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 .

nitish1099 avatar Mar 09 '18 22:03 nitish1099

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

joseocasioserra avatar Aug 02 '19 17:08 joseocasioserra