This repository has been archived on 2026-08-07. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
zq/10.项目/11-墨犬/A.草稿/虚幻5.6 IOS平台使用源码引擎打包.md
T

31 lines
1.2 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 参考文档
https://www.bilibili.com/opus/946339882709549060
https://dev.epicgames.com/documentation/zh-cn/unreal-engine/setting-up-an-unreal-engine-project-for-ios
# 环境准备
## 官方推荐环境
对于UE5.6,官方推荐:
- macOS Sonoma 14.7
- XCode 16.1
最低:
- macOS Sonoma 14.5
- XCode 16
我们的macOS是14.6,XCode是15.4。XCode需要升级
## 注册开发者账号
从手机AppStore下载AppleDeveloper,填写信息注册开发账号并支付年费开通
## 升级XCode
1. 访问
[https://developer.apple.com/download/all/](https://developer.apple.com/download/all/)
2. 用 Apple ID 登录
3. 搜索 "Xcode 16"
4. 下载 .xip 文件(约 8-10GB)
5. 双击解压,将 Xcode.app 拖到 Applications 文件夹
# 获取代码
- clone 源码仓库
- 执行setup.command
- 这一步要下载很多依赖,可能要等比较久,翻墙会稍微快一点,遇到长时间0速度时可以关掉再执行,会断点续传。
- 执行GenerateProjectFiles.command,生成XCode工程
- 打开UE5(Mac).xcworkspace
- 顶条上搜索选择ShaderCompileWorker,目标平台My Mac,菜单Product->Build 进行编译
- 顶条上选择UnrealEditor,目标平台My Mac,菜单Product->Build 进行编译