Fix issues with iOS USB device enumeration app #2207
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR fixes some issues with the helper app that's invoked when the Attach to Unity Process dialog starts. This app loads a native library provided by Unity and polls for Apple devices attached via USB. If the iOS Build Support module isn't installed, the helper app isn't invoked.
x64
andarm64
directories. The app will now try to load the library from the new location and fallback to the location from previous versionsx64
library. If running natively on M1, it will loadarm64
. If running natively on M1 and there is no native install of Unity, it will gracefully not load the library and USB debugging will be unavailable. The troubleshooting guide linked from the dialog has been updated to include this scenario. (Loading the wrong library is what caused the exception shown in RIDER-69809)Note that the change in location for Unity 2021.2 means that older versions of Rider will be unable to load the library with newer versions of Unity, and USB debugging will not be available. Depending on OS, there might also be a crash dialog shown.