[flutter] DVTCoreDeviceEnabledState: DVTCoreDeviceEnabledState_Disabled set via user de...

[复制链接]
作者
n2n1   发布于2023-7-7 07:04:49 来自河北
flutter
flutter: 分享
Launching lib/main.dart on iPhone 14 Pro Max in debug mode...
Running pod install...
Running Xcode build...
Xcode build done.                                            3.8s
Failed to build iOS app
Error output from Xcode build:

    2023-07-07 06:59:59.293 xcodebuild[19060:121158] DVTCoreDeviceEnabledState: DVTCoreDeviceEnabledState_Disabled set via user default (DVTEnableCoreDevice=disabled)
    xcodebuild: error: Unable to find a destination matching the provided destination specifier:
                    { id:125EFC35-61C5-4572-A547-40447ED0F850 }

            Available destinations for the "Runner" scheme:
                    { platform:iOS, id:dvtdevice-DVTiPhonePlaceholder-iphoneos:placeholder, name:Any iOS Device }

Xcode's output:

    Writing result bundle at path:
            /var/folders/z6/kz6g7fd55z3c5lgpcts9lzq40000gn/T/flutter_tools.iVh1RF/flutter_ios_build_temp_dirnS7b4R/temporary_xcresult_bundle


Could not build the application for the simulator.
Error launching application on iPhone 14 Pro Max.



目前,这是唯一一个适合我构建Archive ipa的解决方案。不需要回滚到Xcode 14.2。
所以现在的解决方案是,打开ios/Pods/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh文件。
找到这行:

  1. if [ -L "${source}" ]; then
  2. echo "Symlinked..."
  3. source="$(readlink "${source}")"
  4. fi
复制代码

  1. if [ -L "${source}" ]; then
  2. echo "Symlinked..."
  3. source="$(readlink -f "${source}")"
  4. fi
复制代码

添加-f并保存文件。
这对我很有效,希望这对你有帮助。



回复

使用道具 举报

您需要登录后才可以回帖 登录 | 创建账号

本版积分规则

Archiver|小黑屋|( 冀ICP备2021005463号 )

GMT+8, 2024-4-28 19:57 , Processed in 0.119185 second(s), 26 queries , Gzip On.

N2N1 It社区 n2n1.cn

Copyright © 2001-2021,MeiCheng.

快速回复 返回顶部 返回列表