Commit ad76c112 authored by Hanruisong's avatar Hanruisong
Browse files

feat: 更新到4.11.1

1.修复了下载方法传参异常导致的闪退问题。
2.解密模块优化,提高稳定性。
parent 2dd92f70
......@@ -407,23 +407,23 @@
DD54280B250B55AB0097614C /* icon_ad_mute@3x.png in Resources */ = {isa = PBXBuildFile; fileRef = DD542807250B55AB0097614C /* icon_ad_mute@3x.png */; };
DD54280C250B55AB0097614C /* icon_ad_mute@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = DD542808250B55AB0097614C /* icon_ad_mute@2x.png */; };
DD54280D250B55AB0097614C /* icon_ad_mute_select@3x.png in Resources */ = {isa = PBXBuildFile; fileRef = DD542809250B55AB0097614C /* icon_ad_mute_select@3x.png */; };
DD9292C02566590400A917C5 /* DWResource.bundle in Resources */ = {isa = PBXBuildFile; fileRef = DD9292BE2566590300A917C5 /* DWResource.bundle */; };
DD9292C12566590400A917C5 /* vrlibraw.bundle in Resources */ = {isa = PBXBuildFile; fileRef = DD9292BF2566590400A917C5 /* vrlibraw.bundle */; };
DD9292C22566591200A917C5 /* CCVodSDK.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = DD9292BA256658F800A917C5 /* CCVodSDK.framework */; };
DD9292C32566591200A917C5 /* CCVodSDK.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = DD9292BA256658F800A917C5 /* CCVodSDK.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
DD9292C52566591600A917C5 /* HDBaseUtils.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = DD9292BB256658F800A917C5 /* HDBaseUtils.framework */; };
DD9292C62566591600A917C5 /* HDBaseUtils.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = DD9292BB256658F800A917C5 /* HDBaseUtils.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
DD81DFDA2587129C00F83CCC /* DWResource.bundle in Resources */ = {isa = PBXBuildFile; fileRef = DD81DFD82587129C00F83CCC /* DWResource.bundle */; };
DD81DFDB2587129C00F83CCC /* vrlibraw.bundle in Resources */ = {isa = PBXBuildFile; fileRef = DD81DFD92587129C00F83CCC /* vrlibraw.bundle */; };
DD81DFDC2587141000F83CCC /* HDBaseUtils.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = DD81DFD42587126600F83CCC /* HDBaseUtils.framework */; };
DD81DFDD2587141000F83CCC /* HDBaseUtils.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = DD81DFD42587126600F83CCC /* HDBaseUtils.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
DD81DFDE2587141500F83CCC /* CCVodSDK.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = DD81DFD32587126600F83CCC /* CCVodSDK.framework */; };
DD81DFDF2587141500F83CCC /* CCVodSDK.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = DD81DFD32587126600F83CCC /* CCVodSDK.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
/* End PBXBuildFile section */
/* Begin PBXCopyFilesBuildPhase section */
DD9292C42566591200A917C5 /* Embed Frameworks */ = {
DD0F24D3255E22B000DA2705 /* Embed Frameworks */ = {
isa = PBXCopyFilesBuildPhase;
buildActionMask = 2147483647;
dstPath = "";
dstSubfolderSpec = 10;
files = (
DD9292C32566591200A917C5 /* CCVodSDK.framework in Embed Frameworks */,
DD9292C62566591600A917C5 /* HDBaseUtils.framework in Embed Frameworks */,
DD81DFDD2587141000F83CCC /* HDBaseUtils.framework in Embed Frameworks */,
DD81DFDF2587141500F83CCC /* CCVodSDK.framework in Embed Frameworks */,
);
name = "Embed Frameworks";
runOnlyForDeploymentPostprocessing = 0;
......@@ -993,10 +993,10 @@
DD542807250B55AB0097614C /* icon_ad_mute@3x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "icon_ad_mute@3x.png"; sourceTree = "<group>"; };
DD542808250B55AB0097614C /* icon_ad_mute@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "icon_ad_mute@2x.png"; sourceTree = "<group>"; };
DD542809250B55AB0097614C /* icon_ad_mute_select@3x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "icon_ad_mute_select@3x.png"; sourceTree = "<group>"; };
DD9292BA256658F800A917C5 /* CCVodSDK.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = CCVodSDK.framework; sourceTree = "<group>"; };
DD9292BB256658F800A917C5 /* HDBaseUtils.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = HDBaseUtils.framework; sourceTree = "<group>"; };
DD9292BE2566590300A917C5 /* DWResource.bundle */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.plug-in"; name = DWResource.bundle; path = CCVodSDK.framework/DWResource.bundle; sourceTree = "<group>"; };
DD9292BF2566590400A917C5 /* vrlibraw.bundle */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.plug-in"; name = vrlibraw.bundle; path = CCVodSDK.framework/vrlibraw.bundle; sourceTree = "<group>"; };
DD81DFD32587126600F83CCC /* CCVodSDK.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = CCVodSDK.framework; sourceTree = "<group>"; };
DD81DFD42587126600F83CCC /* HDBaseUtils.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = HDBaseUtils.framework; sourceTree = "<group>"; };
DD81DFD82587129C00F83CCC /* DWResource.bundle */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.plug-in"; name = DWResource.bundle; path = CCVodSDK.framework/DWResource.bundle; sourceTree = "<group>"; };
DD81DFD92587129C00F83CCC /* vrlibraw.bundle */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.plug-in"; name = vrlibraw.bundle; path = CCVodSDK.framework/vrlibraw.bundle; sourceTree = "<group>"; };
DDF1A579255E8A52007EE8B9 /* MobileCoreServices.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = MobileCoreServices.framework; path = System/Library/Frameworks/MobileCoreServices.framework; sourceTree = SDKROOT; };
/* End PBXFileReference section */
......@@ -1005,14 +1005,14 @@
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
DD9292C52566591600A917C5 /* HDBaseUtils.framework in Frameworks */,
DD81DFDC2587141000F83CCC /* HDBaseUtils.framework in Frameworks */,
048AD12822CDCE83008C8911 /* libxml2.tbd in Frameworks */,
043441FF225EF2BB003F7EC1 /* CoreServices.framework in Frameworks */,
352CBDD91FD6980C00D24715 /* AudioToolbox.framework in Frameworks */,
352CBDD71FD697E800D24715 /* MediaPlayer.framework in Frameworks */,
B88562A41DED1AC8008D1763 /* SystemConfiguration.framework in Frameworks */,
B57CC7C018E2E581001A1696 /* AVFoundation.framework in Frameworks */,
DD9292C22566591200A917C5 /* CCVodSDK.framework in Frameworks */,
DD81DFDE2587141500F83CCC /* CCVodSDK.framework in Frameworks */,
B57CC7BE18E2E575001A1696 /* CoreLocation.framework in Frameworks */,
B57CC7BC18E2E569001A1696 /* CoreMedia.framework in Frameworks */,
B547EC4C18E033FB00BC980C /* CoreGraphics.framework in Frameworks */,
......@@ -1847,7 +1847,7 @@
isa = PBXGroup;
children = (
044C66A122D46DAE0032396F /* Demo.entitlements */,
DD9292B9256658F800A917C5 /* SDK */,
DD81DFD22587126600F83CCC /* SDK */,
0434420D225F0EDD003F7EC1 /* Classes */,
B547EC5818E033FB00BC980C /* DWAppDelegate.h */,
B547EC5918E033FB00BC980C /* DWAppDelegate.m */,
......@@ -1874,13 +1874,13 @@
name = "Supporting Files";
sourceTree = "<group>";
};
DD9292B9256658F800A917C5 /* SDK */ = {
DD81DFD22587126600F83CCC /* SDK */ = {
isa = PBXGroup;
children = (
DD9292BE2566590300A917C5 /* DWResource.bundle */,
DD9292BF2566590400A917C5 /* vrlibraw.bundle */,
DD9292BA256658F800A917C5 /* CCVodSDK.framework */,
DD9292BB256658F800A917C5 /* HDBaseUtils.framework */,
DD81DFD82587129C00F83CCC /* DWResource.bundle */,
DD81DFD92587129C00F83CCC /* vrlibraw.bundle */,
DD81DFD32587126600F83CCC /* CCVodSDK.framework */,
DD81DFD42587126600F83CCC /* HDBaseUtils.framework */,
);
path = SDK;
sourceTree = "<group>";
......@@ -1895,8 +1895,8 @@
B547EC4218E033FB00BC980C /* Sources */,
B547EC4318E033FB00BC980C /* Frameworks */,
B547EC4418E033FB00BC980C /* Resources */,
DD9292C42566591200A917C5 /* Embed Frameworks */,
DD9292C725665A0500A917C5 /* ShellScript */,
DD0F24D3255E22B000DA2705 /* Embed Frameworks */,
DD81DFD72587128B00F83CCC /* ShellScript */,
);
buildRules = (
);
......@@ -2056,7 +2056,7 @@
04AB4A3722B1F22A00BB9BF9 /* icon_exercises_error@2x.png in Resources */,
04D60ED822719B9C0009C572 /* icon_play_vr_inselect_select@2x.png in Resources */,
043D4E6B22D5C91D00FCDCBE /* icon_sound_add@2x.png in Resources */,
DD9292C02566590400A917C5 /* DWResource.bundle in Resources */,
DD81DFDA2587129C00F83CCC /* DWResource.bundle in Resources */,
04346AC8249720C6005A3396 /* icon_screenshot@2x.png in Resources */,
04B7A661226B0E5E00951983 /* icon_question_multi_select@3x.png in Resources */,
04AB4A3F22B1F22A00BB9BF9 /* icon_exercises_answer_d_select@2x.png in Resources */,
......@@ -2154,7 +2154,7 @@
04346AC0249720C6005A3396 /* brightness.png in Resources */,
04B7A65F226B0E5E00951983 /* icon_question_single_select@2x.png in Resources */,
0491DD1F24B5604300DF40C7 /* icon_barrage_color_select@3x.png in Resources */,
DD9292C12566590400A917C5 /* vrlibraw.bundle in Resources */,
DD81DFDB2587129C00F83CCC /* vrlibraw.bundle in Resources */,
04BAA93D22D4787B000495B4 /* icon_screen_list@2x.png in Resources */,
04AB4A2622B1F22A00BB9BF9 /* icon_exercises_answer_g_normal@2x.png in Resources */,
04B7A65C226B0E5E00951983 /* icon_question_multi_select@2x.png in Resources */,
......@@ -2204,7 +2204,7 @@
/* End PBXResourcesBuildPhase section */
/* Begin PBXShellScriptBuildPhase section */
DD9292C725665A0500A917C5 /* ShellScript */ = {
DD81DFD72587128B00F83CCC /* ShellScript */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
......
......@@ -27,7 +27,7 @@
self.DWAccount_userId = @"391E6E3340A00767";
self.DWAccount_apikey = @"T8WdOUuvFEiOsou1xjDr4U73v12M7iNa";
self.isOpenAd = [[[NSUserDefaults standardUserDefaults] objectForKey:@"isOpenAD"] boolValue];
}
return self;
......
//版本号
#define SDK_VERSION @"4.11.0"
#define SDK_VERSION @"4.11.1"
#import <CCVodSDK/DWGIFManager.h>
#import <CCVodSDK/DWAdInfo.h>
......
......@@ -17,7 +17,7 @@ FOUNDATION_EXPORT const unsigned char HDBaseUtilsVersionString[];
// In this header, you should import all the public headers of your framework using statements like #import <HDBaseUtils/PublicHeader.h>
//base库版本号
#define HDBASESDK_VERSION @"1.0.7"
#define HDBASESDK_VERSION @"1.0.8"
#import <HDBaseUtils/HDUniversalUtils.h>
......
......@@ -1911,6 +1911,6 @@ footer.ty-footer {
</head>
<body class='typora-export' >
<div id='write' class = ''><h1><a name="常见问题" class="md-header-anchor"></a><span>常见问题</span></h1><h2><a name="1dwplayinfo数据获取失败的问题" class="md-header-anchor"></a><span>1.DWPlayInfo数据获取失败的问题</span></h2><p><span>当遇到DWPlayInfo回调失败时,首先要排除userId、APIKEY是否有效,其次判断网络是否正常、是否已经连接、videoId是否是userId和APIKEY名下的视频。除此之外还可以通过HTTP通信日志排查问题。</span></p><h2><a name="2关于加密音视频的播放问题" class="md-header-anchor"></a><span>2.关于加密音视频的播放问题</span></h2><p><span>新版本中,对于原旧版本加密服务DWDrmServer的调用封装到了SDK内部,用户无需再对DWDrmServer服务进行操作,SDK会自动识别加密音视频进行播放。</span></p><h2><a name="3对于通过import-dwsdkh无法引入路径下的文件的问题" class="md-header-anchor"></a><span>3.对于通过#import &quot;DWSDK.h&quot;无法引入路径下的文件的问题</span></h2><p><span>找到TARGETS -&gt; Build Setting -&gt; Search Paths。添加</span><code>Header Search Path</code><span>,路径到SDK的文件夹下。若还无法找到,继续添加</span><code>User Header Search Path</code><span>即可。</span></p><h2><a name="4关于控制台频繁出现-nwconnectioncopyconnectedpath日志的问题" class="md-header-anchor"></a><span>4.关于控制台频繁出现&quot;[] nw_connection_copy_connected_path&quot;日志的问题</span></h2><p><span>找到Edit Scheme -&gt; Run -&gt; Arguments -&gt; Enviroment Variables,添加属性</span><code>OS_ACTIVITY_MODE</code><span>,设置为0即可。</span></p><h2><a name="5程序进入前台时下载任务回调可能不执行的问题" class="md-header-anchor"></a><span>5.程序进入前台时,下载任务回调可能不执行的问题</span></h2><p><span>我们发现,在iOS12的系统下,app进入前台时,有极小的概率会发生下载的回调不执行的问题。若想临时解决这个问题,只需要在appDelegate的applicationDidBecomeActive:方法中,将正在下载的任务暂停,然后延迟1秒以后在重新开始下载即可。最终还要等待苹果官方解决此问题。</span></p><h2><a name="6当集成423-sdk时若出现" class="md-header-anchor"></a><span>6.当集成4.2.3 SDK时,若出现 </span></h2><p><span>Undefined symbols for architecture x84_64:</span></p><p><span> &quot;__isPlatformVersionAtLeast&quot;,referenced from;</span></p><p><span> ...</span></p><p><span> ...</span></p><p><span> ...</span></p><p><span>ld:symbol(s) not found for architecture x84_64</span></p><p><span>clane: error: linker command failed with exit code 1 (use -v to see invocation)</span></p><p><span>编译错误时,请升级4.2.4及以上版本SDK或升级最新的Xcode重新编译即可。</span></p><h2><a name="7升级480及以后版本编译报错的问题" class="md-header-anchor"></a><span>7.升级4.8.0及以后版本编译报错的问题</span></h2><p><span>&#39;DWxxx.h&#39; file not found错误分为以下两种情况:</span></p><p><span>1.DWSDK.h文件,原DWSDK.h现更名为CCVodSDK.h,使用#import &lt;CCVodSDK/CCVodSDK.h&gt;方式引入头文件。</span></p><p><span>2.其他SDK文件报错,由于SDK库类型的变化,引入方式修改为#import &lt;CCVodSDK/DWxxx.h&gt;;或删除全部引入异常的头文件,在项目pch文件中,引入#import &lt;CCVodSDK/CCVodSDK.h&gt;即可。</span></p><h2><a name="8集成点播sdk打包上线报错的问题" class="md-header-anchor"></a><span>8.集成点播SDK打包上线报错的问题</span></h2><p><span>关于打包上线过程中,不支持 x86_64 和 i386 等情况。错误描述如下:</span></p><pre spellcheck="false" class="md-fences md-end-block ty-contain-cm modeLoaded" lang=""><div class="CodeMirror cm-s-inner CodeMirror-wrap" lang=""><div style="overflow: hidden; position: relative; width: 3px; height: 0px; top: 0px; left: 4px;"><textarea autocorrect="off" autocapitalize="off" spellcheck="false" tabindex="0" style="position: absolute; bottom: -1em; padding: 0px; width: 1000px; height: 1em; outline: none;"></textarea></div><div class="CodeMirror-scrollbar-filler" cm-not-content="true"></div><div class="CodeMirror-gutter-filler" cm-not-content="true"></div><div class="CodeMirror-scroll" tabindex="-1"><div class="CodeMirror-sizer" style="margin-left: 0px; margin-bottom: 0px; border-right-width: 0px; padding-right: 0px; padding-bottom: 0px;"><div style="position: relative; top: 0px;"><div class="CodeMirror-lines" role="presentation"><div role="presentation" style="position: relative; outline: none;"><div class="CodeMirror-measure"><span><span></span>x</span></div><div class="CodeMirror-measure"></div><div style="position: relative; z-index: 1;"></div><div class="CodeMirror-code" role="presentation" style=""><div class="CodeMirror-activeline" style="position: relative;"><div class="CodeMirror-activeline-background CodeMirror-linebackground"></div><div class="CodeMirror-gutter-background CodeMirror-activeline-gutter" style="left: 0px; width: 0px;"></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">The following issues occurred while distributing your application.</span></pre></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span cm-text=""></span></span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">App Store Connect Operation Error</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"> ERROR ITMS-90097:"Unsupported Architectures. The executable for xxx.framework contains unsupported architectures '[x86_64]."</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"> </span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"> ...</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"> </span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"> App Store Connect Operation Error</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"> ERROR ITMS-90097:"Unsupported Architectures. The executable for xxx.framework contains unsupported architectures '[x86_64,i386]."</span></pre></div></div></div></div></div><div style="position: absolute; height: 0px; width: 1px; border-bottom-width: 0px; border-bottom-style: solid; border-bottom-color: transparent; top: 286px;"></div><div class="CodeMirror-gutters" style="display: none; height: 286px;"></div></div></div></pre><p><span>解决方案:Target --&gt; Build Phases --&gt; 点击&quot;+&quot;按钮,选择&quot;New Run Script Phase&quot;,在 Run Script 内添加以下脚本方法,重新编译打包即可。</span></p><pre spellcheck="false" class="md-fences md-end-block ty-contain-cm modeLoaded" lang="" style="break-inside: unset;"><div class="CodeMirror cm-s-inner CodeMirror-wrap" lang=""><div style="overflow: hidden; position: relative; width: 3px; height: 0px; top: 0px; left: 4px;"><textarea autocorrect="off" autocapitalize="off" spellcheck="false" tabindex="0" style="position: absolute; bottom: -1em; padding: 0px; width: 1000px; height: 1em; outline: none;"></textarea></div><div class="CodeMirror-scrollbar-filler" cm-not-content="true"></div><div class="CodeMirror-gutter-filler" cm-not-content="true"></div><div class="CodeMirror-scroll" tabindex="-1"><div class="CodeMirror-sizer" style="margin-left: 0px; margin-bottom: 0px; border-right-width: 0px; padding-right: 0px; padding-bottom: 0px;"><div style="position: relative; top: 0px;"><div class="CodeMirror-lines" role="presentation"><div role="presentation" style="position: relative; outline: none;"><div class="CodeMirror-measure"><pre><span>xxxxxxxxxx</span></pre></div><div class="CodeMirror-measure"></div><div style="position: relative; z-index: 1;"></div><div class="CodeMirror-code" role="presentation" style=""><div class="CodeMirror-activeline" style="position: relative;"><div class="CodeMirror-activeline-background CodeMirror-linebackground"></div><div class="CodeMirror-gutter-background CodeMirror-activeline-gutter" style="left: 0px; width: 0px;"></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"># This script loops through the frameworks embedded in the application and &nbsp;</span></pre></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"># removes unused architectures. &nbsp;</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">APP_PATH="${TARGET_BUILD_DIR}/${WRAPPER_NAME}"</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-invalidchar" title="\u200b" aria-label="\u200b" cm-text="​"></span></span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">find "$APP_PATH" -name '*.framework' -type d | while read -r FRAMEWORK &nbsp;</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">do &nbsp;</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">FRAMEWORK_EXECUTABLE_NAME=$(defaults read "$FRAMEWORK/Info.plist" CFBundleExecutable) &nbsp;</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">FRAMEWORK_EXECUTABLE_PATH="$FRAMEWORK/$FRAMEWORK_EXECUTABLE_NAME" &nbsp;</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">echo "Executable is $FRAMEWORK_EXECUTABLE_PATH" &nbsp;</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp;</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">EXTRACTED_ARCHS=() &nbsp;</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp;</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">for ARCH in $ARCHS &nbsp;</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">do &nbsp;</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">echo "Extracting $ARCH from $FRAMEWORK_EXECUTABLE_NAME" &nbsp;</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">lipo -extract "$ARCH" "$FRAMEWORK_EXECUTABLE_PATH" -o "$FRAMEWORK_EXECUTABLE_PATH-$ARCH" &nbsp;</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">EXTRACTED_ARCHS+=("$FRAMEWORK_EXECUTABLE_PATH-$ARCH") &nbsp;</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">done &nbsp;</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-invalidchar" title="\u200b" aria-label="\u200b" cm-text="​"></span></span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">echo "Merging extracted architectures: ${ARCHS}" &nbsp;</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">lipo -o "$FRAMEWORK_EXECUTABLE_PATH-merged" -create "${EXTRACTED_ARCHS[@]}" &nbsp;</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">rm "${EXTRACTED_ARCHS[@]}" &nbsp;</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp;</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">echo "Replacing original executable with thinned version" &nbsp;</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">rm "$FRAMEWORK_EXECUTABLE_PATH" &nbsp;</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">mv "$FRAMEWORK_EXECUTABLE_PATH-merged" "$FRAMEWORK_EXECUTABLE_PATH" &nbsp;</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp;</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">done</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span cm-text=""></span></span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span cm-text=""></span></span></pre></div></div></div></div></div><div style="position: absolute; height: 0px; width: 1px; border-bottom-width: 0px; border-bottom-style: solid; border-bottom-color: transparent; top: 780px;"></div><div class="CodeMirror-gutters" style="display: none; height: 780px;"></div></div></div></pre><h2><a name="9关于使用cocoapods更新490及以上sdk编译报错的问题" class="md-header-anchor"></a><span>9.关于使用Cocoapods更新4.9.0及以上SDK编译报错的问题</span></h2><p><span>由于Xcode12的兼容性问题,在使用Cocoapods集成4.9.0及以上版本的SDK时,会导致如下编译错误</span></p><pre spellcheck="false" class="md-fences md-end-block ty-contain-cm modeLoaded" lang=""><div class="CodeMirror cm-s-inner CodeMirror-wrap" lang=""><div style="overflow: hidden; position: relative; width: 3px; height: 0px; top: 0px; left: 4px;"><textarea autocorrect="off" autocapitalize="off" spellcheck="false" tabindex="0" style="position: absolute; bottom: -1em; padding: 0px; width: 1000px; height: 1em; outline: none;"></textarea></div><div class="CodeMirror-scrollbar-filler" cm-not-content="true"></div><div class="CodeMirror-gutter-filler" cm-not-content="true"></div><div class="CodeMirror-scroll" tabindex="-1"><div class="CodeMirror-sizer" style="margin-left: 0px; margin-bottom: 0px; border-right-width: 0px; padding-right: 0px; padding-bottom: 0px;"><div style="position: relative; top: 0px;"><div class="CodeMirror-lines" role="presentation"><div role="presentation" style="position: relative; outline: none;"><div class="CodeMirror-measure"><pre><span>xxxxxxxxxx</span></pre></div><div class="CodeMirror-measure"></div><div style="position: relative; z-index: 1;"></div><div class="CodeMirror-code" role="presentation" style=""><div class="CodeMirror-activeline" style="position: relative;"><div class="CodeMirror-activeline-background CodeMirror-linebackground"></div><div class="CodeMirror-gutter-background CodeMirror-activeline-gutter" style="left: 0px; width: 0px;"></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">dyld: Library not loaded: @rpath/HDBaseUtils.framework/HDBaseUtils</span></pre></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"> Referenced from: /private/var/containers/Bundle/Application/83A9ECB5-758F-4B99-90AA-56D4B0D835DC/xxx.app/xxx</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"> Reason: image not found</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">dyld: launch, loading dependent libraries</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">DYLD_LIBRARY_PATH=/usr/lib/system/introspection</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">DYLD_INSERT_LIBRARIES=/Developer/usr/lib/libBacktraceRecording.dylib:/Developer/usr/lib/libMainThreadChecker.dylib:/Developer/Library/PrivateFrameworks/GPUTools.framework/libglInterpose.dylib:/usr/lib/libMTLCapture.dylib:/Developer/Library/PrivateFrameworks/DTDDISupport.framework/libViewDebuggerSupport.dylib</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">Message from debugger: Terminated due to signal 6</span></pre></div></div></div></div></div><div style="position: absolute; height: 0px; width: 1px; border-bottom-width: 0px; border-bottom-style: solid; border-bottom-color: transparent; top: 286px;"></div><div class="CodeMirror-gutters" style="display: none; height: 286px;"></div></div></div></pre><p><span>解决方案:</span>
<span>第一步:项目 - TARGETS - Build Phases - Link Binary With Libraries - Add Other - Add Files.. 添加Pods/HDBaseUtils/HDBaseUtils/HDBaseUtils.framework、Pods/CCVodSDK/Frameworks/CCVodSDK.framework。</span></p><p><span>第二步:项目 - TARGETS - General - Frameworks.Libraries,and Embedded Content - 找到HDBaseUtils.framework、CCVodSDK.framework,将默认Do Not Embed修改为Embed &amp; Sign,即可。</span></p><p><span>更多信息请参考</span><a href='https://doc.bokecc.com'><span> “获得场景视频帮助中心”</span></a><span>,如果在使用SDK过程中遇到其他问题请联系获得场景视频客服进行反馈。</span></p></div>
<span>第一步:项目 - TARGETS - Build Phases - Link Binary With Libraries - Add Other - Add Files.. 添加Pods/HDBaseUtils/HDBaseUtils/HDBaseUtils.framework、Pods/CCVodSDK/include/CCVodSDK.framework。</span></p><p><span>第二步:项目 - TARGETS - General - Frameworks.Libraries,and Embedded Content - 找到HDBaseUtils.framework、CCVodSDK.framework,将默认Do Not Embed修改为Embed &amp; Sign,即可。</span></p><p><span>更多信息请参考</span><a href='https://doc.bokecc.com'><span> “获得场景视频帮助中心”</span></a><span>,如果在使用SDK过程中遇到其他问题请联系获得场景视频客服进行反馈。</span></p></div>
</body>
</html>
\ No newline at end of file
//版本号
#define SDK_VERSION @"4.11.0"
#define SDK_VERSION @"4.11.1"
#import <CCVodSDK/DWGIFManager.h>
#import <CCVodSDK/DWAdInfo.h>
......
......@@ -17,7 +17,7 @@ FOUNDATION_EXPORT const unsigned char HDBaseUtilsVersionString[];
// In this header, you should import all the public headers of your framework using statements like #import <HDBaseUtils/PublicHeader.h>
//base库版本号
#define HDBASESDK_VERSION @"1.0.7"
#define HDBASESDK_VERSION @"1.0.8"
#import <HDBaseUtils/HDUniversalUtils.h>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment