Latest 0.0.1
Homepage https://github.com/wang68543/WQPayToolComponents
License MIT
Platforms ios 8.0, requires ARC
Authors

功能组件

本地支持CocoaPods’

pod 'WQPayToolComponents',~>'0.0.1'

万分感谢Laurent Etiemble解决支付宝cocoapods集成问题和nickcheng解决微信cocoapods集成问题

提示:

pods 集成的时候如果出现冲突如下冲突:

[!] The ‘Pods-[工程名]’ target has libraries with conflicting names: libwechatsdk.a.

需要在主工程中删除冲突资源libwechatsdk.a(不删除头文件),然后pod install就可成功了.

其次将刚刚集成过去的资源库(libwechatsdk.a)添加到之前依赖此资源的第三方库中

The ‘Pods-XXX’ target has transitive dependencies that include static binaries

在最后面添加如下内容:

pre_install do |installer|
    # workaround for https://github.com/CocoaPods/CocoaPods/issues/3289
    def installer.verify_no_static_framework_transitive_dependencies; 
    end

Latest podspec

{
    "name": "WQPayToolComponents",
    "version": "0.0.1",
    "summary": "u652fu4ed8u7ec4u4ef6",
    "description": "u5c06u4e4bu524du7684u7ec4u4ef6u8fdbu884cu7ec6u81f4u62c6u5206",
    "homepage": "https://github.com/wang68543/WQPayToolComponents",
    "license": "MIT",
    "authors": {
        "u738bu5f3a": "[email protected]"
    },
    "source": {
        "git": "https://github.com/wang68543/WQPayToolComponents.git",
        "tag": "0.0.1"
    },
    "platforms": {
        "ios": "8.0"
    },
    "requires_arc": true,
    "prefix_header_contents": [
        "#import ",
        "#import "
    ],
    "subspecs": [
        {
            "name": "WQPaySDK",
            "subspecs": [
                {
                    "name": "WeiXinSdk",
                    "requires_arc": false,
                    "vendored_libraries": "WQPayToolComponents/WQPaySDK/WeiXinSdk/libWeChatSDK.a",
                    "preserve_paths": "WQPayToolComponents/WQPaySDK/WeiXinSdk/libWeChatSDK.a",
                    "source_files": "WQPayToolComponents/WQPaySDK/WeiXinSdk/*.h",
                    "public_header_files": "WQPayToolComponents/WQPaySDK/WeiXinSdk/*.h",
                    "libraries": [
                        "z",
                        "sqlite3.0",
                        "c++"
                    ],
                    "frameworks": [
                        "SystemConfiguration",
                        "CoreTelephony",
                        "CFNetwork"
                    ],
                    "xcconfig": {
                        "LIBRARY_SEARCH_PATHS": ""$(PODS_ROOT)/WQPayToolComponents/WQPaySDK/WeiXinSdk/libWeChatSDK"",
                        "HEADER_SEARCH_PATHS": ""$(PODS_ROOT)/WQPayToolComponents/WQPaySDK/WeiXinSdk/libWeChatSDK""
                    }
                },
                {
                    "name": "WQPaySign",
                    "dependencies": {
                        "OpenSSL": []
                    },
                    "pod_target_xcconfig": {
                        "ENABLE_BITCODE": "YES"
                    },
                    "source_files": "WQPayToolComponents/WQOrderSign/**/*.{h,m}"
                },
                {
                    "name": "AliPaySDK",
                    "dependencies": {
                        "WQPayToolComponents/WQPaySDK/WQPaySign": []
                    },
                    "vendored_frameworks": "WQPayToolComponents/WQPaySDK/AliPaySDK/AlipaySDK.framework",
                    "resources": "WQPayToolComponents/WQPaySDK/AliPaySDK/AlipaySDK.bundle",
                    "frameworks": [
                        "SystemConfiguration",
                        "CoreTelephony",
                        "QuartzCore",
                        "CoreText",
                        "CoreGraphics",
                        "CFNetwork",
                        "CoreMotion"
                    ],
                    "libraries": [
                        "c++",
                        "z"
                    ],
                    "source_files": "WQPayToolComponents/WQPaySDK/AliPaySDK/*.{h,m}"
                }
            ]
        },
        {
            "name": "WQPayTool",
            "dependencies": {
                "WQPayToolComponents/WQPaySDK/WeiXinSdk": [],
                "WQPayToolComponents/WQPaySDK/AliPaySDK": []
            },
            "source_files": "WQPayToolComponents/WQPayTool/*.{h,m}"
        }
    ]
}

Pin It on Pinterest

Share This