我试图使用scala本机在os x上构建一个iOS应用程序,并在进行sbt构建时遇到了许多问题。任何关于该做什么的提示都是受欢迎的。
我为build.sbt文件使用Xcode目录设置了iOS,如下所示:
nativeCompileOptions := Seq("-v",
"-isysroot/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator10.3.sdk")
nativeLinkingOptions := Seq("-v",
"-I/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/usr/include",
"-L/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/usr/lib",
"-isysroot/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator10.3.sdk")我是不是搞错了?我不是sbt专家,但我需要对scala本机sbt代码进行重大修改吗?
谢谢。
发布于 2021-03-25 19:13:58
从LLVM IR的角度来看,这应该是可能的,而且几乎是被支持的(考虑到通过调试平滑粗糙的边缘是小白鼠)。但是,从您可以从Scala原住民调用的苹果框架的角度来看,您将无法从Scala原住民获得这些苹果框架,这意味着有效的答案是很难“不”使用Scala原住民在其当前的生态系统中作为在iPhone、iPad、Apple、Apple或Mac上编写iOS/iPadOS/MacOS应用程序的方式。
https://stackoverflow.com/questions/43559704
复制相似问题