找不到框架“Pods_Runner”

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

我正在尝试运行 flutter 应用程序,但收到此错误

这里有同样的问题,但没有帮助

Launching lib/main_dev.dart on iPhone 15 in debug mode...
main_dev.dart:1
Upgrading Pods-Runner-frameworks.sh
Xcode build done.                                           54.7s
Failed to build iOS app
Error (Xcode): Framework 'Pods_Runner' not found

Error (Xcode): Linker command failed with exit code 1 (use -v to see invocation)

版本

[✓] Flutter (Channel stable, 3.10.5, on macOS 14.0 23A344 darwin-arm64, locale en-TR)
    • Flutter version 3.10.5 on channel stable at /Users/yarenalbayrak/Developer/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 796c8ef792 (4 months ago), 2023-06-13 15:51:02 -0700
    • Engine revision 45f6e00911
    • Dart version 3.0.5
    • DevTools version 2.23.1
[✓] Xcode - develop for iOS and macOS (Xcode 15.0)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 15A240d
    • CocoaPods version 1.11.3

ios flutter xcode cocoapods
1个回答
0
投票

如果您更改了 ios/Podfile 中的平台,请不要忘记更新 Pods 目标中的 iOS 部署目标。

我引用了 github 链接中的答案,该链接过去对我有帮助 -> https://github.com/flutter/flutter/issues/50711#issuecomment-770397291

The problem for me ended up being that the platform :ios, '12.0' was a higher iOS version than the targets specified in the XCode projects. Once I changed the target iOS in the XCode projects, it built. In XCode 11, that's at [Project Navigator button] -> Runner top level blue icon -> General -> Deployment Info -> Target.
© www.soinside.com 2019 - 2024. All rights reserved.