diff --git a/lib/motion/project/template/ios-extension-config.rb b/lib/motion/project/template/ios-extension-config.rb index 01d620c3..4c247844 100644 --- a/lib/motion/project/template/ios-extension-config.rb +++ b/lib/motion/project/template/ios-extension-config.rb @@ -82,7 +82,7 @@ module Motion; module Project; super('iPhone') end - def provisioning_profile(name = /iOS Team Provisioning Profile/) + def provisioning_profile(name = /iOS\s?Team Provisioning Profile/) @provisioning_profile ||= begin paths = Dir.glob(File.expand_path("~/Library/MobileDevice/Provisioning\ Profiles/*.mobileprovision")).select do |path| text = File.read(path) diff --git a/lib/motion/project/template/ios/config.rb b/lib/motion/project/template/ios/config.rb index 6e80773d..26ae0b2c 100644 --- a/lib/motion/project/template/ios/config.rb +++ b/lib/motion/project/template/ios/config.rb @@ -107,7 +107,7 @@ module Motion; module Project; super('iPhone') end - def provisioning_profile(name = /iOS Team Provisioning Profile/) + def provisioning_profile(name = /iOS\s?Team Provisioning Profile/) @provisioning_profile ||= begin paths = Dir.glob(File.expand_path("~/Library/MobileDevice/Provisioning\ Profiles/*.mobileprovision")).select do |path| text = File.read(path)