Xcode “Missing Submodule” warning

前端 未结 8 1698
陌清茗
陌清茗 2021-02-01 02:13

I\'m using Xcode6 GM to create a Coacoa Touch Framework (a new function in Xcode6), then this framework is included into my app.

Everything is fine (works fine), except

相关标签:
8条回答
  • 2021-02-01 02:37

    // In this header, you should import all the public headers of your framework using statements like

    #import <GameworkSDK/GWObject.h>

    like this:

    #import <UIKit/UIKit.h>
    
    #import <GameworkSDK/GWObject.h>
    
    //! Project version number for GameworkSDK.
    FOUNDATION_EXPORT double GameworkSDKVersionNumber;
    
    //! Project version string for GameworkSDK.
    FOUNDATION_EXPORT const unsigned char GameworkSDKVersionString[];
    
    0 讨论(0)
  • 2021-02-01 02:42

    i had this problem cocoa pods

    my solution was real simple but took forever for me to figure out.

    • when i ran $ pod install it generated a workspace for me in the same dir as my .xcodeproj file.
    • however i had already created a workspace to use as its parent directory.
    • so then i simply deleted my old workspace and went with the one that pods created


    glhf!

    0 讨论(0)
  • 2021-02-01 02:44

    I ran into this issue and all the solutions above didn't fit me, since the file wasn't supposed to be in the umbrella header.

    So if this is your own framework and that particular file shouldn't be in the umbrella header, make sure it isn't marked public in the target membership section.

    That fixed it for me.

    0 讨论(0)
  • 2021-02-01 02:48

    I ran into the same problem and eventually fixed it by adding my project headers into the umbrella header. When you create a new framework it should start with a single .h file titled by the project (in your case DirectProximityFramework.h).

    Inside this file is a comment:

    In this header, you should import all the public headers of your framework using statements like #import <DirectProximityFramework/PublicHeader.h>

    So just add your GeofencingHelper.h file in this file:

    #import <DirectProximityFramework/GeofencingHelper.h>
    

    This should remove all of your warnings!

    0 讨论(0)
  • 2021-02-01 02:48

    Set header search path in your project setting:

    TARGETS / Build Settings / Header Search Paths "$PODS_CONFIGURATION_BUILD_DIR/[YOUR PROJ NAME]/[YOUR PROJ NAME].framework/Headers"

    Now import the header file.

        #import <DirectProximityFramework.h>
    
    0 讨论(0)
  • 2021-02-01 02:52

    In case if it is not your framework and there is nothing to do you can disable warning in such way

    #pragma clang diagnostic push
    #pragma clang diagnostic ignored "-Wincomplete-umbrella"
    #import <DirectProximityFramework/GeofencingHelper.h>
    #pragma clang diagnostic pop
    

    Note - it is not a fix, it just hide the problem.

    0 讨论(0)
提交回复
热议问题