简体   繁体   English

我已经用Java开发了一个应用程序,如何在xcode模拟器中打开它

[英]i have already developed an app in java how do i open it in xcode simulator

My team has developed a big social networking app. 我的团队开发了一个大型的社交网络应用程序。 Now i want to publish it to app store. 现在,我想将其发布到应用程序商店。 But the app is not written in Objective C. What is the way to get it published in app store? 但是该应用程序不是用Objective C编写的。如何在应用程序商店中发布它? Or least how can i open in in Xcode simulator for testing and enhancement? 或者至少我如何在Xcode模拟器中打开进行测试和增强?

My guess is that you created an app in android and now want to port it to iOS. 我的猜测是您在android中创建了一个应用,现在想将其移植到iOS。 Unfortunately Xcode isn't able to transform Java to Objective-C and iOS cannot run Java apps, so you will not be able yo submit your app as-is to the App Store. 不幸的是,Xcode无法将Java转换为Objective-C,iOS无法运行Java应用程序,因此您将无法按原样将应用程序提交到App Store。

You will have to do it the hard way and rewrite the entire app in Objective-C. 您将必须用困难的方式完成操作,然后在Objective-C中重写整个应用程序。 Luckily Google recently launched a translator that might help with part of the work: http://google-opensource.blogspot.com.br/2012/09/j2objc-java-to-ios-objective-c.html 幸运的是,Google最近推出了可能对部分工作有所帮助的翻译器: http : //google-opensource.blogspot.com.br/2012/09/j2objc-java-to-ios-objective-c.html

You cannot. 你不能。 Sorry. 抱歉。

I recently worked on an app for iOS and Android launch and we settled for parallel development. 我最近为iOS和Android发布开发了一个应用程序,我们决定进行并行开发。

Your Java code is incompatible with iOS and Xcode has no process to convert it to Obj-c. 您的Java代码与iOS不兼容,并且Xcode没有将其转换为Obj-c的过程。 The only options for cross-platform development that I am aware of are: 我知道的跨平台开发的唯一选择是:

1) Heavy use of c/c++ based libraries; 1)大量使用基于c / c ++的库; these can be utilised in both Android applications and iOS applications (this is what we used). 这些可以在Android应用程序和iOS应用程序中使用(这就是我们所使用的)。 But the entire front end of the apps must be re-implemented. 但是必须重新实现应用程序的整个前端。

2) A cross-platform framework such as PhoneGap or Appcelerator, but this would require significant redevelopment from your current code-base. 2)跨平台框架,例如PhoneGap或Appcelerator,但这将需要从当前代码库进行大量重新开发。

3) A 'translator' such as the one Breno Gazzola suggested (another option is XMLVM) but these only do some of the work for you, and they're far from perfect. 3)诸如Breno Gazzola建议的“翻译器”(另一种选择是XMLVM),但是这些仅为您完成一些工作,而且还远远不够完美。

It's very hard to judge without knowing your code, but if I were you I'd look at combining options 1 and 3 as much as possible, but budget for a complete re-write. 在不知道您的代码的情况下很难判断,但是如果您是我,我会考虑将选项1和3尽可能多地组合在一起,但是要预算以完全重写。

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

相关问题 如何获得在Xcode 9模拟器上显示的应用程序图标? - How do I get the app icon to show on Xcode 9 simulator? 我已经在xcode5中安装了iOS6模拟器,但是无法在iOS6模拟器上运行应用 - I have installed iOS6 simulator in xcode5, but I can't run app on iOS6 simulator iOS - 我开发的礼品应用程序 - iOS - Gift app I have developed 如何在XCode Simulator上下载并打开应用 - How to download and open an app on XCode Simulator 如何在Apple xcode设备模拟器中安装和启动Home.app? - How do I install and launch the Home.app in the Apple xcode device simulator? Xcode 6中已开发的应用程序中的自动布局实施 - Auto Layout implementation in already developed app in Xcode 6 如何为使用Xcode开发的iPhone应用程序制作自定义应用程序内相机? - how can i make a custom, in-app camera for my iphone app developed in xcode? 如何打开从github下载的xcode中已有的项目? - How do i open already existing project in xcode downloaded from github? 如何在XCode 6 iOS模拟器中运行/录制iOS应用程序? - How can I run / record an iOS app in the XCode 6 iOS Simulator? 使用 Xcode,我如何导出应用程序并将其与模拟器中的团队成员共享? - With Xcode how can I export and share an app with a team member in the simulator?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM