少年修仙传客户端基础资源
allez
2021-03-05 18677a1f138a40d934e712afe672d95e02504ea8
9527 ios打包配置
2个文件已修改
147 ■■■■■ 已修改文件
Assets/Editor/XCodeProjectMod.cs 13 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ProjectSettings/ProjectSettings.asset 134 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Assets/Editor/XCodeProjectMod.cs
@@ -28,6 +28,7 @@
        _project.ReadFromString(File.ReadAllText(_projectPath));
        string _targetGUID = _project.TargetGuidByName(PBXProject.GetUnityTargetName());
        string _fwTargetGUID = _project.TargetGuidByName("UnityFramework");
        //var _codeSign = Debug.isDebugBuild ? CODE_SIGN_DEVELOPER : CODE_SIGN_DISTRIBUTION;
        //var _provision = Debug.isDebugBuild ? PROVISIONING_DEVELOPER : PROVISIONING_DISTRIBUTION;
@@ -63,6 +64,11 @@
        _project.AddFileToBuild(_targetGUID, _project.AddFile("/usr/lib/libc++.tbd", "Frameworks/libc++.tbd", PBXSourceTree.Sdk));
        _project.AddFileToBuild(_targetGUID, _project.AddFile("/usr/lib/libiconv.tbd", "Frameworks/libiconv.tbd", PBXSourceTree.Sdk));
        _project.AddFileToBuild(_targetGUID, _project.AddFile("/usr/lib/libresolv.tbd", "Frameworks/libresolv.tbd", PBXSourceTree.Sdk));
        //UnityFramework
        _project.AddBuildProperty(_fwTargetGUID, "OTHER_LDFLAGS", "-ObjC");
        File.WriteAllText(_projectPath, _project.WriteToString());
@@ -118,7 +124,7 @@
        _xclass.WriteBelow("extern \"C\" ScreenOrientation    UnityCurrentOrientation()   { return GetAppController().unityView.contentOrientation; }",newCode);
        //初始化UniversalSDK
        newCode = "\n" +
                "    _universalSDK = [[UniversalSDK alloc] init];\n";
                "    _universalSDK = [[UniversalSDK alloc] init];\n    [_universalSDK QuickSDKInit:application didFinishLaunchingWithOptions:launchOptions];";
        _xclass.WriteBelow("[KeyboardDelegate Initialize];", newCode);
        //quick sdk 生命周期
        _xclass.WriteBelow("supportedInterfaceOrientationsForWindow:(UIWindow*)window\n{", "[[SMPCQuickSDK defaultInstance] application:application supportedInterfaceOrientationsForWindow:window];");
@@ -139,11 +145,6 @@
        _xclass.WriteBelow("DisplayConnection*  _mainDisplay;", "UniversalSDK* _universalSDK;");
        _xclass.WriteBelow("@property (readonly, copy, nonatomic) DisplayConnection*    mainDisplay;",
                           "@property (readonly, copy, nonatomic) UniversalSDK*         universalSDK;");
        //适配iPhoneX 底部白条
        _xclass = new XClass(projectPath + "/Classes/UI/UnityViewControllerBase+iOS.mm");
        _xclass.Replace("return res;", "return UIRectEdgeAll;");
    }
    private static string GetBuildPath()
ProjectSettings/ProjectSettings.asset
@@ -13,7 +13,7 @@
  useOnDemandResources: 0
  accelerometerFrequency: 0
  companyName: TheSecondWorld
  productName: "\u93AE\u9B54\u8A23"
  productName: "\u5200\u5251\u840C\u4FA0"
  defaultCursor: {fileID: 0}
  cursorHotspot: {x: 0, y: 0}
  m_SplashScreenBackgroundColor: {r: 0.13725491, g: 0.12156863, b: 0.1254902, a: 1}
@@ -40,7 +40,7 @@
    width: 1
    height: 1
  m_SplashScreenLogos:
  - logo: {fileID: 21300000, guid: 3b92dd2ea17cdf342bfb6ea448a300e1, type: 3}
  - logo: {fileID: 21300000, guid: 69041ef62d9212244a8c189a5d14a5bb, type: 3}
    duration: 3
  m_VirtualRealitySplashScreen: {fileID: 0}
  m_HolographicTrackingLossScreen: {fileID: 0}
@@ -75,8 +75,8 @@
  muteOtherAudioSources: 0
  Prepare IOS For Recording: 0
  Force IOS Speakers When Recording: 0
  deferSystemGesturesMode: 0
  hideHomeButton: 0
  deferSystemGesturesMode: 15
  hideHomeButton: 1
  submitAnalytics: 1
  usePlayerLog: 1
  bakeCollisionMeshes: 0
@@ -172,8 +172,9 @@
  applicationIdentifier:
    Android: com.sanxiagame.zmjgp
    Standalone: com.secondworld.snxxz
    iPhone: com.secondworld.snxxz
  buildNumber: {}
    iPhone: com.tq.djmxfs.quick
  buildNumber:
    iPhone: 32
  AndroidBundleVersionCode: 1100001
  AndroidMinSdkVersion: 21
  AndroidTargetSdkVersion: 0
@@ -189,7 +190,7 @@
  keepLoadedShadersAlive: 0
  StripUnusedMeshComponents: 0
  VertexChannelCompressionMask: 214
  iPhoneSdkVersion: 988
  iPhoneSdkVersion: 989
  iOSTargetOSVersionString: 10.0
  tvOSSdkVersion: 0
  tvOSRequireExtendedGameController: 0
@@ -487,6 +488,122 @@
      m_Height: 36
      m_Kind: 0
      m_SubKind: 
  - m_BuildTarget: iPhone
    m_Icons:
    - m_Textures:
      - {fileID: 2800000, guid: e966ffea4784b3043beacf0747940da6, type: 3}
      m_Width: 180
      m_Height: 180
      m_Kind: 0
      m_SubKind: iPhone
    - m_Textures:
      - {fileID: 2800000, guid: e966ffea4784b3043beacf0747940da6, type: 3}
      m_Width: 120
      m_Height: 120
      m_Kind: 0
      m_SubKind: iPhone
    - m_Textures:
      - {fileID: 2800000, guid: e966ffea4784b3043beacf0747940da6, type: 3}
      m_Width: 167
      m_Height: 167
      m_Kind: 0
      m_SubKind: iPad
    - m_Textures:
      - {fileID: 2800000, guid: e966ffea4784b3043beacf0747940da6, type: 3}
      m_Width: 152
      m_Height: 152
      m_Kind: 0
      m_SubKind: iPad
    - m_Textures:
      - {fileID: 2800000, guid: e966ffea4784b3043beacf0747940da6, type: 3}
      m_Width: 76
      m_Height: 76
      m_Kind: 0
      m_SubKind: iPad
    - m_Textures:
      - {fileID: 2800000, guid: e966ffea4784b3043beacf0747940da6, type: 3}
      m_Width: 120
      m_Height: 120
      m_Kind: 3
      m_SubKind: iPhone
    - m_Textures:
      - {fileID: 2800000, guid: e966ffea4784b3043beacf0747940da6, type: 3}
      m_Width: 80
      m_Height: 80
      m_Kind: 3
      m_SubKind: iPhone
    - m_Textures:
      - {fileID: 2800000, guid: e966ffea4784b3043beacf0747940da6, type: 3}
      m_Width: 80
      m_Height: 80
      m_Kind: 3
      m_SubKind: iPad
    - m_Textures:
      - {fileID: 2800000, guid: e966ffea4784b3043beacf0747940da6, type: 3}
      m_Width: 40
      m_Height: 40
      m_Kind: 3
      m_SubKind: iPad
    - m_Textures:
      - {fileID: 2800000, guid: e966ffea4784b3043beacf0747940da6, type: 3}
      m_Width: 87
      m_Height: 87
      m_Kind: 1
      m_SubKind: iPhone
    - m_Textures:
      - {fileID: 2800000, guid: e966ffea4784b3043beacf0747940da6, type: 3}
      m_Width: 58
      m_Height: 58
      m_Kind: 1
      m_SubKind: iPhone
    - m_Textures:
      - {fileID: 2800000, guid: e966ffea4784b3043beacf0747940da6, type: 3}
      m_Width: 29
      m_Height: 29
      m_Kind: 1
      m_SubKind: iPhone
    - m_Textures:
      - {fileID: 2800000, guid: e966ffea4784b3043beacf0747940da6, type: 3}
      m_Width: 58
      m_Height: 58
      m_Kind: 1
      m_SubKind: iPad
    - m_Textures:
      - {fileID: 2800000, guid: e966ffea4784b3043beacf0747940da6, type: 3}
      m_Width: 29
      m_Height: 29
      m_Kind: 1
      m_SubKind: iPad
    - m_Textures:
      - {fileID: 2800000, guid: e966ffea4784b3043beacf0747940da6, type: 3}
      m_Width: 60
      m_Height: 60
      m_Kind: 2
      m_SubKind: iPhone
    - m_Textures:
      - {fileID: 2800000, guid: e966ffea4784b3043beacf0747940da6, type: 3}
      m_Width: 40
      m_Height: 40
      m_Kind: 2
      m_SubKind: iPhone
    - m_Textures:
      - {fileID: 2800000, guid: e966ffea4784b3043beacf0747940da6, type: 3}
      m_Width: 40
      m_Height: 40
      m_Kind: 2
      m_SubKind: iPad
    - m_Textures:
      - {fileID: 2800000, guid: e966ffea4784b3043beacf0747940da6, type: 3}
      m_Width: 20
      m_Height: 20
      m_Kind: 2
      m_SubKind: iPad
    - m_Textures:
      - {fileID: 2800000, guid: e966ffea4784b3043beacf0747940da6, type: 3}
      m_Width: 1024
      m_Height: 1024
      m_Kind: 4
      m_SubKind: App Store
  m_BuildTargetBatching: []
  m_BuildTargetGraphicsJobs:
  - m_BuildTarget: MacStandaloneSupport
@@ -788,6 +905,7 @@
    iPhone: 1
  scriptingBackend:
    Android: 1
    iPhone: 1
  il2cppCompilerConfiguration: {}
  managedStrippingLevel: {}
  incrementalIl2cppBuild: {}
@@ -797,7 +915,7 @@
  gcIncremental: 0
  gcWBarrierValidation: 0
  apiCompatibilityLevelPerPlatform:
    Android: 6
    Android: 3
    iPhone: 3
  m_RenderingPath: 1
  m_MobileRenderingPath: 1