birkir / react-native-carplay

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

Instructions and issue running Example test2.xcworkspace #25

Closed chownation closed 3 years ago

chownation commented 4 years ago

Running into an issue running Example app - after setting up by (1) yarn in root dir, (2) yarn in example, (3) yarn build:dev in root dir, (4) pod install in example/ios

Wanted to confirm steps to setup as templates appear to be missing images and getting exception below

Simulator Screen Shot - iPhone 11 - 2020-10-24 at 17 27 36 Simulator Screen Shot - iPhone 11 - 2020-10-24 at 17 27 33

libc++abi.dylib: terminating with uncaught exception of type NSException
*** Terminating app due to uncaught exception 'NSGenericException', reason: 'An error was encountered during a template operation, but no completion block was specified. Error: Error Domain=CarPlayErrorDomain Code=-1 "No templates were available to be popped." UserInfo={NSLocalizedDescription=No templates were available to be popped.}'
birkir commented 4 years ago

Hit reload on the iOS app once you've opened the CarPlay app.

Another option is to force close the iOS app and then open the CarPlay app.

I think this is happening when iOS app starts without CarPlay connected. I still have to work on the connect/disconnect events.

tomdye commented 3 years ago

Following the above instructions and reloading appears to get the example app running however most of the functionality appears to be broken.

tomdye commented 3 years ago

Will be improved via: https://github.com/birkir/react-native-carplay/pull/33