【问题标题】:flutter run on ios emulator在 ios 模拟器上运行颤振
【发布时间】:2022-08-19 14:46:01
【问题描述】:

Xcode 构建的错误输出: ↳ 2022-06-08 15:01:02.170 xcodebuild[77786:964621] 已请求但未找到带标识符的扩展点 Xcode.IDEKit.ExtensionSentinelHostApplications 插件的扩展 Xcode.DebuggerFoundation.AppExtensionHosts.watchOS com.apple.dt.IDEWatchSupportCore 2022-06-08 15:01:02.171 xcodebuild[77786:964621] 已请求但未找到带标识符的扩展点 Xcode.IDEKit.ExtensionPointIdentifierToBundleIdentifier for extension Xcode.DebuggerFoundation.AppExtensionToBundleIdentifierMap.watchOS 的插件 com.apple.dt.IDEWatchSupportCore ** 构建失败 **

Xcode 的输出: ↳ 在路径写入结果包: /var/folders/gd/tsbhn_r55f1bzmqmjwj99zzw0000gn/T/flutter_tools.mQ0a7x/flutter_ios_build_temp_dir7medmZ/temporary_xcresult_bundle

Failed to package /Users/thura/Project_studio/bliss.
Command PhaseScriptExecution failed with a nonzero exit code
note: Using new build system
note: Planning
note: Build preparation complete
note: Building targets in dependency order
/Users/thura/Project_studio/bliss/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment target \'IPHONEOS_DEPLOYMENT_TARGET\' is set to 8.0, but
the range of supported deployment target versions is 9.0 to 15.5.99. (in target \'leveldb-library\' from project \'Pods\')

Result bundle written to path:
    /var/folders/gd/tsbhn_r55f1bzmqmjwj99zzw0000gn/T/flutter_tools.mQ0a7x/flutter_ios_build_temp_dir7medmZ/temporary_xcresult_bundle

    标签: xcode flutter


    【解决方案1】:

    “Command PhaseScriptExecution failed with a nonzero exit code”可能来自许多不同的来源。

    常见的修复方法:

    • 删除派生数据
    • 重新启动您的 Mac
    • flutter clean + flutter pub get
    • 在 ios 文件夹中:pod deintegrate + pod install

    【讨论】:

    • 感谢您的重播,我在 xcode 上重建了我的颤振项目得到了一个错误 [错误 xcode_backend.sh:没有这样的文件或目录]
    • 如果您使用flutter create 创建一个新项目,您可以编译它吗?
    【解决方案2】:

    如果您使用 M1 Mac,请使用以下步骤

    如果您使用的是 Firebase,请尝试使用

    cloud_firestore: 3.2.1
    firebase_analytics: ^9.3.1
    firebase_core: 1.19.1
    firebase_auth: ^3.6.3
    

    终端

    flutter clean
    sudo arch -x86_64 gem install ffi
    arch -x86_64 pod update
    

    可能需要一点时间。

    改变你的 Podfile

    platform :ios, '14.0' 
    

    【讨论】:

      猜你喜欢
      • 2021-12-16
      • 2019-05-31
      • 1970-01-01
      • 2020-01-23
      • 2021-09-03
      • 1970-01-01
      • 2020-01-07
      • 2019-01-12
      • 2020-07-29
      相关资源
      最近更新 更多