leon 1faa2f0251 优化调试数据 | il y a 2 ans | |
---|---|---|
IMAGES | il y a 2 ans | |
IOSToUnityBundle | il y a 3 ans | |
IOSToUnitySDK | il y a 3 ans | |
IOSToUnitySDK.xcodeproj | il y a 2 ans | |
IOSToUnitySDK.xcworkspace | il y a 2 ans | |
SDK | il y a 2 ans | |
.DS_Store | il y a 2 ans | |
README.md | il y a 3 ans |
导出的包在工程目录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