iOS 17 beta Webkit build error

We have been testing on new iOS 17 beta for objective C iOS App project. This project import another library using Cocoapod. The library use Webkit and other frameworks.

And when we built to iOS 17 emulator or device, we got the same build errors as following.

I did search about changes on Webkit from iOS 17 but no information was found.

Does anybody have same error or not? please give us some advices. Thanks

TL;DR: This is likely a temporary issue that will resolve itself when the next iOS 17 Beta SDK is available.

If you look at Source/***/***/PlatformHave.h, it uses a header check in addition to an SDK version check:

#if ((PLATFORM(MAC) && __MAC_OS_X_VERSION_MAX_ALLOWED >= 140000) \
    || ((PLATFORM(IOS) || PLATFORM(MACCATALYST)) && __IPHONE_OS_VERSION_MAX_ALLOWED >= 170000) \
    || (PLATFORM(WATCHOS) && __WATCH_OS_VERSION_MAX_ALLOWED >= 100000) \
    || (PLATFORM(APPLETV) && __TV_OS_VERSION_MAX_ALLOWED >= 170000) \
    || PLATFORM(VISION))
#if __has_include(<Network/proxy_config.h>)
#define HAVE_NW_PROXY_CONFIG 1
#endif
#endif

But the method declaration above doesn't include this check (because it's a public header).

You can workaround this issue by doing something like this before including WebKit headers (UNTESTED):

#include <os/object.h>

#if !__has_include(<Network/proxy_config.h>)
OS_OBJECT_DECL_CLASS(nw_proxy_config);
#endif

Thanks for your reply. We have checked on latest beta version of Xcode (beta 6) and iOS 17 (beta 5), the error is still the same. It would be so kind if you could tell us more about when will the error be fixed.

Best regards

NCMBTeam

Did you ever find a solution for this ? Facing the same problem here and nothing works.

iOS 17 beta Webkit build error
 
 
Q