admin管理员组文章数量:1122832
Question:
I am using Capacitor with Next.js to convert my web app into a mobile app. The integration works fine when I configure capacitor.config.ts
as follows:
server: {
url: 'http://MY_IP:PORT',
cleartext: true,
}
This setup points to my local development server, and everything works as expected.
However, when I update the url
to the deployed version of my web app, e.g.:
server: {
url: '',
cleartext: false,
}
...the build fails in Xcode with the error:
"Failed to resolve host network app id to config"
The mobile app also renders a 500 status code after the failure.
Has anyone encountered this issue or knows how to properly configure Capacitor for production deployment? Any suggestions on resolving this would be greatly appreciated!
P/s: Perhaps from missing config in Info.plist?
Thank you!
Question:
I am using Capacitor with Next.js to convert my web app into a mobile app. The integration works fine when I configure capacitor.config.ts
as follows:
server: {
url: 'http://MY_IP:PORT',
cleartext: true,
}
This setup points to my local development server, and everything works as expected.
However, when I update the url
to the deployed version of my web app, e.g.:
server: {
url: 'https://mydeployedapp.com',
cleartext: false,
}
...the build fails in Xcode with the error:
"Failed to resolve host network app id to config"
The mobile app also renders a 500 status code after the failure.
Has anyone encountered this issue or knows how to properly configure Capacitor for production deployment? Any suggestions on resolving this would be greatly appreciated!
P/s: Perhaps from missing config in Info.plist?
Thank you!
Share Improve this question edited Nov 22, 2024 at 14:41 Rob 15.1k30 gold badges48 silver badges72 bronze badges asked Nov 22, 2024 at 14:31 TaiTrienTaiTrien 1251 silver badge7 bronze badges1 Answer
Reset to default 1After 2 days, I found that the problem came from firebase config because of mismatch bundle id. It's quite annoying due to not logging correctly
本文标签:
版权声明:本文标题:ios - "Failed to resolve host network app id to config" Error on Deployed URL in Xcode Build - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736303151a1931784.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论