Flutter 应用程序 - 无法在真实设备上测试! X-Code 版本有问题

2024-02-11

当我尝试从 Android Studio 在我的设备上运行该应用程序时,最终出现以下错误:(请注意我的个人资料中设置了开发团队)

> Could not build the precompiled application for the device.
> ════════════════════════════════════════════════════════════════════════════════
> Building a deployable iOS app requires a selected Development Team
> with a  Provisioning Profile. Please ensure that a Development Team is
> selected by:   1- Open the Flutter project's Xcode target with
>        open ios/Runner.xcworkspace   2- Select the 'Runner' project in the navigator then the 'Runner' target
>      in the project settings   3- Make sure a 'Development Team' is selected under Signing & Capabilities > Team. 
>      You may need to:
>          - Log in with your Apple ID in Xcode first
>          - Ensure you have a valid unique Bundle ID
>          - Register your device with your Apple Developer Account
>          - Let Xcode automatically provision a profile for your app   4- Build or run your project again
> 
> For more information, please visit:  
> https://flutter.dev/docs/get-started/install/macos#deploy-to-ios-devices
> 
> Or run on an iOS simulator without code signing
> ════════════════════════════════════════════════════════════════════════════════
> 
> Error launching application on DMan.

然后,我打开我的 iOS 工作区,并检查我的“签名和功能”。我在那里设置了以下所有内容:

然后,我尝试通过工作区本身在手机上运行该应用程序,方法是按左上角的播放按钮。我收到以下错误:

然后我按照建议重新启动了计算机,但问题仍然存在。

我在用: Android Studio:花栗鼠 2021.2.1 补丁 1 X 代码:13.2.1 iOS版本:15.5


Xcode 13.2.1 将不支持 15.2 以上的 iOS 版本,这就是此问题的原因将 Xcode 更新到最新版本以使用 iOS 15.5

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

Flutter 应用程序 - 无法在真实设备上测试! X-Code 版本有问题 的相关文章

随机推荐