我将 Xcode 更新为版本 13.4,将 android studio 更新为 Chipmunk,在此之后,我在尝试为 ios 构建时遇到以下错误。此问题仅发生在 ios 版本中。
\n以下是我收到的日志。
\nXcode build done. 19.5s\nFailed to build iOS app\nError output from Xcode build:\n\xe2\x86\xb3\n 2022-05-27 19:18:46.624 xcodebuild[62430:463863] Requested but did not find extension point with identifier Xcode.IDEKit.ExtensionSentinelHostApplications for extension Xcode.DebuggerFoundation.AppExtensionHosts.watchOS of plug-in com.apple.dt.IDEWatchSupportCore\n 2022-05-27 19:18:46.624 xcodebuild[62430:463863] Requested but did not find extension point with identifier Xcode.IDEKit.ExtensionPointIdentifierToBundleIdentifier for extension Xcode.DebuggerFoundation.AppExtensionToBundleIdentifierMap.watchOS of plug-in com.apple.dt.IDEWatchSupportCore\n ** BUILD FAILED **\n\n\nXcode's output:\n\xe2\x86\xb3\n Writing result bundle at path:\n /var/folders/6v/14mdnyyd4vs7gh4r1ry0hfxh0000gn/T/flutter_tools.IBcqbj/flutter_ios_build_temp_dirq4Dibw/temporary_xcresult_bundle\n\n\n Failed to package /Users/bhaskarrajaryal/AndroidStudioProjects/PersonalProjects/FlutterProjects/testing.\n Command PhaseScriptExecution failed with a nonzero exit code\n note: Using new build system\n note: Planning\n note: Build preparation complete\n note: Building targets in dependency order\n\n Result bundle written to path:\n /var/folders/6v/14mdnyyd4vs7gh4r1ry0hfxh0000gn/T/flutter_tools.IBcqbj/flutter_ios_build_temp_dirq4Dibw/temporary_xcresult_bundle\n\n\nCould not build the application for the simulator.\nError launching application on iPhone 11.\nRun Code Online (Sandbox Code Playgroud)\n谁能帮我解决这个问题,因为我因此被困了几天?
\n小智 3
这里的问题是,不幸的是,Flutter 模板默认创建的 Podfile 没有设置特定的 iOS 版本。
执行此操作可以解决此问题:
在项目的 ios/ 文件夹中,打开 Podfile。在 Podfile 顶部,确保此行未被注释掉,并将 iOS 版本更改为 12.0。
更改自:
#平台:ios,'8.0'
到:
platform :ios, '12.0' 在项目的 ios/ 文件夹内的终端中运行 pod deintegrate。
在 ios/ 文件夹中运行 pod install --repo-update
这应该可以解决问题!
如果在此之后您收到以下错误
CocoaPods 没有设置您项目的基本配置,因为您的项目已经有自定义配置集。为了让 CocoaPods 集成正常工作,请设置目标的基本配置
然后,您需要在 Xcode 中打开 iOS 工作区,并选择左上角的根项目,然后在“信息”选项卡中,选择您的配置(在本例中为“调试”)并将其更改为“无”。之后,再次执行 pod install。
这里的图片: 点击这里
| 归档时间: |
|
| 查看次数: |
15085 次 |
| 最近记录: |