有没有办法在Windows机器上修改iPhone SDK ?有针对Windows的iPhone SDK版本的计划吗?
我能想到的另一种方法是在运行Windows的VMWare服务器上运行Mac虚拟机映像,尽管我不太确定这是否合法。
有没有办法在Windows机器上修改iPhone SDK ?有针对Windows的iPhone SDK版本的计划吗?
我能想到的另一种方法是在运行Windows的VMWare服务器上运行Mac虚拟机映像,尽管我不太确定这是否合法。
当前回答
你可以使用WinChain
引用项目页面:
这是在Windows XP/Vista计算机上构建iPhone工具链的最简单方法,反过来,它可以获取你使用UIKit头文件(包含在winChain中)编写的Objective-C源代码,并将其编译成你可以在iPhone上使用的应用程序。
其他回答
只要做一个网页应用。 iOS网页应用包括:
Reliable. The amount of time it takes to make an update is far shorter than with XCode. Fast. JavaScript on iOS is, by nature, far faster than native apps. Free. You never have to pay Apple a cent, as Apple doesn't have any control over you. Safer. If a crash occurs with a native app, it can take down even the newest iOS devices for hours or even days, until the user can fix them. If a web app crashes, the user just has to close and reopen it, worst case scenario. Offline. You can easily create a service worker to handle your app. Secure. Because you do not have access to native APIs, a security breach will be significantly less dangerous. Easy to program. A basic iOS web app can be programmed from the Safari URL bar on an iPhone. Literally. I've done it myself.
你可以使用Java为iPhone开发应用,而Java可以连接到网络。
坏消息是它的iOS模拟器和应用程序加载器都需要XCode来上传程序到iOS设备进行“真正的”测试。在向App Store提交应用之前,你需要用XCode为你的应用签名。不幸的是,XCode只适用于OS X。
However, the good news is that you may be able to purchase OS X and run it in a virtual machine such as VMWare Workstation. I don't know how straightforward this is, as it is rather difficult to get OS X to run on non-Apple hardware, but a quick Google search shows that it is possible. This method would (likely) be cheaper than purchasing a new Mac, although the Mac Mini retails in the US for only $599. Some posts I've seen indicate that this may or may not be legal, others say you need OS X Server for virtualization. I'll leave the research up to you.
还有MacInCloud这样的服务可以让你租用一台Mac服务器,你可以通过Windows上的远程桌面或浏览器访问它。不幸的是,我不认为你能够使用Application Loader,因为你必须物理地将设备连接到你的计算机,但它至少可以用于开发和模拟。
好运!
当然,你可以在记事本或其他程序中编写Objective-C代码,然后将其移动到Mac上进行编译。
但说真的,这取决于你是在为App Store开发官方应用程序,还是为越狱iPhone开发应用程序。要编写官方应用程序,需要英特尔Mac的苹果iPhone SDK似乎是唯一可行的方法。然而,有一个非官方的工具链可以为越狱的iphone编写应用程序。您可以在Linux和Windows上运行它(使用Cygwin)。
我用颤振。我在Windows机器上开发,在Android模拟器上测试。当我准备好在iOS上测试时,我在macOS上运行代码。根据我的经验,Flutter应用程序在Android和iOS上运行完全相同。如果你没有Mac,你可以下载VirtualBox并在上面安装macOS。在VirtualBox上,macOS的运行和真正的Mac完全一样,你可以在上面构建应用程序。