使用Go语言而不使用Swift或Objective-C,是否可以创建iOS应用程序?

huangapple go评论100阅读模式
英文:

Is it possible to create an iOS app with Go without Swift or Objective-C?

问题

我很高兴为您提供翻译服务。以下是您要翻译的内容:

我将很快开始在iOS上进行移动开发,我想知道是否可以使用Go和React Native(例如)创建一个应用程序,而不使用Swift或Objective-C。

我在Quora和Google上搜索了答案,但没有一个答案足够准确。

英文:

I will soon start mobile development on iOS and I would like to know if it possible to create an app with Go along with React Native ​​(for example) without using Swift or Objective-C.

I searched for answers about Quora and Google, but none are precise enough.

答案1

得分: 3

有一些替代方案可以在没有Swift或Obj-c的情况下使用原生iOS应用程序,例如HTML5、Xamarin(C#)、PhoneGap、Cordova等,但这些替代方案都有一些牺牲。

你会花费大部分额外的编码时间来解决这些替代技术的问题。如果你希望你的应用程序比网页应用程序表现更好,那么你应该使用Obj-C或Swift。

英文:

There are alternatives to native iOS apps without Swift or Obj-c, such as HTML5, Xamarin (C#), PhoneGap, Cordova, etc. but these alternatives have sacrifices.

Most of your extra coding time would be invested in workarounds to make these alternative technologies work. If you want your app to perform better than a web app, then you should use Obj-C or Swift.

答案2

得分: 2

这是一个很好的问题,我对此进行了很多研究,以下是结果:

在Golang中最有前景的选择是:Package app lets you write portable all-Go apps for Android and iOS


Apple的App Store中大多数应用程序都是用Objective-C和Swift编程语言编写的,开发者通常使用Xcode来开发他们的应用程序(Four Ways To Build A Mobile Application, Part 1: Native iOS)。


还有一些跨平台的选择:


一些相关的问题:
https://stackoverflow.com/questions/3369413/developing-cross-platform-mobile-application
https://stackoverflow.com/questions/31109022/how-to-build-a-cross-platform-app
https://stackoverflow.com/questions/2353305/building-cross-platform-app-recommendation
https://stackoverflow.com/questions/30048820/react-native-v-xamarin-forms-choosing-cross-platform-app-environment
https://stackoverflow.com/questions/8460037/list-of-delphi-language-features-and-version-in-which-they-were-introduced-depre

英文:

This is good question, and I did many research on this, results:

The most promising option in Golang is: Package app lets you write portable all-Go apps for Android and iOS


Most applications in Apple’s App Store are written in the Objective-C and Swift programming languages, and developers typically use Xcode to develop their applications (Four Ways To Build A Mobile Application, Part 1: Native iOS).


There are some cross-platform options:


Some relative questions:
https://stackoverflow.com/questions/3369413/developing-cross-platform-mobile-application
https://stackoverflow.com/questions/31109022/how-to-build-a-cross-platform-app
https://stackoverflow.com/questions/2353305/building-cross-platform-app-recommendation
https://stackoverflow.com/questions/30048820/react-native-v-xamarin-forms-choosing-cross-platform-app-environment
https://stackoverflow.com/questions/8460037/list-of-delphi-language-features-and-version-in-which-they-were-introduced-depre

答案3

得分: 1

你可以使用React Native构建基本的iOS/Android应用程序(还可以使用包构建更多功能)。它是一个使用JavaScript构建iOS应用程序的强大工具。有很多模块和社区支持(https://js.coach/),可以帮助你在基础上构建应用程序。我一直在使用React Native构建应用程序,结果与原生应用程序相当。在React Native中有一些学习曲线,但绝对是值得的。

英文:

You can build basic (and more with packages) iOS/Android apps using react-native. It is a great tool to build iOS apps using js. There are loads of modules and community support (https://js.coach/) to help you build out of the basics. I've been building apps on react-native and the result is on par with native apps. There is a small learning curve in react-native but it is definitely worth it

huangapple
  • 本文由 发表于 2016年3月23日 04:01:06
  • 转载请务必保留本文链接:https://go.coder-hub.com/36164059.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定