Integrated SHARESDK (3.X) feature-ios platform in Unity

Source: Internet
Author: User

On an Android platform under the SHARESDK share, this one we describe the iOS platform under the configuration.

first we modify SHARESDKUNITY3DBRIDGE.M file (/assets/plugins/ios/sharesdkunity3dbridge.m ) for a platform that requires the use of SSO (QQ space, Renren) or some client-side sharing (including:, Google +, QQ). Please verify that the corresponding macro is defined, such as, to open __sharesdk_wechat__. Other platforms, such as:

After the modification is completed, the project is translated into an iOS file.

Open the project with the Mac computer Xcode, get Sharesdk-ios v3.x::

Http://www.mob.com/#/downloadDetail/ShareSDK/ios We can download the SDK or download its demo, and find the share-sdk inside,

The first step: Unzip the downloaded SDK and import it into your project, see:

This step is to drag sharesdk into your project to become a subdirectory, Note: Be sure to select" Create "in the steps above Groups for any added folders radio button group. If you select "Create folder references for any added folders", a blue

The folder reference will be added to the project and will not be able to find its resources.

Step two: Add dependent libraries add steps see:

This step is to click on your project, click on the right side of the buildphases, and then select the following link Binary with libraries below the + sign, and then add the library;

The library suffix on its official document is. Dylib, while the 3.X is. TBD.

If we need to do Sina's share, then also need in Add the "-OBJC" option to other Linker flags in project build settings .

Step three: Open the search Paths under Build settings, then delete all of the "" in the header search Paths and the library search Paths, otherwise it will be reported in some libraries in your project. Well, then you can pack it up on your phone for a real-time test,

Of course, if you need QQ in your integrated share, you'll have to add a few more steps.

Is the first to go and QQ official online to register the mobile development platform URL schemes, which needs to fill in a lot of information, and then get a such URL. Then fill in the above on it, but also to the impact of http://wiki.mob.com/ios9-on SHARESDK (suitable for ios-9 must read)/This site follow the steps to set up.

Integrated SHARESDK (3.X) feature-ios platform in Unity

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.