简体   繁体   English

在 Windows 上构建 Xcode 项目

[英]Build an Xcode project on Windows

I need to compile an Xcode project on Windows.我需要在 Windows 上编译一个 Xcode 项目。 I don't need to make one, because it is automatically generated.我不需要制作一个,因为它是自动生成的。 I am new to iOS development, and I don't plan to submit to the App Store or pay Apple 100$ to sign it, I just want to build an IPA I can install on my jailbroken device.我是 iOS 开发新手,我不打算提交到 App Store 或支付 Apple 100 美元来签名,我只想构建一个可以安装在我越狱设备上的 IPA。 This is just for personal use.这仅供个人使用。 When I tried setting up a vitrual Mac it always fails to boot.当我尝试设置虚拟 Mac 时,它总是无法启动。 Is there any fix to that?有什么解决办法吗? Is this even possible?这甚至可能吗?

Your best bet would be building a hackintosh or getting ahold of a mac to use/buy.您最好的选择是构建一个 hackintosh 或获得一个 mac 来使用/购买。

If you have an intel computer that is somewhat modern, chances are you can install OS X on it (there might be a few inconsistencies that you may be able to iron out with a little time and money).如果您有一台有点现代的英特尔计算机,您很有可能可以在其上安装 OS X(可能存在一些不一致之处,您可以花一点时间和金钱来解决)。 Just do some research on your chipset.只需对您的芯片组进行一些研究。 Maybe somethings are compatible and some aren't;也许有些东西是兼容的,有些则不是; you can fill those voids through buying considerably cheap hardware to get a fully working machine.你可以通过购买相当便宜的硬件来填补这些空白,以获得一台可以正常工作的机器。 Consult this page: CustoMac: Component Buyer's Guide to get a repository of confirmed supported components.参阅此页面: CustoMac:组件购买者指南以获取已确认支持的组件的存储库。 There is also a huge community on reddit that is more than helpful at assisting others who are trying to get their hackintosh working. reddit 上还有一个庞大的社区,可以帮助其他试图让他们的 hackintosh 工作的人。

If you do have an AMD there is still hope, I had my 8350 working on yosemite before I upgraded to an intel.如果您确实拥有 AMD,那么仍有希望,在升级到英特尔之前,我已将 8350 用于优胜美地。 I can't link you to the unsigned iso, but you can search for it.我无法将您链接到未签名的 iso,但您可以搜索它。 The distro is by "Nerish", you can download the iso or find the kernel and manually install it.发行版是“Nerish”,您可以下载iso或找到内核并手动安装它。

I'm currently running an i7 6700k CPU with an Asus Sabertooth z170 Mark1 motherboard, 16gb ddr4 corsair ram, and a GTX 970. Everything is working well.我目前正在运行带有 Asus Sabertooth z170 Mark1 主板、16gb ddr4 corsair ram 和 GTX 970 的 i7 6700k CPU。一切运行良好。 I have both windows and OS X sierra installed so that I can do my normal business work and easily develop in XCode.我同时安装了 Windows 和 OS X sierra,这样我就可以进行正常的业务工作并轻松地在 XCode 中进行开发。

No, it's not possible (as of now).不,这是不可能的(截至目前)。 To build an Xcode project you need an environment, that is just not present on Windows.要构建 Xcode 项目,您需要一个环境,而 Windows 上没有。 I mean a lot of libraries, frameworks and tools that are shipped with macOS.我的意思是 macOS 附带的许多库、框架和工具。

One possible way is to try to find a working macOS VM / install a "Hackintosh", but be warned that both actions are illegal according to macOS ToS.一种可能的方法是尝试找到一个可以工作的 macOS VM/安装“Hackintosh”,但请注意,根据 macOS ToS,这两种操作都是非法的。

By the way, you don't need to pay Apple 99$ to install your software on a device.顺便说一句,您无需向 Apple 支付 99 美元即可在设备上安装您的软件。 You just need a Mac.你只需要一台 Mac。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM