Unfortunately, the IOKit headers for iPadOS are not available in Seed
1.
Yep )-:
Until this bug (r. 94509285) is fixed you can work around it by copying the I/O Kit headers from the macOS SDK to the iOS SDK. See the scripts pasted in below.
WARNING Copying headers between SDKs is not a supported technique in general and can cause a wide array of problems. Use this technique solely to work around the above-mentioned bug.
Share and Enjoy
—
Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"
% cat IOKit_iOS_headers_install.sh
#!/usr/bin/env sh
set -e
echo "Will install IOKit headers into Xcode: $(xcode-select -p)"
read -p "Press any key to continue, or Ctrl-C to cancel"
echo "Copying IOKit.framework headers to iOS SDK"
cd $(xcrun -sdk iphoneos -show-sdk-path)/System/Library/Frameworks/IOKit.framework
mkdir -p Versions/A/Headers
cp $(xcrun -sdk macosx -show-sdk-path)/System/Library/Frameworks/IOKit.framework/Headers/{IOTypes.h,IOKitKeys.h,IOMessage.h,IOReturn.h,IODataQueueShared.h,IODataQueueClient.h,OSMessageNotification.h,IOCFUnserialize.h,IOMapTypes.h,IOCFSerialize.h,IOKitLib.h} Versions/A/Headers
ln -s Versions/A/Headers Headers
echo "Copying IOKit.framework headers to iOS simulator SDK"
cd $(xcrun -sdk iphonesimulator -show-sdk-path)/System/Library/Frameworks/IOKit.framework
mkdir -p Versions/A/Headers
cp $(xcrun -sdk macosx -show-sdk-path)/System/Library/Frameworks/IOKit.framework/Headers/{IOTypes.h,IOKitKeys.h,IOMessage.h,IOReturn.h,IODataQueueShared.h,IODataQueueClient.h,OSMessageNotification.h,IOCFUnserialize.h,IOMapTypes.h,IOCFSerialize.h,IOKitLib.h} Versions/A/Headers
ln -s Versions/A/Headers Headers
% cat IOKit_iOS_headers_remove.sh
#!/usr/bin/env sh
set -e
echo "Will remove IOKit headers from Xcode: $(xcode-select -p)"
read -p "Press any key to continue, or Ctrl-C to cancel"
echo "Removing IOKit.framework headers from iOS SDK"
cd $(xcrun -sdk iphoneos -show-sdk-path)/System/Library/Frameworks/IOKit.framework
rm -rf Versions/A/Headers Headers
echo "Removing IOKit.framework headers from iOS simulator SDK"
cd $(xcrun -sdk iphonesimulator -show-sdk-path)/System/Library/Frameworks/IOKit.framework
rm -rf Versions/A/Headers Headers