viro icon indicating copy to clipboard operation
viro copied to clipboard

Simulator crash

Open francois-pasquier opened this issue 3 years ago • 14 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

francois-pasquier avatar Feb 13 '22 12:02 francois-pasquier

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

robertjcolley avatar Feb 13 '22 16:02 robertjcolley

Im also waiting for this fix 😉

loekTheDreamer avatar Feb 17 '22 09:02 loekTheDreamer

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

ViktorVojtek avatar Mar 28 '22 17:03 ViktorVojtek

Any updates on this?

Pablo4Coding avatar Apr 11 '22 12:04 Pablo4Coding

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

francois-pasquier avatar Apr 11 '22 13:04 francois-pasquier

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

wiulma avatar Apr 28 '22 19:04 wiulma

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

alan-966 avatar May 05 '22 14:05 alan-966

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

ansarikhurshid786 avatar Jun 22 '22 12:06 ansarikhurshid786

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

yasheshcygbit avatar Jun 28 '22 10:06 yasheshcygbit

+1 Same issue

sascha-kaleidoscode avatar Jul 25 '22 11:07 sascha-kaleidoscode

+1

pierre-lucas40 avatar Jul 30 '22 08:07 pierre-lucas40

+1

MrNapcae avatar Aug 09 '22 14:08 MrNapcae

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 avatar Aug 21 '22 09:08 duyta7598

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

ViktorVojtek avatar Sep 10 '22 09:09 ViktorVojtek

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.

skizzo avatar May 17 '23 08:05 skizzo