Skip to content

Build error with cordova-ios@8.0.0 #366

Description

@MelvilQ

Bug Report

After updating to cordova-ios@8.0.0, the build fails.

Expected Behaviour

Build suceeds.

Actual Behaviour

Build fails with the following error:

fatal error: module 'Cordova' in AST file '/Users/fue/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/15S67CMWV9I6I/Cordova-2GK02F7PBGH6O.pcm' (imported by AST file '/Users/fue/Library/Developer/Xcode/DerivedData/App-atgupcpkvrcalccpbpifbqpijpvw/Build/Intermediates.noindex/ArchiveIntermediates/App/PrecompiledHeaders/Bridging-Header-swift_DI8M2C4YIOG2-clang_15S67CMWV9I6I.pch') is not defined in any loaded module map file; maybe you need to load '/Users/fue/Library/Developer/Xcode/DerivedData/App-atgupcpkvrcalccpbpifbqpijpvw/Build/Intermediates.noindex/ArchiveIntermediates/App/IntermediateBuildFilesPath/GeneratedModuleMaps-iphoneos/Cordova.modulemap'?
note: consider adding '/Users/fue/Library/Developer/Xcode/DerivedData/App-atgupcpkvrcalccpbpifbqpijpvw/Build/Intermediates.noindex/ArchiveIntermediates/App/IntermediateBuildFilesPath/GeneratedModuleMaps-iphoneos' to the header search path
note: imported by '/Users/fue/Library/Developer/Xcode/DerivedData/App-atgupcpkvrcalccpbpifbqpijpvw/Build/Intermediates.noindex/ArchiveIntermediates/App/PrecompiledHeaders/Bridging-Header-swift_DI8M2C4YIOG2-clang_15S67CMWV9I6I.pch'
note: this is generally caused by modules with the same name found in multiple paths

Reproduce Scenario (including but not limited to)

Steps to Reproduce

Reproducible with new cordova project with just ios and the plugin added, for example:

  1. cordova create hello com.example.hello HelloWorld
  2. cordova platform add ios
  3. cordova plugin add @havesource/cordova-plugin-push
  4. cordova prepare
  5. cordova build

Platform and Version

iOS

cordova info Printout

Cordova Packages:

cli: 13.0.0
    common: 6.0.0
    create: 6.0.0
    lib: 13.0.0
        common: 6.0.0
        fetch: 5.0.0

Project Installed Platforms:

ios: 8.0.0

Project Installed Plugins:

@havesource/cordova-plugin-push: 7.0.0

Environment:

OS: Sequoia 15.4 (24E248) (darwin 24.4.0) x64
Node: v20.11.1
npm: 10.2.4

ios Environment:

xcodebuild:

Xcode 16.2
Build version 16C5032a

Project Setting Files:

config.xml:
HelloWorld A sample Apache Cordova application that responds to the deviceready event. Apache Cordova Team
package.json:

--- Start of Cordova JSON Snippet ---
{
"platforms": [
"ios"
]
}
--- End of Cordova JSON Snippet ---

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    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