使用 Android Studio 或 Visual Studio 构建时 Flutter 构建 ios 错误

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

我在尝试使用 AS/VS 构建 Flutter 应用程序时收到错误

Failed to build iOS app
Could not build the precompiled application for the device.
Parse Issue (Xcode): Module 'camera_avfoundation' not found
/Users/thanhnd/Projects/Flutter/flutter_tax_free/ios/Runner/GeneratedPluginRegistrant.m:11:8

但是当我使用 Xcode 构建时一切正常。

如何使用 AS/VS 构建 Flutter 应用程序?

谢谢!

ios flutter xcode android-studio visual-studio-code
1个回答
0
投票

我已经发现问题了。

这是因为我在Xcode中设置了错误的配置。昨天我将其设置为

DEV
而不是
dev

谢谢大家的帮助

enter image description here

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