Is it possible to work on native code for iOS from...
# ios
m
Is it possible to work on native code for iOS from Windows? I have some code that uses imports from
<http://platform.xxx|platform.xxx>
which resolve just fine in Android Studio on a MacBook, but on Windows the reference cannot be resolved.
r
Not really. Apple is Apple.
2
j
There's no way to build, test, or run iOS code on anything but a Mac (Apple's restriction). But you might try https://github.com/LouisCAD/CompleteKotlin, which adds the platform headers for the IDE to recognize. I personally ran into an error when using the plugin on Windows though:
Copy code
Execution failed for task ':my-lib:commonizeCInterop'.
 > Process 'command 'C:\Program Files\Android\Android Studio\jre\bin\java.exe'' could not be started because the command line exceed operating system limits.
If you do experience this error, besides disabling the plugin, you also need to delete
~/.konan
to clear the files it created there causing the error.