cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Edna Morales (JIRA)" <>
Subject [jira] [Commented] (CB-9719) Xcode build error in framework with CordovaLib as a dependency
Date Thu, 01 Oct 2015 21:13:26 GMT


Edna Morales commented on CB-9719:

I'm trying to change the Enable Module settings by adding this line in build.xcconfig:

I see the setting being picked up in in the build output:
Build settings from configuration file '/Users/ednamorales/dev/mfpcli-dev/testBuild/platforms/ios/cordova/build-debug.xcconfig':
    CODE_SIGN_IDENTITY = iPhone Developer

But I still see the non-modular header error I mentioned in the description, by the end of
the build. This is the result:
Error code 65 for command: xcodebuild with args: -xcconfig,/Users/ednamorales/dev/mfpcli-dev/testBuildError/platforms/ios/cordova/build-debug.xcconfig,-project,testBuildError.xcodeproj,ARCHS=i386,-target,testBuildError,-configuration,Debug,-sdk,iphonesimulator,build,VALID_ARCHS=i386,CONFIGURATION_BUILD_DIR=/Users/ednamorales/dev/mfpcli-dev/testBuildError/platforms/ios/build/emulator,SHARED_PRECOMPS_DIR=/Users/ednamorales/dev/mfpcli-dev/testBuildError/platforms/ios/build/sharedpch

If I manually change the Enable Modules setting through the Xcode GUI to NO, then those non-modular
headers go away. Also if I change them in the pbxproj file

> Xcode build error in framework with CordovaLib as a dependency
> --------------------------------------------------------------
>                 Key: CB-9719
>                 URL:
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: Master
>            Reporter: Edna Morales
> We have a .framework that depends on CordovaLib and has an import statement in one of
our header files:
> #import <Cordova/CDVViewController.h>
> We get an error when we build the application:
> Include of non-modular header inside framework module 'IBMMobileFirstPlatformFoundationHybrid.WLCordovaAppDelegate'
> I'm not getting an error with any other import statements like:
> #import <UIKit/UIKit.h>
> If I change the project setting 'Enable Modules (C and Objective-C)' to No, the error
goes away

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message