iOS 小记--error: Building for iOS Simulator, but the embedded framework 'Flutter.framework' was...

Flutter

Xcode升级12.5之后,Flutter Run 之后得到如下错误

    /Users/leopard/CODE/git/xxx-xxx-ios/flutter_module_xxx/.ios/Runner.xco
    deproj: error: Building for iOS Simulator, but the embedded framework
    'App.framework' was built for macOS. (in target 'Runner' from project
    'Runner')
   Users/leopard/CODE/git/xxx-xxx-ios/flutter_module_xxx/.ios/Runner.xco
    deproj: error: Building for iOS Simulator, but the embedded framework
    'Flutter.framework' was built for iOS + iOS Simulator. (in target 'Runner'
    from project 'Runner')

说到底还是配置问题,打开runner.xcworkspace,修改Buildsetting--》Validate Workspace 为YES.

相关链接1
相关链接2

你可能感兴趣的:(iOS 小记--error: Building for iOS Simulator, but the embedded framework 'Flutter.framework' was...)