Back

iOS如何发布应用 - 3 申请 team provisioning。

发布时间: 2015-04-19 23:44:00

refer to: https://developer.apple.com/library/ios/documentation/IDEs/Conceptual/AppStoreDistributionTutorial/CreatingYourTeamProvisioningProfile/CreatingYourTeamProvisioningProfile.html

总览

Provisioning is the process of preparing and configuring an app to launch on devices and use app services. During development, you choose which devices can run your iOS app and which app services your iOS or Mac app can access. A provisioning profile is downloaded from Member Center and embedded in the app bundle, and the entire bundle is code signed. The embedded provisioning profile is installed on the iOS or OS X system before the app is launched. If the information in the provisioning profile doesn’t match certain criteria, your app won’t launch.

( 正常状态下,一个测试中的ios app只能运行在特定的 mobile device ,或者特定的 某个 OS上。 总之配置这个 provisioning profile 很麻烦)

为了节省时间,team provisionning profile应运而生。你的所有app 都可以直接被其他团队成员使用。

需要一个bundle id ( com.happystock.啥的), 还会问你要一个development certificate, 问你要一个设备。

然后apple 会为你的这个app 生成一个 app ID

所以,基本上,一个team provisioning profile, 包含一个 app ID, 多个development certificate, 多个 devices

1。设置 Bundle ID

一旦确定后不能更改。

大小写敏感。 所以就给它小写好了。

原则上是  域名的反转, 所以我们全都以 com.xx 这个格式好了。

修改很容易。修改tiapp.xml ( titanium )或者 Info.plist 这个文件就可以。

2. 把app project在 证书级别 分配给某个team

原因:仅仅把源代码COPY给其他人,还不够。 我们还需要在XCODE中指定哪些人可以编译,运行这些源代码。

步骤: 用xcode打开 项目,然后 在project -> general -> Identity 中选择对应的team:

Assign Project To Team

3. 建立 team provisioning profile  

在上一步的图中,看到那个“Fix Issue " 了吗? 点击它,它就会“自动” 为我们做一系列的事情:

3.1 关联你的device

3.2 关联你的证书 (development certificate ) 

基本上如果你是管理员, 这个 profile就建立好了。

如果你不是 账户的管理员( company account admin/agent ) ,就直接把你的device id 发给 管理员,请求一个development certificate 即可。 (具体步骤在 xcode -> accounts preference ,    具体见 request signing certificate )

然后 等管理员做好profile之后,记得刷新你的  profile. 

4. 导出签名证书 (export signing identities) 

这样做的好处是,可以在其他的mac上继续开发。 签名证书很重要, 丢了之后就得重新建。

Xcode -> preference -> account , 左下角有个小齿轮,就可以导出啦。

生成的文件扩展名是  xx.developerprofile

Back