I have problems building my project with XCode 13 (same error message with XCode 13.1 and 13.2 (beta)). XCode 12.5.1 is still working fine.
Deleting the "derivedData" folder does not change the error.
My project is doing some cross compilation with another XCode workspace generated by CMake.
I doubt this is related to the root cause of the problem because the error occurs after the cross compilation.
The project uses Swift and some legacy Objective-C code.
The failure is happening on Compile Swift source files (arm64)
-> Precompile bridging header (arm64)
Here is an extract of the error message:
<module-includes>:392:9: note: in file included from <module-includes>:392:
#import "netinet6/ipsec.h"
^
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.0.sdk/usr/include/netinet6/ipsec.h:132:2: error: unknown type name 'uuid_string_t'; did you mean 'io_string_t'?
uuid_string_t wake_uuid;
^
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.0.sdk/usr/include/device/device_types.h:89:33: note: 'io_string_t' declared here
typedef char io_string_t[512];
Do you have any ideas what I am doing wrong or what I should try to get XCode 13 building? Thanks for every comment. I am desperate to fix this problem.
Details on the error message:
- Here a screenshot of the error message displayed in XCode 13
- full error log:
Details on my environment:
- I am using Mac Mini M1
- the error is the same with Mac Mini with intel
- Mac OS 11.6
- upgrading to Mac OS 12 did not help
- output of
brew doctor
:Your system is ready to brew.
- Selected Command Line Tools:
- Xcode 13.1
- Screenshot