Error during iOS build in flutter projects.
The error has been started after updating Xcode 15 and after downloading iOS 17.
Error (Xcode): type argument ‘nw_proxy_config_t’ (aka ‘struct nw_proxy_config *’) is neither an Objective-C object nor a block type

Solution for the above error:
As mentioned in the error log, open the below file and go to line number 119. I am using vi editor to open the file.
sudo vi /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.0.sdk/System/Library/Frameworks/WebKit.framework/Headers/WKWebsiteDataStore.h
Locate the if conditions as __IPHONE_OS_VERSION_MAX_ALLOWED >= 170000)_
and replace it as __IPHONE_OS_VERSION_MAX_ALLOWED >= 180000)_

Now restart the iPhone Simulator and start the iOS build.
Thats it.