PhoneGap,PhoneGap构建和iOS - Mac需要? [英] PhoneGap, PhoneGap Build and iOS - Mac needed?

查看:146
本文介绍了PhoneGap,PhoneGap构建和iOS - Mac需要?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

首先,我已经回顾了以前的类似问题,但是他们的答案是老的和/或矛盾的,所以我问什么是当前(5月14日)构建/测试/部署iPhone / iPad应用程序的要求? / p>

更长的版本 - 我被客户要求开发一个iOS / Android应用程序,因为我是全新的,我希望使用PhoneGap使用我现有的web技能开发应用程序。我目前只有一个Android手机这样安装Android SDK和PhoneGap到Ubuntu(一切下载本周incubuntu所有所有当前版本),并最终得到PhoneGaphello world示例运行在模拟器和实际手机(不通过播放存储,只是APK文件的本地副本)



我在这里和其他地方找到了许多指南,详细介绍了如何使用PC(或Ubuntu我假设) - 主要是谈论certs等。但是,从我的设置我的工具建立我的第一个hello世界的应用程序的经验,PhoneGap需要为您的目标每个设备的SDK,因此,将需要苹果SDK使您运行仿真器?或者你可以在Ubuntu上模拟一个iPhone?



所以在我看来,即使你可以部署到App Store没有Mac,你将需要一个在开发过程中运行模拟器 - 这是正确的

解决方案

strong>简短回答:您不需要在Ubuntu上安装iOS SDK(无论如何也不能)。 build.phonegap.com为您照顾。似乎没有为Ubuntu的iOS模拟器,但可能有一些在线服务,你可以利用。但我相信你仍然需要一个Mac来发布到应用商店。



长回答:



您需要:




  • 证书文件的Apple开发人员帐户

  • 可能需要iOS设备进行测试。似乎没有为Ubuntu的iOS模拟器,虽然可能有一些良好的在线服务。 (有些好的主题: 1 2 查看以下Kerri的评论,强烈建议您在非仿真器上的实际设备上测试。



以下是您的操作方式:


  1. 使用您的Apple开发人员帐户,在凭证,识别码和设定档中建立凭证和配置档案。个人资料部分。

  2. 从证书创建.p12文件。 (您应该可以使用OpenSSL,但我不确定具体步骤。)

  3. 使用 build.phonegap.com

  4. 使用.p12和配置文件创建签名密钥。

  5. 上传您的代码,build.phonegap.com将为您创建.ipa文件。

  6. 如果您使用iOS设备进行测试,则可以在设备上浏览到build.phonegap.com

  7. 要发布到应用商店我相信你仍然需要一个Mac与Xcode。 (也许有一个第三方服务,但我找不到任何。)购买Mac的替代方法是只购买操作系统,双启动或创建一个虚拟机。


firstly I have reviewed previous similar questions, but there were either old and or contradictory in their answers, so I’m asking what is the current (May ’14) requirements to build/test/deploy iPhone/iPad apps?

Longer version – I’ve been asked by a client to develop an app for iOS/Android and as I’m completely new to this I was hoping to use PhoneGap to use my existing web skills to develop the apps. I currently just own an Android phone so installed the Android SDK and PhoneGap onto Ubuntu (everything download this week inc Ubuntu so all current versions) and eventually got the PhoneGap "hello world" example to run on the emulator and actual phone (not via play store, just local copy of APK file)

I’ve found many guides here and elsewhere detailing how you can publish to App Store using a PC (or Ubuntu I assume) – mostly talking about certs etc. But, from my experience of setting up my tools to build my first hello world app, PhoneGap requires the SDKs for each device you target, so would thus require the Apple SDK to enable you to run an emulator? Or can you emulate an iPhone on Ubuntu?

So it seems to me, that even thought you can deploy to the App Store without a Mac, you will need one during development to run the emulator – is this correct or what am I missing?

Thanks in advance!

解决方案

Short answer: You don't need to have the iOS SDK on Ubuntu (nor could you anyway). build.phonegap.com takes care of that for you. There don't seem to be iOS emulators for Ubuntu but there may be some online services that you can leverage. But I believe you still need a Mac to publish to the app store.

Long answer:

You will need:

  • An Apple Developer account for the certificate files
  • You probably need an iOS device for testing. There don't seem to be iOS emulators for Ubuntu though there may be some good online services. (Some good threads on this: 1, 2) See Kerri's comment below highly recommending you test on a real device on not an emulator.

Here's how you would do it:

  1. Using your Apple Developer account, create a certificate and provisioning file in the Certificates, Identifiers & Profiles section.
  2. Create a .p12 file from the certificate. (You should be able to use OpenSSL but I'm not sure of the exact steps.)
  3. Register an account with build.phonegap.com.
  4. Create a signing key using your .p12 and provisioning files.
  5. Upload your code and build.phonegap.com will create the .ipa file for you.
  6. If you use an iOS device for testing, you can browse to build.phonegap.com on the device and install the app from there.
  7. To publish to the app store I believe you still need a Mac with Xcode. (Maybe there's a 3rd party service that does this but I couldn't find any.) An alternative to buying a Mac is to buy just the OS and either dual boot or create a virtual machine.

这篇关于PhoneGap,PhoneGap构建和iOS - Mac需要?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆