ReactVision/viro

Simulator crash

Closed this issue ยท 16 comments

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

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

Im also waiting for this fix ๐Ÿ˜‰

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...

Any updates on this?

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

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

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

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

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

+1 Same issue

+1

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

@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

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.

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']