Unity 3d打包iOS(x code 免证书)

打包步骤

  1. 前置条件
    • iOS 打包只能在 Mac 上进行, 也就是说要安装 Mac 版 Unity
    • Mac 机器上必需装 XCode
  2. 打开 Unity 工程, 打开一个 Scene, 单击【File】-> 单击【BuildSetting】-> 单击【Add Current】, 单击【iOS】-> 单击【Switch PlatForm】, 单击【Player settings】, 单击【iPhone, iPod Touch, and iPad setting】->【Other Settings】: 【Bundle Identifier】com.Company.ProductName 为自己的自定义的, 例如: com.Game.test, 修改完成后, 点击 Build, 选择路径, 添加文件名, 保存, 等完成会有文件夹跳出来。
  3. 双击 *.xcodeproj 文件, 打开 Xcode, 插上设备并选择, 设置好证书, 点 Run 就可以将包安装到手机了。
  4. 如果你没有开发者证书, 可以参考下方的免证书打包方案
  5. 如果你是购买的开发者证书, 还可以通过 [Product]->[Archive]->[export] 导出 ipa

免证书打包

  • 环境:

    • macOS Sierra 10.13.2
    • Xcode Version 9.2
  • 步骤:

    1. 添加账号: Xcode -> Preferences -> Accounts -> “+”: Add Apple ID -> 输入个人苹果账号。
    2. 步骤1中的Accounts页, 选择左边 Apple IDs列表中刚刚添加的账号, 在右边 Team框中选中 (Person Team), 双击。
    3. 在弹出的界面点击 iOS Development 和 Mac Development 后额 Create, 然后点击 Done。
    4. 创建一个工程, 插上真机, 配置文件的 Signning中的Team选择步骤2中的 (Person Team), 然后打包安装吧。
    5. 手机安装了包后, 要在手机的 设置 -> 通用-> 描述文件与设备管理 -> 信任。

参考

http://www.wastedpotential.com/running-xcode-projects-on-a-device-without-a-developer-account-in-xcode-7


如有错误, 欢迎指出。

email: dxmdxm1992#gmail.com

blog: http://blog.csdn.net/david_dai_1108

猜你喜欢

转载自blog.csdn.net/david_dai_1108/article/details/79184249