如何设置Expo深度链接

问题描述 投票:0回答:1

我将

expo.scheme
中的
"com.test"
设置为
app.json
。但是,运行以下命令时出现错误:

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

还有什么需要设置的吗?我正在使用本地构建(

expo run:ios
)。

ios expo deep-linking react-native-deep-linking
1个回答
0
投票

问题是改方案后没有预建造成的。问题解决后

npx expo prebuild

© www.soinside.com 2019 - 2024. All rights reserved.