邓万里 bbaa0892ba 更新 'README.md' | 3 gadi atpakaļ | |
---|---|---|
IMAGES | 3 gadi atpakaļ | |
IOSToUnityBundle | 3 gadi atpakaļ | |
IOSToUnitySDK | 3 gadi atpakaļ | |
IOSToUnitySDK.xcodeproj | 3 gadi atpakaļ | |
IOSToUnitySDK.xcworkspace | 3 gadi atpakaļ | |
SDK | 3 gadi atpakaļ | |
.DS_Store | 3 gadi atpakaļ | |
README.md | 3 gadi atpakaļ |
导出的包在工程目录Products下,右键show in finder可查看
(配置包名:com.Oujia.***,添加App Group、Background Model)
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
<true/>
</dict>
<key>NSBluetoothAlwaysUsageDescription</key>
<string>App 需要您的同意,才能访问蓝牙连接智能鞋</string>
<key>NSBluetoothPeripheralUsageDescription</key>
<string>App 需要您的同意,才能访问蓝牙连接智能鞋</string>
//跑酷: identifler : RunGame
URL Schemes: com.RunGame.oujia
//跳舞: identifler : DanceGame
URL Schemes: com.DanceGame.oujia
//1.在程序入口UnityAppController.mm文件中导入SDK头文件
#import <IOSToUnitySDK/IOSPlatformSDK.h>
//2.在程序入口中添加启动SDK 代码如下
- (BOOL)application:(UIApplication*)application didFinishLaunchingWithOptions:(NSDictionary*)launchOptions
{
if(launchOptions[UIApplicationLaunchOptionsURLKey]){
NSURL *url = [launchOptions objectForKey:UIApplicationLaunchOptionsURLKey];
NSLog(@"打开方式 通过URL打开的 ===== >> %@",url);
IOSPlatformSDK * sdk = [IOSPlatformSDK sharedInstance];
[sdk startWithUrl:url];
}
}
//3.从趣动App跳转的回调方法中添加如下代码
- (BOOL)application:(UIApplication*)app openURL:(NSURL*)url options:(NSDictionary<NSString*, id>*)options
{
IOSPlatformSDK * sdk = [IOSPlatformSDK sharedInstance];
[sdk startWithUrl:url];
}
1.chmod +x ~/MapFileParser.sh 文件授权
2.添加编译文件PluginInterface.mm
3.修改Enable Bitcode为NO
4.TARGETS下的UnityFramework配置bundle平台为ios+mac