我将
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
)。
问题是改方案后没有预建造成的。问题解决后
npx expo prebuild
。