lib/run_loop/l10n.rb in run_loop-4.2.3 vs lib/run_loop/l10n.rb in run_loop-4.3.0
- old
+ new
@@ -17,10 +17,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"
+ UIKIT_AXBUNDLE_PATH_CORE_SIM_XCODE_11 = "Platforms/iPhoneOS.platform/Library/Developer/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',
@@ -69,10 +70,12 @@
end
nil
end
def uikit_bundle_l10n_path
- if xcode.version_gte_90?
+ if xcode.version_gte_110?
+ File.join(xcode.developer_dir, UIKIT_AXBUNDLE_PATH_CORE_SIM_XCODE_11)
+ elsif 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