1import { IOSConfig, InfoPlist } from '@expo/config-plugins'; 2import { createInfoPlistPlugin } from '@expo/config-plugins/build/plugins/ios-plugins'; 3import { ExpoConfig } from '@expo/config-types'; 4 5import getDefaultScheme from './getDefaultScheme'; 6 7export default createInfoPlistPlugin(setGeneratedIosScheme, 'withGeneratedIosScheme'); 8 9export function setGeneratedIosScheme( 10 config: Pick<ExpoConfig, 'scheme' | 'slug'>, 11 infoPlist: InfoPlist 12): IOSConfig.InfoPlist { 13 // Generate a cross-platform scheme used to launch the dev client. 14 const scheme = getDefaultScheme(config); 15 const result = IOSConfig.Scheme.appendScheme(scheme, infoPlist); 16 return result; 17} 18