How to setup Expo Deep linking

36 Views Asked by At

I set the expo.scheme to "com.test" in app.json. However I get an error when running the following commands:

npx uri-scheme open com.test://192.168.0.8:8081/--/first-view --ios

› iOS: Opening URI "com.test://192.168.0.8:8081/--/first-view" in simulator
An error was encountered processing the command (domain=NSOSStatusErrorDomain, code=-10814):
Simulator device failed to open com.test://192.168.0.8:8081/--/first-view.
Underlying error (domain=NSOSStatusErrorDomain, code=-10814):
        The operation couldn’t be completed. (OSStatus error -10814.)

Aborting run
An unexpected error was encountered. Please report it as a bug:
Error: xcrun exited with non-zero code: 194

Is there anything else I need to set? I'm using local build (expo run:ios).

1

There are 1 best solutions below

2
n8o On BEST ANSWER

The problem was caused by not prebuilding after changing the scheme. The problem was resolved after npx expo prebuild.