idb installation of app - best match target version 0.0 error
mattadamson opened this issue · 2 comments
Hi
Has anyone seen this error before or know the root cause please?
The best match /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/11.0/DeveloperDiskImage.dmg: 11.0 is not suitable for 0.0
I'm using an iphone 6s iOS 15.7 device to launch a test application. A few other devices do appear to work though which are nearly identical ie the model and iOS version.
From
We see this message output
return [[FBControlCoreError
describeFormat:@"The best match %@ is not suitable for %ld.%ld", best, targetVersion.majorVersion, targetVersion.minorVersion]
fail:error];
Because the target version appears to be read as 0.0. I can't see where / how it's reading this as 0.0
Many thanks
Yes, we are plagued by this! It is often caused by not having the correct disk image due to not having xCode up to date, but we also see this when we have a large number of physical devices connected. Did you solve your problem?
I think we may have made progress on this issue, if it is indeed the same one. In FBDevice.m around line 203:
if (!_name || overwrite) {
_name = targetInfo.name;
}
if (!_osVersion || overwrite) {
_osVersion = targetInfo.osVersion;
}
if (_productVersion || overwrite) {
_productVersion = targetInfo.productVersion;
}
if (!_targetType || overwrite) {
_targetType = targetInfo.targetType;
}
if (!_udid || overwrite) {
_udid = targetInfo.udid;
}
Here _productVersion always gets set, getting overwritten with "unknown". A missing '!' ?
Should it be:
if (!_productVersion || overwrite) {
_productVersion = targetInfo.productVersion;
}
This seems to result in the target version being set to 0.0.0 which then results in the wrong disk image being searched for.