Skip to content

Xcode build errors, "Unable to find module dependency: 'NIOCore'" #59

@snej

Description

@snej

Describe the bug
Added IkigaJSON as a dependency in my Xcode [26.2] project using the GUI. Xcode also added swift-atomics, swift-collections, swift-nio, swift-system dependencies.
When building, even if I don't import IkigaJSON anywhere, I now get a number of build errors, shown below. The compiler is unable to find _NIOJSONs dependencies NIOCore and NIOFoundationCompat.

I was able to reproduce this with a new empty Xcode project created for macOS using the Swift Framework template. All I did was open the project, choose Add Package Dependencies, add IkigaJSON, and build.

The errors begin:

/Users/snej/Library/Developer/Xcode/DerivedData/jsontest-extltjcxnrptnahjlbejrfidqqzw/SourcePackages/checkouts/IkigaJSON/Sources/_NIOJSON/ByteBufferSupport.swift:1:8: error: Unable to find module dependency: 'NIOCore'
import NIOCore
       ^ (in target '_NIOJSON' from project 'IkigaJSON')
/Users/snej/Library/Developer/Xcode/DerivedData/jsontest-extltjcxnrptnahjlbejrfidqqzw/SourcePackages/checkouts/IkigaJSON/Sources/_NIOJSON/ByteBufferSupport.swift:1:8: note: A dependency of main module '_NIOJSON'
import NIOCore
       ^ (in target '_NIOJSON' from project 'IkigaJSON')

A full build log is in the attached zip file.

Sample to Reproduce

Download attached Xcode project. Just open jsontest.xcodeproj and choose Build.
jsontest.zip

Expected behavior
Expected it to build without errors.

Environment (please complete the following information):

  • OS: macOS 15.7.4, Xcode 26.2
  • Compilation Mode: Debug
  • IkigaJSON Version: 2.4.1

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions