Xcode 16 build fails randomly with

So this error has randomly appeared to the code that was building previously even with Xcode 16 and since it has appeared it started falling always. Even after cleaning derived data, build folder, re-cloning the app, doing all kinds of voodoos.

/Users/kakhi/Library/Developer/Xcode/DerivedData/MyApp-eafqhlqmrdvrhudisvbfymvrnwba/Build/Intermediates.noindex/MyApp.build/Debug-iphoneos/MyApp.build/Objects-normal/arm64/MyAppabi.json /Users/kakhi/Library/Developer/Xcode/DerivedData/MyApp-eafqhlqmrdvrhudisvbfymvrnwba/Build/Intermediates.noindex/MyApp.build/Debug-iphoneos/MyApp.build/Objects-normal/arm64/MyApp.abi.json: No such file or directory

I've checked the path and there's indeed no .abi.json file but I've never had anything to do with it. Any ideas what I might be missing? Or is this Xcode 16 bug?

Also, it was succeeding to build after first appearance on Xcode 16 beta 6 but now it fails to succeed subsequent builds on beta 6 as well :(

Answered by Kakhikiknadze in 808814022

In my case it was one line of silly import. I was importing a wrong module which was not in the dependencies.

I’m getting the same error as well with Xcode 16 and Swift 6, with also other files showing the same error :

  1. MyApp.abi.json
  2. MyApp.swiftdoc
  3. MyApp.swiftmodule
  4. MyApp.swiftsourceinfo

Cleaning the project, removing the derived data, deleting every external dependencies and re-fetching them didn’t change anything.

Accepted Answer

In my case it was one line of silly import. I was importing a wrong module which was not in the dependencies.

Xcode 16 build fails randomly with
 
 
Q