Xcode7免证书调试

从Xcode7开始 ,开发者可以免证书在真机调试了。这对大家来说是个大好消息。

下面是Xcode7的更新说明:

Free On-Device Development

Now everyone can run and test their own app on a device—for free. You can run and debug your own creations on a Mac, iPhone, iPad, iPod touch, or Apple Watch without any fees, and no programs to join. All you need to do is enter your free Apple ID into Xcode. You can even use the same Apple ID you already use for the App Store or iTunes. Once you’ve perfected your app the Apple Developer Program can help you get it on the App Store.

See Launching Your App on Devices for detailed information about installing and running on devices.

下面说下如何操作

1.添加AppID

在Xcode中点击Preferences,在Accounts中添加你自己的AppleID.(就是你在App Store下载时所用的账户)。

Xcode7免证书调试_第1张图片
Xcode7免证书调试_第2张图片

2.添加Team

在General选项卡中的Identity中,点击Team,选择你刚才添加的账户组

Xcode7免证书调试_第3张图片

3,运行

将手机接到Mac上,点击运行。会提示错误如下

Xcode7免证书调试_第4张图片

此时点击Fix Issue,Xcode会帮你搞定一切。等修复好后,如果弹出错误提示 “process launch failed: Security”,此时是因为ios9的安全机制,需要你对手机授权。

Xcode7免证书调试_第5张图片

进入 设置--通用--描述文件 选择你刚才添加的帐号进入,点击信任该程序。然后就可以尽情在手机上调试了。

你可能感兴趣的:(Xcode7免证书调试)