1 需要拿到测试用户的UDID 用户可以登录fir.im/UDID查看自己手机UDID
2 需要登录到苹果开发者账号 ,把用户的UDID添加到开发者团队里

3,然后需要生成一个描述文件,把测试的设备添加进去

然后按照步骤生成就行。生成以后双击生成的文件就行了。
4 在 Xcode 中点击project图标,在info这个tab下找到configuration设置,里面默认的是debug和release。点击+,选择Duplicate the “Release configuration”,给生成的新东西起个名字,推荐使用ad hoc distribution

5 点击targets图标,在build settings这个tab下,找到code signing部分。将Code Signing Identity中的ad hoc distribution证书设置为刚刚导入到 Xcode 中对应测试应用的证书。注意不要改动Debug和Release中的证书。

6 保证target中info这个tab下的bundle indentifier里面有预设值,其必须和provision portal输入匹配。这个很重要,否则将来会出错。 在Xcode左上角run按钮右侧有一个下拉菜单,选择device或者simulator,点击菜单下方的edit schema。保证Archive中Build Configuration中的值是ad hoc distribution (这里不选“ad hoc distribution”好像也行,反正我是成功了)

7 配置工作到此结束。点击Product中的Archive,程序开始编译,编译完成后弹出设置框,点选"Export" 然后选"Ad Hoc"

8 然后下面这一步不用操作,直接点击next

9 这一步的时候,链接我是随便填的,图片直接用QQ或者百度云生成App图片链接就行

10,把生成的ipa文件拖入fir.im里就可以了,里面会提示目前有几个测试机可以使用
网友评论