birkir / react-native-carplay

CarPlay with React Native
https://birkir.dev/react-native-carplay/
MIT License
669 stars 111 forks source link

Application does not implement CarPlay template application lifecycle methods in its scene delegate #49

Closed michalis-ligopsychakis closed 3 years ago

michalis-ligopsychakis commented 3 years ago

Hello everyone..

I am trying to open carplay in my app and I am taking this error: Terminating app due to uncaught exception 'NSGenericException', reason: 'Application does not implement CarPlay template application lifecycle methods in its scene delegate.' ..

This error shows on 'main.m ' file..

Can anyone help to that..? Thanks in advance!!

michalis-ligopsychakis commented 3 years ago

I found that this error occurs because of two things:

The problem is that I use some Libraries that needs these to be set... Also I use MacBook with M1, is this a reason for these problems..?

michalis-ligopsychakis commented 3 years ago

Finally I solved the problem... It was that I used MacBook M1 and I had to set Excluded Architectures to arm64...

On iMac Catalina works fine..

Unfortunately there was no support for this issue.. Anyway I think that this will help a lot anyone has the same issue as there is not much info on the internet about CarPlay..

Happy Coding!!

naftalibeder commented 3 years ago

@michalis-ligopsychakis can you explain this line?

It was that I used MacBook M1 and I had to set Excluded Architectures to arm64

It looks like you had already been doing that several days earlier in the Podfile, and it wasn't working (?):

config.build_settings["EXCLUDED_ARCHS[sdk=iphonesimulator*]"] = "arm64"

If you could explain what you ended up doing to make it work, as in your post on July 13, that would be very helpful. Are you simply saying you could not make it work on your M1 MacBook?

Thanks!