无法在最新的Xcode 15 Stable,iOS 17 stable上构建
关于https://github.com/pichillilorenzo/flutter_inappwebview/issues/1735
flutter run
Could not build the precompiled application for the device.
Error (Xcode): type argument 'nw_proxy_config_t' (aka 'struct nw_proxy_config *') is neither an Objective-C object nor a block type
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.0.sdk/System/Library/Frameworks/WebKit.framework/Headers/WKWebsiteDataStore.h:119:46
Parse Issue (Xcode): Could not build module 'WebKit'
/build/ios/Debug-iphoneos/flutter_inappwebview/flutter_inappwebview.framework/Headers/flutter_inappwebview-Swift.h:285:8
Error launching application on iPhone
2条答案
按热度按时间lrpiutwd1#
修复:从主分支升级flutter,删除podfile.lock和安装pod
时间定位:
解决方法1来自GitHub:
使用sudo和你最喜欢的文本编辑器:
将
__IPHONE_OS_VERSION_MAX_ALLOWED
从170000更改为180000解决方法3更新
CocoaPods
然后运行:
而且项目建设必须没有问题
t5fffqht2#
更新 flutter_inappwebview 到5.8.0适合我。