From aa4e9c16fd48a758847e69c54868e73966503f50 Mon Sep 17 00:00:00 2001 From: Laurent Sansonetti Date: Sun, 6 May 2012 23:35:44 +0200 Subject: [PATCH] some fixes for archive:release --- lib/motion/project/config.rb | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/lib/motion/project/config.rb b/lib/motion/project/config.rb index 8c7ba43a..fe6f6df6 100644 --- a/lib/motion/project/config.rb +++ b/lib/motion/project/config.rb @@ -412,7 +412,16 @@ module Motion; module Project }, 'UIAppFonts' => fonts, 'UIDeviceFamily' => device_family_ints.map { |x| x.to_s }, - 'UISupportedInterfaceOrientations' => interface_orientations_consts + 'UISupportedInterfaceOrientations' => interface_orientations_consts, + 'UIStatusBarStyle' => 'UIStatusBarStyleDefault', + 'DTXcode' => '0431', + 'DTSDKName' => 'iphoneos5.0', + 'DTSDKBuild' => '9A334', + 'DTPlatformName' => 'iphoneos', + 'DTCompiler' => 'com.apple.compilers.llvm.clang.1_0', + 'DTPlatformVersion' => '5.1', + 'DTXcodeBuild' => '4E1019', + 'DTPlatformBuild' => '9B176' } end @@ -426,7 +435,8 @@ module Motion; module Project def codesign_certificate @codesign_certificate ||= begin - certs = `/usr/bin/security -q find-certificate -a`.scan(/"iPhone Developer: [^"]+"/).uniq + cert_type = (development? ? 'Developer' : 'Distribution') + certs = `/usr/bin/security -q find-certificate -a`.scan(/"iPhone #{cert_type}: [^"]+"/).uniq if certs.size == 0 App.fail "Can't find an iPhone Developer certificate in the keychain" elsif certs.size > 1 @@ -487,7 +497,11 @@ module Motion; module Project end def entitlements_data - Motion::PropertyList.to_s(entitlements) + dict = entitlements + if release? + dict['application-identifier'] ||= seed_id + '.' + identifier + end + Motion::PropertyList.to_s(dict) end def fonts