lib/run_loop/l10n.rb in run_loop-2.4.1 vs lib/run_loop/l10n.rb in run_loop-2.5.0
- old
+ new
@@ -16,10 +16,11 @@
key_name_lookup_table(lookup_table_dir)[key_code]
end
UIKIT_AXBUNDLE_PATH_CORE_SIM = 'Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/AccessibilityBundles/UIKit.axbundle/'
+ UIKIT_AXBUNDLE_PATH_CORE_SIM_XCODE_9 = "Platforms/iPhoneOS.platform/Developer/Library/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/AccessibilityBundles/UIKit.axbundle"
LANG_CODE_TO_LANG_NAME_MAP = {
'en' => 'English',
'nl' => 'Dutch',
'fr' => 'French',
@@ -68,10 +69,14 @@
end
nil
end
def uikit_bundle_l10n_path
- File.join(xcode.developer_dir, UIKIT_AXBUNDLE_PATH_CORE_SIM)
+ if xcode.version_gte_90?
+ File.join(xcode.developer_dir, UIKIT_AXBUNDLE_PATH_CORE_SIM_XCODE_9)
+ else
+ File.join(xcode.developer_dir, UIKIT_AXBUNDLE_PATH_CORE_SIM)
+ end
end
def is_full_name?(two_letter_country_code)
LANG_CODE_TO_LANG_NAME_MAP.has_key?(two_letter_country_code)
end