mirror of
https://github.com/zhigang1992/react-native-wechat.git
synced 2026-05-20 23:11:21 +08:00
1.1 KiB
1.1 KiB
Build Setup for iOS
Add the following libraries to your "Link Binary with Libraries":
SystemConfiguration.frameworkCoreTelephony.frameworklibsqlite3.0libc++libz
Add "URL Schema" as your app id for "URL type" in Targets > info, See the following screenshot for the view on your XCode:
On iOS 9, add wechat and weixin into LSApplicationQueriesSchemes in
Targets > info > Custom iOS Target Properties. Or edit Info.plist
then add:
<key>LSApplicationQueriesSchemes</key>
<array>
<string>weixin</string>
<string>wechat</string>
</array>
Then copy the following in AppDelegate.m:
#import "RCTLinkingManager.h"
- (BOOL)application:(UIApplication *)application openURL:(NSURL *)url
sourceApplication:(NSString *)sourceApplication annotation:(id)annotation
{
return [RCTLinkingManager application:application openURL:url
sourceApplication:sourceApplication annotation:annotation];
}
