2016-08-25 6 views
2

私が探しているのは、自分のソースコードの実装を表示していないCocoa Podを作成することです。私はあなたが "s.ios.vendored_frameworks"を使用して、フレームワークのためにiOSの仕組みのようなあなたのフレームワークを埋め込むことができると言われました。私がしたいことは私のフレームワークを埋め込むことですが、私のソースファイルを見えるようにしたり、編集することはできません。私は間違って何をしていますか?私はCocoapodsでvendored_frameworksを作ろうとしています

私は私がここにあるのXcodeを経て作成フレームワークがあります:https://bitbucket.org/nerdgang/ngkitsdk/src

これは私podspecです:

Pod::Spec.new do |s| 
    s.name   = "NGKitSDK" 
    s.version  = "0.0.1" 
    s.summary  = "NGKit a SDK for my projects, my version of iOS." 
s.homepage  = "https://bitbucket.org/nerdgang/ngkitsdk" 

    # ――― Spec License ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― # 
    # 
    # Licensing your code is important. See http://choosealicense.com for more info. 
    # CocoaPods will detect a license file if there is a named LICENSE* 
    # Popular ones are 'MIT', 'BSD' and 'Apache License, Version 2.0'. 
    # 

    s.license  = "MIT" 
    # s.license  = { :type => "MIT", :file => "FILE_LICENSE" } 


    # ――― Author Metadata ――――――――――――――――――――――――――――――――――――――――――――――――――――――――― # 
    # 
    # Specify the authors of the library, with email addresses. Email addresses 
    # of the authors are extracted from the SCM log. E.g. $ git log. CocoaPods also 
    # accepts just a name if you'd rather not provide an email address. 
    # 
    # Specify a social_media_url where others can refer to, for example a twitter 
    # profile URL. 
    # 

    s.author    = { "Havic" => "[email protected]" } 
    # Or just: s.author = "Havic" 
    # s.authors   = { "Havic" => "[email protected]" } 
    # s.social_media_url = "http://twitter.com/Havic" 

    # ――― Platform Specifics ――――――――――――――――――――――――――――――――――――――――――――――――――――――― # 
    # 
    # If this Pod runs only on iOS or OS X, then specify the platform and 
    # the deployment target. You can optionally include the target after the platform. 
    # 

    # s.platform  = :ios 
    s.platform  = :ios, "5.0" 

    # When using multiple platforms 
    # s.ios.deployment_target = "5.0" 
    # s.osx.deployment_target = "10.7" 
    # s.watchos.deployment_target = "2.0" 
    # s.tvos.deployment_target = "9.0" 


    # ――― Source Location ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――― # 
    # 
    # Specify the location from where the source should be retrieved. 
    # Supports git, hg, bzr, svn and HTTP. 
    # 

    s.source  = { :git => "https://bitbucket.org/nerdgang/ngkitsdk/src" } 
    s.ios.vendored_frameworks = 'NGKitSDK.framework' 


    # ――― Source Code ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― # 
    # 
    # CocoaPods is smart about how it includes source code. For source files 
    # giving a folder will include any swift, h, m, mm, c & cpp files. 
    # For header files it will include any header in the folder. 
    # Not including the public_header_files will make all headers public. 
    # 

    s.source_files = "NGKitSDK", "Classes/**/*.{h,m}" 
    s.exclude_files = "Classes/Exclude" 

    # s.public_header_files = "Classes/**/*.h" 
+1

普遍的なクローズドソースフレームワークをCocoaPodsに公開する方法に関する広範なガイドを書いています。https://eladnava.com/publish-a-universal-binary-ios-framework-in-swift-using-cocoapods/ –

答えて

0

を私はSを設定することで解決した、過去に同様の問題を、持っていました。 public_header_filesフレームワークで使用されるヘッダーファイルを指す値。

関連する問題