Common errors

Building the .xcodeproj instead of the .xcworkspace

Reproduced and fixed on our build machines on 25 November 2026 (Xcode 27.2)

A project that uses CocoaPods fails to compile when you build the project file directly.

01What you see

The following build commands failed:
	SwiftDriver edemo normal arm64 com.apple.xcode.tools.swift.compiler (in target 'edemo' from project 'edemo')
	Building project edemo with scheme edemo and configuration Release

From our own run of xcodebuild -project ios/edemo.xcodeproj -scheme edemo -configuration Release ...

02Why it happens

When a project uses CocoaPods, the pods live in a second project, and the .xcworkspace is what ties the two together. Building the .xcodeproj on its own leaves every pod out, so the compiler cannot find the modules your code imports. The failure shows up as a compile step that failed, as above.

03The fix

Build the workspace instead. Look for a line saying Building project: it should say Building workspace.

xcodebuild -workspace ios/edemo.xcworkspace -scheme edemo -configuration Release -destination "generic/platform=iOS" CODE_SIGNING_ALLOWED=NO -quiet build

Run pod install first if the Pods folder is not in your repository. React Native and Expo projects are set up this way.

04How we checked

On 25 November 2026 we started a fresh machine from our default image (Xcode 27.2), made a new project, caused this error on purpose with the command above, then ran the fix until it built. We do the same before adding any page to this list.

More on this kind of project: the guide. Other errors: Common errors. Still stuck? Send the build URL to support@macbuildcloud.com.