Skip to content
Back

Build errors after installing sdk-for-apple SwiftUI

  • 0
  • Apple
Cutluk
17 Jul, 2025, 18:53

Trying to install the sdk-for-apple for my swift project. The app builds with no issue without the sdk. Once I install the sdk, set the target as my app and try to build. I get the error below.

Initializer 'init(msg_hdr:msg_len:)' is not available due to missing import of defining module 'CNIODarwin'

TL;DR
Building a Swift project with sdk-for-apple SwiftUI results in the error "Initializer 'init(msg_hdr:msg_len:)' is not available due to missing import of defining module 'CNIODarwin'". This occurs after setting the target as the app. The solution involves importing the defining module 'CNIODarwin' to resolve the issue.
Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more