IOKit can't load in Xcode12.5 when running App in iphone12mm

iOS version is14.2.1(18B121)

dyld: Library not loaded: /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit

 Referenced from: /private/var/containers/Bundle/Application/27933966-3944-4FF9-907F-2C69CE0EDA4E/.app/

 Reason: image not found

dyld: launch, loading dependent libraries

DYLD_LIBRARY_PATH=/usr/lib/system/introspection DYLD_INSERT_LIBRARIES=/Developer/usr/lib/libBacktraceRecording.dylib:/Developer/usr/lib/libMainThreadChecker.dylib:/Developer/Library/PrivateFrameworks/DTDDISupport.framework/libViewDebuggerSupport.dylib:/Developer/Library/PrivateFrameworks/GPUTools.framework/libglInterpose.dylib:/usr/lib/libMTLCapture.dylib

Replies

I/O Kit is not available for third-party use on iOS (it’s present but not an API). Is your iOS app attempting to use it? If so, that won’t work.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"