ReactVision / viro

ViroReact: The AR and VR library for React Native πŸ“³πŸ’™πŸ’›πŸ€πŸ’š
MIT License
1.31k stars 149 forks source link

Simulator crash #97

Closed francois-pasquier closed 7 months ago

francois-pasquier commented 2 years ago

Requirements:

Please go through this checklist before opening a new issue

Environment

Please provide the following information about your environment:

  1. Development OS: Mac
  2. Device OS & Version: iOS 15.2
  3. Version: ViroReact: 2.22, React Native 0.67.2
  4. Device(s): IPhone 13 simulator

Description

When installing the library, it's impossible to run the app on simulator (even without any viro component being loaded). From the discord server, it seems some users of the library are able to get it running on simulator. It may be linked to using a previous version of the library, simulator or simulator OS?

Here is the error from the simulator crash report:

Exception Type:  EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note:  EXC_CORPSE_NOTIFY
Termination Reason: DYLD 1 Library missing
Library not loaded: @rpath/GTMSessionFetcher.framework/GTMSessionFetcher

Reproducible Demo

Here is a complete repro repo: https://github.com/francois-pasquier/viro-simulator-poc

robertjcolley commented 2 years ago

@doranteseduardo tagging to remember to build for iOS simulator in this release

loekTheDreamer commented 2 years ago

Im also waiting for this fix πŸ˜‰

ViktorVojtek commented 2 years ago

Hello @francois-pasquier I've encounter with this issue on viro-react v2.23.0. Version 2.22.0 should work just fine on any simulator.

Check your podfile. The pods for ViroReact should look like this:

pod 'ViroReact', :path => '../node_modules/@viro-community/react-viro/ios/'
pod 'ViroKit_static_lib', :path => '../node_modules/@viro-community/react-viro/ios/dist/ViroRenderer/static_lib'

The only way I get this issue on v2.22.0 were when my Podfile for viro look like this:

pod 'ViroReact', :path => '../node_modules/@viro-community/react-viro/ios/'
pod 'ViroKit', :path => '../node_modules/@viro-community/react-viro/ios/dist/ViroRenderer/'

Wich is suitable for v2.23.0 I suppose...

Pablo4Coding commented 2 years ago

Any updates on this?

francois-pasquier commented 2 years ago

I am using version 2.23.0, it's still ongoing I guess

wiulma commented 2 years ago

hi all! thanks for your amazing work! Same issue here When I try to start the app (without loading anything about scenes or viro related) it crashes. the log is the same mentioned by @francois-pasquier I know you don't support simulator, but is there any possibility to make it working? I just need it doesn't crash, in order to check all the orders screen are working correctly. thanks

alan-966 commented 2 years ago

I have a similar problem ( I hope you fix it soon

ansarikhurshid786 commented 2 years ago

I am also facing same issue. any solution for it.

yasheshcygbit commented 2 years ago

I am also facing the same issue. This is making testing on simulator totally impossible. Has anyone found a way around this?

sascha-kaleidoscode commented 1 year ago

+1 Same issue

pierre-lucas40 commented 1 year ago

+1

MrNapcae commented 1 year ago

+1

duyta7598 commented 1 year ago

Hello @francois-pasquier I've encounter with this issue on viro-react v2.23.0. Version 2.22.0 should work just fine on any simulator.

Check your podfile. The pods for ViroReact should look like this:

pod 'ViroReact', :path => '../node_modules/@viro-community/react-viro/ios/'
pod 'ViroKit_static_lib', :path => '../node_modules/@viro-community/react-viro/ios/dist/ViroRenderer/static_lib'

The only way I get this issue on v2.22.0 were when my Podfile for viro look like this:

pod 'ViroReact', :path => '../node_modules/@viro-community/react-viro/ios/'
pod 'ViroKit', :path => '../node_modules/@viro-community/react-viro/ios/dist/ViroRenderer/'

Wich is suitable for v2.23.0 I suppose...

I did as you said but It came with another error Screen Shot 2022-08-21 at 16 53 51 Do you have any idea how to fix this?

Update: The problem is mine, I upgraded react native from 0.63.4 to 0.66, It worked fine in 0.63.4 but not 0.66, may be is was some error build simulator in 0.66, not viro

ViktorVojtek commented 1 year ago

@duyta7598 use the [upgrade helper] (https://react-native-community.github.io/upgrade-helper/) for react native to check and reflect changes in all related files as it will show to you.

You should be fine, when you update everything regarding the helper. You should be able to use Viro up to v 0.68.3 of React Native. I have no luck with v 0.69 and higher, the different architecture though...

Anyway @ViroCommunity, is the fix of missing GTMSessionFetcher framework issue any priority or not? Would be nice to be able to work within the project on simulator when dealing with the "non AR" stuff.

skizzo commented 1 year ago

Is it somehow possible to just exclude the ViroReact and ViroKit pods when running on an iOS Simulator? I'm guessing this can be done with the Podfile, but I have no idea how. Thank you for any hints.

Vednus commented 1 month ago

Is it somehow possible to just exclude the ViroReact and ViroKit pods when running on an iOS Simulator? I'm guessing this can be done with the Podfile, but I have no idea how. Thank you for any hints.

You can do this in your podfile so that it only is included in release versions:

  pod 'ViroReact', :path => '../node_modules/@viro-community/react-viro/ios', :configurations => ['Release']
  pod 'ViroKit', :path => '../node_modules/@viro-community/react-viro/ios/dist/ViroRenderer/', :configurations => ['Release']