You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Edna Morales (JIRA)" <ji...@apache.org> on 2015/10/01 23:13:26 UTC

[jira] [Commented] (CB-9719) Xcode build error in framework with CordovaLib as a dependency

    [ https://issues.apache.org/jira/browse/CB-9719?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14940424#comment-14940424 ] 

Edna Morales commented on CB-9719:
----------------------------------

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

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':
    CLANG_ENABLE_MODULES = NO
    CODE_SIGN_IDENTITY = iPhone Developer
    CODE_SIGN_RESOURCE_RULES_PATH = $(SDKROOT)/ResourceRules.plist
    ENABLE_BITCODE = NO

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: https://issues.apache.org/jira/browse/CB-9719
>             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
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org