Hello! Anyone else has issues with xcode 16? Updat...
# multiplatform
e
Hello! Anyone else has issues with xcode 16? Updated xcode and my project running on kotlin 1.9.24, fails to build with : Exception in thread “main” java.lang.Error: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS18.0.sdk/usr/include/copyfile.h3510: fatal error: ‘sys/cdefs.h’ file not found Any advice would be appreciated.
e
Not skie in this instance, since my project is not using skie.
v
Even I am facing the same issue while using swift-klib-plugin in the latest version of Xcode 16 so any update on it till now.
f
@Varun Sethi I guess, for this one, it needs to be updated by the maintainer
For the people, who have this issue, download xcode 15 (even it’s not running) and make the Kotlin compiler using it with
xcode-select
command
e
At least for me this helps with local development and does not work with deployment if publishing from my laptop - part of the code is compiled with 15.4 and the other with 16. All of this causes failure of publishing apps to testflight.
f
Is Xcode 16 now mandatory for upload? https://developer.apple.com/news/upcoming-requirements/
e
if using Sequoia, yes
Sequoia does not allow running < xcode 16
f
Try the automated way with https://fastlane.tools/
it could be a nice workaround
You can’t run Xcode 15 on sequoia, but you can run the command line way, so it could work on that way
b
For me, changing Kotlin version to 2.0.21 fixed this issue.
664 Views