Latest 1.7.6
Homepage https://github.com/iException/BXWeChatSDK
License Custom
Platforms ios 7.0, requires ARC
Frameworks CFNetwork, CoreTelephony, Security, SystemConfiguration
Authors

Build Status
Version
License
Platform

The official WeChat SDK for iOS apps to access WeChat platform. This is a mirror repository maintained by iOS developers from Baixing.

Usage

To run the example project:

  • Clone the repo, and run pod install from the Example directory first.
  • Open BXWeChatSDK.xcworkspace.
  • Replace the example target’s URL schemes YOUR_WECAHT_APP_ID with your WeChat app ID.
  • Afterwards, set the same app ID in BXAppDelegate.m.

Now, let’s rock 🚀.

Requirements

  • iOS 7 and later
  • Xcode 7.2 and later

Installation

BXWeChatSDK is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod "BXWeChatSDK"

Then follow the instructions
provided by Tencent.

iOS 9+ Security Issues

Add the following lines to your project’s info.plist file so that your app would be allowed to open WeChat.app.

<key>LSApplicationQueriesSchemes</key>
<array>
  <string>wechat</string>
  <string>weixin</string>
</array>

Also, add WeChat domains to your app’s whitelist.

<key>NSAppTransportSecurity</key>
<dict>
    <key>NSExceptionDomains</key>
    <dict>
        <key>qq.com</key>
        <dict>
            <key>NSIncludesSubdomains</key>
            <true/>
            <key>NSThirdPartyExceptionAllowsInsecureHTTPLoads</key>
            <true/>
            <key>NSThirdPartyExceptionRequiresForwardSecrecy</key>
            <false/>
        </dict>
    </dict>
</dict>

Or if security is not an issue to your app, use the following lines.

<key>NSAppTransportSecurity</key>
<dict>
  <key>NSAllowsArbitraryLoads</key>
  <true/>
</dict>

Latest podspec

{
    "name": "BXWeChatSDK",
    "version": "1.7.6",
    "summary": "WeChat SDK for iOS to access WeChat platform.",
    "description": "It is a shame that WeChat does not have an official pod for their iOS SDK. Therefore, we create this pod to track the official WeChat iOS SDK.",
    "homepage": "https://github.com/iException/BXWeChatSDK",
    "license": {
        "type": "Custom",
        "file": "LICENSE"
    },
    "authors": {
        "Yiming Tang": "[email protected]"
    },
    "source": {
        "git": "https://github.com/iException/BXWeChatSDK.git",
        "tag": "v1.7.6"
    },
    "platforms": {
        "ios": "7.0"
    },
    "requires_arc": true,
    "source_files": "WeChatSDK/*.{h,m}",
    "vendored_libraries": "WeChatSDK/libWeChatSDK.a",
    "frameworks": [
        "CFNetwork",
        "CoreTelephony",
        "Security",
        "SystemConfiguration"
    ],
    "libraries": [
        "c++",
        "sqlite3",
        "z"
    ],
    "pod_target_xcconfig": {
        "OTHER_LDFLAGS": "-ObjC -all_load"
    }
}

Pin It on Pinterest

Share This