在Xcode 5中查找配置文件。

时间:2022-01-23 06:46:06

In Xcode 5, I can get list of provisioning profiles under Xcode >> preferences >> accounts >> view details. I want to copy profile and have to send it to one of my client, but I am not able to right click on it to find it using "Reveal Profile in Finder" option.

在Xcode 5中,我可以获得Xcode >> >>账户>>视图详细信息的配置文件列表。我想要复制配置文件,并将它发送给我的一个客户端,但是我不能右键点击它来找到它使用“Finder”选项中的“显示配置文件”。

How can I get specific provisioning profile in XCode 5 or do I have to download it from developer.apple every time?

如何在XCode 5中获得特定的配置文件,或者我必须从开发人员那里下载它。苹果每一次吗?

在Xcode 5中查找配置文件。

8 个解决方案

#1


219  

I found a way to find out how your provisioning profile is named. Select the profile that you want in the code sign section in the build settings, then open the selection view again and click on "other" at the bottom. Then occur a view with the naming of the current selected provisioning profile.

我找到了一种方法来了解您的配置文件是如何命名的。在构建设置中选择要在代码签名部分中的配置文件,然后再次打开选择视图,并单击底部的“other”。然后,使用当前选定的配置配置文件的命名发生一个视图。

You can now find the profile file on the path:

您现在可以在路径上找到概要文件:

~/Library/MobileDevice/Provisioning Profiles

~ /图书馆/ MobileDevice /配置概要文件

Update:

更新:

For Terminal:

终端:

cd ~/Library/MobileDevice/Provisioning\ Profiles

#2


30  

check here:

检查:

~/Library/MobileDevice/Provisioning Profiles

#3


17  

The following works for me at a command prompt

以下为我在命令提示符下的工作。

cd ~/Library/MobileDevice/Provisioning\ Profiles/
for f in *.mobileprovision; do echo $f; openssl asn1parse -inform DER -in $f | grep -A1 application-identifier; done

Finding out which signing keys are used by a particular profile is harder to do with a shell one-liner. Basically you need to do:

发现一个特定的配置文件使用哪个签名键更困难。基本上你需要做的是:

openssl asn1parse -inform DER -in your-mobileprovision-filename

then cut-and-paste each block of base64 data after the DeveloperCertificates entry into its own file. You can then use:

然后将base64数据的每个块复制粘贴到它自己的文件中。然后,您可以使用:

openssl asn1parse -inform PEM -in file-with-base64

to dump each certificate. The line after the second commonName in the output will be the key name e.g. "iPhone Developer: Joe Bloggs (ABCD1234X)".

转储每个证书。在输出中的第二个commonName之后的行将是关键名称。“iPhone开发者:Joe Bloggs (ABCD1234X)”。

#4


14  

xCode 6 allows you to right click on the provisioning profile under account -> detail (the screen shot you have there) & shows a popup "show in finder".

xCode 6允许你右键点击帐户的配置文件->细节(你在屏幕截图)&显示一个弹出的“在finder中显示”。

#5


8  

If it's sufficient to use the following criteria to locate the profile:

如果足够使用以下标准来定位概要文件:

<key>Name</key>
<string>iOS Team Provisioning Profile: *</string>

you can scan the directory using awk. This one-liner will find the first file that contains the name starting with "iOS Team".

您可以使用awk扫描该目录。这个一行程序将会找到第一个包含“iOS团队”名称的文件。

awk 'BEGIN{e=1;pat="<string>"tolower("iOS Team")}{cur=tolower($0);if(cur~pat &&prev~/<key>name<\/key>/){print FILENAME;e=0;exit};if($0!~/^\s*$/)prev=cur}END{exit e}' *

Here's a script that also returns the first match, but is easier to work with.

这里有一个脚本,它还返回第一个匹配项,但是更容易处理。

#!/bin/bash

if [ $# != 1 ] ; then
    echo Usage: $0 \<start of provisioning profile name\>
    exit 1
fi

read -d '' script << 'EOF'
BEGIN {
    e = 1
    pat = "<string>"tolower(prov)
}
{
    cur = tolower($0)
    if (cur ~ pat && prev ~ /<key>name<\\/key>/) {
        print FILENAME
        e = 0
        exit
    }
    if ($0 !~ /^\s*$/) {
        prev = cur
    }
}
END {
 exit e
}
EOF


awk -v "prov=$1" "$script" *

It can be called from within the profiles directory, $HOME/Library/MobileDevice/Provisioning Profiles:

可以从profiles目录、$HOME/Library/MobileDevice/Provisioning配置文件中调用它:

~/findprov "iOS Team"

To use the script, save it to a suitable location and remember to set the executable mode; e.g., chmod ugo+x

要使用脚本,将其保存到合适的位置,并记住设置可执行模式;例如,chmod尤格+ x

#6


6  

You can use "iPhone Configuration Utility" to manage provisioning profiles.

您可以使用“iPhone配置实用程序”来管理配置文件。

#7


6  

I wrote a simple bash script to get around this stupid problem. Pass in the path to a named copy of your provision (downloaded from developer.apple.com) and it will identify the matching GUID-renamed file in your provision library:

我编写了一个简单的bash脚本来解决这个愚蠢的问题。在通往指定副本的路径中(从developer.apple.com下载),并在您的供应库中标识匹配的向导重命名文件:

#!/bin/bash

if [ -z "$1" ] ; then
  echo -e "\nUsage: $0 <myprovision>\n"
  exit
fi

if [ ! -f "$1" ] ; then
  echo -e "\nFile not found: $1\n"
  exit
fi

provisionpath="$HOME/Library/MobileDevice/Provisioning Profiles"
provisions=$( ls "$provisionpath" )

for i in $provisions ; do
  match=$( diff "$1" "$provisionpath/$i" )
  if [ "$match" = "" ] ; then
    echo -e "\nmatch: $provisionpath/$i\n"
  fi
done

#8


3  

It is not exactly for Xcode5 but this question links people who want to check where are provisioning profiles:
Following documentation https://developer.apple.com/library/ios/documentation/IDEs/Conceptual/AppDistributionGuide/MaintainingCertificates/MaintainingCertificates.html

它并不完全适用于Xcode5,但是这个问题链接了那些想要检查配置概要文件的人:以下是文档https://developer.apple.com/library/ios/documentation/ides/conceptual/appdistributionguide/maintainingcertificate .html。

  1. Choose Xcode > Preferences.
  2. 选择Xcode >首选项。
  3. Click Accounts at the top of the window.
  4. 单击窗口顶部的帐户。
  5. Select the team you want to view, and click View Details. 在Xcode 5中查找配置文件。 In the dialog that appears, view your signing identities and provisioning profiles. If a Create button appears next to a certificate, it hasn’t been created yet. If a Download button appears next to a provisioning profile, it’s not on your Mac. 在Xcode 5中查找配置文件。
  6. 选择要查看的团队,并单击查看详细信息。在出现的对话框中,查看您的签名标识和配置文件。如果一个创建按钮出现在证书旁边,它还没有创建。如果一个下载按钮出现在配置文件的旁边,它不在你的Mac上。

Ten you can start context menu on each profile and click "Show in Finder" or "Move to Trash".

你可以在每个配置文件上启动上下文菜单,然后点击“显示在Finder中”或“移动到垃圾”。

#1


219  

I found a way to find out how your provisioning profile is named. Select the profile that you want in the code sign section in the build settings, then open the selection view again and click on "other" at the bottom. Then occur a view with the naming of the current selected provisioning profile.

我找到了一种方法来了解您的配置文件是如何命名的。在构建设置中选择要在代码签名部分中的配置文件,然后再次打开选择视图,并单击底部的“other”。然后,使用当前选定的配置配置文件的命名发生一个视图。

You can now find the profile file on the path:

您现在可以在路径上找到概要文件:

~/Library/MobileDevice/Provisioning Profiles

~ /图书馆/ MobileDevice /配置概要文件

Update:

更新:

For Terminal:

终端:

cd ~/Library/MobileDevice/Provisioning\ Profiles

#2


30  

check here:

检查:

~/Library/MobileDevice/Provisioning Profiles

#3


17  

The following works for me at a command prompt

以下为我在命令提示符下的工作。

cd ~/Library/MobileDevice/Provisioning\ Profiles/
for f in *.mobileprovision; do echo $f; openssl asn1parse -inform DER -in $f | grep -A1 application-identifier; done

Finding out which signing keys are used by a particular profile is harder to do with a shell one-liner. Basically you need to do:

发现一个特定的配置文件使用哪个签名键更困难。基本上你需要做的是:

openssl asn1parse -inform DER -in your-mobileprovision-filename

then cut-and-paste each block of base64 data after the DeveloperCertificates entry into its own file. You can then use:

然后将base64数据的每个块复制粘贴到它自己的文件中。然后,您可以使用:

openssl asn1parse -inform PEM -in file-with-base64

to dump each certificate. The line after the second commonName in the output will be the key name e.g. "iPhone Developer: Joe Bloggs (ABCD1234X)".

转储每个证书。在输出中的第二个commonName之后的行将是关键名称。“iPhone开发者:Joe Bloggs (ABCD1234X)”。

#4


14  

xCode 6 allows you to right click on the provisioning profile under account -> detail (the screen shot you have there) & shows a popup "show in finder".

xCode 6允许你右键点击帐户的配置文件->细节(你在屏幕截图)&显示一个弹出的“在finder中显示”。

#5


8  

If it's sufficient to use the following criteria to locate the profile:

如果足够使用以下标准来定位概要文件:

<key>Name</key>
<string>iOS Team Provisioning Profile: *</string>

you can scan the directory using awk. This one-liner will find the first file that contains the name starting with "iOS Team".

您可以使用awk扫描该目录。这个一行程序将会找到第一个包含“iOS团队”名称的文件。

awk 'BEGIN{e=1;pat="<string>"tolower("iOS Team")}{cur=tolower($0);if(cur~pat &&prev~/<key>name<\/key>/){print FILENAME;e=0;exit};if($0!~/^\s*$/)prev=cur}END{exit e}' *

Here's a script that also returns the first match, but is easier to work with.

这里有一个脚本,它还返回第一个匹配项,但是更容易处理。

#!/bin/bash

if [ $# != 1 ] ; then
    echo Usage: $0 \<start of provisioning profile name\>
    exit 1
fi

read -d '' script << 'EOF'
BEGIN {
    e = 1
    pat = "<string>"tolower(prov)
}
{
    cur = tolower($0)
    if (cur ~ pat && prev ~ /<key>name<\\/key>/) {
        print FILENAME
        e = 0
        exit
    }
    if ($0 !~ /^\s*$/) {
        prev = cur
    }
}
END {
 exit e
}
EOF


awk -v "prov=$1" "$script" *

It can be called from within the profiles directory, $HOME/Library/MobileDevice/Provisioning Profiles:

可以从profiles目录、$HOME/Library/MobileDevice/Provisioning配置文件中调用它:

~/findprov "iOS Team"

To use the script, save it to a suitable location and remember to set the executable mode; e.g., chmod ugo+x

要使用脚本,将其保存到合适的位置,并记住设置可执行模式;例如,chmod尤格+ x

#6


6  

You can use "iPhone Configuration Utility" to manage provisioning profiles.

您可以使用“iPhone配置实用程序”来管理配置文件。

#7


6  

I wrote a simple bash script to get around this stupid problem. Pass in the path to a named copy of your provision (downloaded from developer.apple.com) and it will identify the matching GUID-renamed file in your provision library:

我编写了一个简单的bash脚本来解决这个愚蠢的问题。在通往指定副本的路径中(从developer.apple.com下载),并在您的供应库中标识匹配的向导重命名文件:

#!/bin/bash

if [ -z "$1" ] ; then
  echo -e "\nUsage: $0 <myprovision>\n"
  exit
fi

if [ ! -f "$1" ] ; then
  echo -e "\nFile not found: $1\n"
  exit
fi

provisionpath="$HOME/Library/MobileDevice/Provisioning Profiles"
provisions=$( ls "$provisionpath" )

for i in $provisions ; do
  match=$( diff "$1" "$provisionpath/$i" )
  if [ "$match" = "" ] ; then
    echo -e "\nmatch: $provisionpath/$i\n"
  fi
done

#8


3  

It is not exactly for Xcode5 but this question links people who want to check where are provisioning profiles:
Following documentation https://developer.apple.com/library/ios/documentation/IDEs/Conceptual/AppDistributionGuide/MaintainingCertificates/MaintainingCertificates.html

它并不完全适用于Xcode5,但是这个问题链接了那些想要检查配置概要文件的人:以下是文档https://developer.apple.com/library/ios/documentation/ides/conceptual/appdistributionguide/maintainingcertificate .html。

  1. Choose Xcode > Preferences.
  2. 选择Xcode >首选项。
  3. Click Accounts at the top of the window.
  4. 单击窗口顶部的帐户。
  5. Select the team you want to view, and click View Details. 在Xcode 5中查找配置文件。 In the dialog that appears, view your signing identities and provisioning profiles. If a Create button appears next to a certificate, it hasn’t been created yet. If a Download button appears next to a provisioning profile, it’s not on your Mac. 在Xcode 5中查找配置文件。
  6. 选择要查看的团队,并单击查看详细信息。在出现的对话框中,查看您的签名标识和配置文件。如果一个创建按钮出现在证书旁边,它还没有创建。如果一个下载按钮出现在配置文件的旁边,它不在你的Mac上。

Ten you can start context menu on each profile and click "Show in Finder" or "Move to Trash".

你可以在每个配置文件上启动上下文菜单,然后点击“显示在Finder中”或“移动到垃圾”。