我正在使用 macOS Big Sur、Visual Studio Code 和当前稳定的 Flutter 版本。
\nflutter clean, rm -rf Pods Podfile.lock; \nflutter pub get; pod init; pod update; \npod install; turned it off and back on; \npulled it out and blew on it then stuck it back in\n
Run Code Online (Sandbox Code Playgroud)\n我的 Podfile 已针对当前 ios 进行更新,并且我已将“GoogleService-Info.plist”文件复制到几乎每个目录,包括 Runner/ lib/ main、Flutter/ 等。
\n我已经重新启动了我的 mac 和 vs code 几次,检查了 pubspec.yaml 的准确性,从冻结状态重新运行自动生成的文件。
\n使用 Visual Studio 和 Xcode 中的 iPhone 12 模拟器编译 …
我正在尝试在我的 Flutter 应用程序上启用直接 url 处理。我正在使用 Beamer,并且该应用程序可以按预期工作,并在应用程序模拟器内进行深度链接,并且通过 vscode 使用 chrome Web 浏览器模拟器时。
当我发布代码时,只有主页可以工作。直接访问url则不行。
当我切换回 /#/ 策略时,一切正常,我可以直接访问应用程序中的任何位置。
这意味着应用程序未加载,只有 Apache Web 服务器返回 404,因为它无法将 flutter jS 文件的 index.html 识别为 cgi。
不久前,我使用 php,有一种方法可以访问 url,而无需使用扩展名和 httpd.conf 设置中的覆盖。
有没有人在 apache web 服务器上为 web 编译的 flutter navigation 2.0 工作?
谢谢