使用React Native在Linux上进行iOS开发

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

Using react native for IOS development on Linux

问题

我目前正在尝试开发一个多平台应用,但我在使用Linux(Ubuntu),我以为我可以只使用Expo进行开发,然后只需在Mac上构建项目。
但似乎如果我想要一个使用摄像头等功能的项目,Linux 是不够的。
我错了吗?
看起来我需要使用CocoaPods,但它不仅仅适用于macOS吗?

我完全迷失了 😅

尝试使用CocoaPods,以为它适用于Linux和Mac,但它仍然需要安装Xcode,而Xcode是严格针对Mac的。

英文:

I'm curently trying to develop an multi platform app, but i'm using a linux (ubuntu) and I thought that i could just use expo for the development and then just use a mac to build the project.
But it seems that if I want a project that uses for example the camero, a linux isn't gonna cut it.
Am i wrong ?
It seems like I need to use cocoapods, but isn't it just for macOS ?

I'm completly lost on this 😅

Tried using cocoapods thinking it was adapted to both linux and mac but it still need xcode installed, which is strictly for mac.

答案1

得分: 0

我曾感到困惑,但只是错误地使用了 Expo,现在我只使用 Expo SDK,它会自动处理复杂的 iOS 问题,而不是使用 React Native 包。

英文:

I was confused, but i was just using expo the wrong way, I now just use the expo SDK that handles automatically the complicated ios stuff, instead of the react-native packages.

huangapple
  • 本文由 发表于 2023年7月17日 22:43:50
  • 转载请务必保留本文链接:https://go.coder-hub.com/76705597.html
匿名

发表评论

匿名网友

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

确定