Post

Replies

Boosts

Views

Activity

Reply to DriverKit CppUserClient Searching for dext service but Failed opening service with error: 0xe00002c7
The value kIOPCIDeviceConnectType is just a number, the third parameter to IOServiceOpen called by your user-space client code. That number appears as the first parameter to NewUserClient_Impl in your dext. If your dext is your own, you can use any value you like, or ignore it entirely. If your code is no longer reporting the kIOReturnUnsupported error, but instead printing only "Failed to match to device", that suggests that there's no driver with the correct name installed. Did you call SetName("com.accusys.scsiDriver"); within your dext's Start_Impl()? I've never written a PCI driver, sorry can't help you with that.
1w
Reply to DriverKit CppUserClient Searching for dext service but Failed opening service with error: 0xe00002c7
0xe00002c7 is kIOReturnNotSupported (from IOReturn.h). You're trying to open four objects, none of which support that operation. I have had more success using IOServiceNameMatching, and giving the driver a unique name (call SetName in your dext, before RegisterService). This way you should make only one attempt to open your driver through its user client. Also, make sure you actually implement NewUserClient_Impl in your dext.
1w
Reply to Photos album is chaotic
This is a forum for questions about development of software on Apple platforms. Please don't clutter it. For customer support, visit https://support.apple.com For feedback, visit https://www.apple.com/feedback/
Nov ’24
Reply to Persistent Xcode validation errors
You're using a third-party tool and you're new to iOS development, so your way ahead is likely to be a little rocky. I suggest you start by examining the built app bundle on the Mac, see if its plist, its resources and the error messages from Xcode are self-consistent. The Info.plist you posted here doesn't look like an Info.plist in an iOS app bundle - your file is plain text, Info.plist files are xml. Then, on the Mac, in Xcode, build an iOS app from the template and try to send that to Test Flight. Understand the requirements for icons files and how they are fulfilled. Compare what is built by Xcode, the first-party tool, with what your tool is building.
Nov ’24
Reply to [macOS sequoia] keyboard shortcut for standard deviation (sigma) symbol not working
this forum is for questions about software development. Your question would be better suited for https://discussions.apple.com/welcome option-W produces upper-case sigma (Σ). There doesn't seem to be a direct keyboard entry for lower-case sigma (σ). Type "language" into search field of System Settings, look for "Language input methods", select it, and turn on "Show input menu in menu bar". If you have only one input method, you'll still have access to the Keyboard Viewer and Character Viewer from there. You could also try enabling the Greek keyboard. On a US keyboard, sigma is on the key labelled 'S'. You can switch between keyboard input languages using the icon in the menu bar, or ctrl-space bar.
Nov ’24
Reply to DriverKit - IOUSBHostDevice::SetProperties
I think you can just make a codeless kext with a plist like this one: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>CFBundleDevelopmentRegion</key> <string>English</string> <key>CFBundleIconFile</key> <string></string> <key>CFBundleIdentifier</key> <string>com.apple.driver.AppleUSBHub1009</string> <key>CFBundleInfoDictionaryVersion</key> <string>6.0</string> <key>CFBundleGetInfoString</key> <string>1.0, Copyright © 2011 Apple Inc. All Rights Reserved.</string> <key>CFBundlePackageType</key> <string>KEXT</string> <key>CFBundleShortVersionString</key> <string>1.0.0</string> <key>CFBundleSignature</key> <string>????</string> <key>CFBundleVersion</key> <string>1.0.0</string> <key>IOKitPersonalities</key> <dict> <key>Hub1009</key> <dict> <key>CFBundleIdentifier</key> <string>com.apple.driver.AppleUSBHostMergeProperties</string> <key>IOClass</key> <string>AppleUSBHostMergeProperties</string> <key>IOProviderClass</key> <string>IOUSBHostDevice</string> <key>idProduct</key> <real>1544</real> <key>idVendor</key> <integer>1234</integer> <key>IOProviderMergeProperties</key> <dict> <key>kUSBWakePortCurrentLimit</key> <integer>1100</integer> <key>kUSBSleepPortCurrentLimit</key> <integer>1100</integer> <key>kUSBHubPowerSupply</key> <integer>1300</integer> </dict> </dict> </dict> <key>OSBundleLibraries</key> <dict> <key>com.apple.iokit.IOUSBHostFamily</key> <string>1.01</string> <key>com.apple.kpi.iokit</key> <string>10.4.2</string> </dict> <key>OSBundleRequired</key> <string>Root</string> </dict> </plist> I added a tiny amount of code. My driver is a subclass of IOService, and overrides Start(), just so I can see it logging. I think, but have not checked, that the AppleUSBHostMergeProperties driver returns an error from its Start (but first merges the properties). The downside of course is that dexts are not loaded until after boot time, so your dext usually has no effect because the system has already loaded a driver for the hub by the time your dext is available. If you plug the hub in after boot time, the codeless dext will be instantiated. (FB12048885)
Nov ’24