SDK说明


常见问题

<h1>集成常见问题<a href="https://doc.sigmob.com/ToBid%E4%BD%BF%E7%94%A8%E6%8C%87%E5%8D%97/SDK%E9%9B%86%E6%88%90%E8%AF%B4%E6%98%8E/iOS/%E5%B8%B8%E8%A7%81%E9%97%AE%E9%A2%98/#%E9%9B%86%E6%88%90%E5%B8%B8%E8%A7%81%E9%97%AE%E9%A2%98">​</a></h1> <h2>启动崩溃(App Crashes on Launching)<a href="https://doc.sigmob.com/ToBid%E4%BD%BF%E7%94%A8%E6%8C%87%E5%8D%97/SDK%E9%9B%86%E6%88%90%E8%AF%B4%E6%98%8E/iOS/%E5%B8%B8%E8%A7%81%E9%97%AE%E9%A2%98/#%E5%90%AF%E5%8A%A8%E5%B4%A9%E6%BA%83-app-crashes-on-launching">​</a></h2> <h3>Build Settings<strong>中的</strong>Other Linker Flags<strong>缺失</strong>-ObjC flag配置项<a href="https://doc.sigmob.com/ToBid%E4%BD%BF%E7%94%A8%E6%8C%87%E5%8D%97/SDK%E9%9B%86%E6%88%90%E8%AF%B4%E6%98%8E/iOS/%E5%B8%B8%E8%A7%81%E9%97%AE%E9%A2%98/#build-settings%E4%B8%AD%E7%9A%84other-linker-flags%E7%BC%BA%E5%A4%B1-objc-flag%E9%85%8D%E7%BD%AE%E9%A1%B9">​</a></h3> <p><img src="https://sdkres.sigmob.cn/docs/iOS/doesNotRecognizeSelector.png" alt="" /></p> <p>如果你遇到了这种错误,您可以在Xcode导航到<strong>Build Settings</strong>中,找到<strong>Other Linker Flags</strong> 双击它,点击**+<strong>并添加</strong>-ObjC**即可:</p> <p><img src="https://sdkres.sigmob.cn/docs/iOS/other-linker-flags.png" alt="" /></p> <p><strong>注</strong>: <strong>Linker Flags</strong> 是需要<strong>区分大小写的</strong>。</p> <h4>引入Admob的SDK后,程序启动崩溃<a href="https://doc.sigmob.com/ToBid%E4%BD%BF%E7%94%A8%E6%8C%87%E5%8D%97/SDK%E9%9B%86%E6%88%90%E8%AF%B4%E6%98%8E/iOS/%E5%B8%B8%E8%A7%81%E9%97%AE%E9%A2%98/#%E5%BC%95%E5%85%A5admob%E7%9A%84sdk%E5%90%8E-%E7%A8%8B%E5%BA%8F%E5%90%AF%E5%8A%A8%E5%B4%A9%E6%BA%83">​</a></h4> <p><img src="https://sdkres.sigmob.cn/docs/iOS/admob-init-not-appId.png" alt="" /></p> <p>您遇到这个崩溃时因为您添加了Admob的SDK,但是没有在Info.plist中配置AppID:</p> <p>xml</p> <pre><code>&amp;lt;key&amp;gt;GADApplicationIdentifier&amp;lt;/key&amp;gt; &amp;lt;string&amp;gt;ca-app-pub-9488501426181082/7319780494&amp;lt;/string&amp;gt; &amp;lt;key&amp;gt;GADIsAdManagerApp&amp;lt;/key&amp;gt; &amp;lt;true/&amp;gt;</code></pre> <p>如下图:</p> <p><img src="https://sdkres.sigmob.cn/docs/iOS/admob-init-not-appId-info-plist.png" alt="" /></p> <p><strong>注: 如果您的应用程序导入了Admob的SDK,请保证您的app配置了以上操作。</strong></p> <h4>引入快手SDK编译崩溃<a href="https://doc.sigmob.com/ToBid%E4%BD%BF%E7%94%A8%E6%8C%87%E5%8D%97/SDK%E9%9B%86%E6%88%90%E8%AF%B4%E6%98%8E/iOS/%E5%B8%B8%E8%A7%81%E9%97%AE%E9%A2%98/#%E5%BC%95%E5%85%A5%E5%BF%AB%E6%89%8Bsdk%E7%BC%96%E8%AF%91%E5%B4%A9%E6%BA%83">​</a></h4> <p><img src="https://sdkres.sigmob.cn/docs/iOS/image-not-found.png" alt="" /></p> <p>您遇到这个崩溃是因为快手sdk为动态库,需要将<strong>KSAdSDK.framework</strong>的<strong>Embed</strong>修改为<strong>Embed&amp;Sign</strong>即可</p> <p><img src="https://sdkres.sigmob.cn/docs/iOS/embedded.png" alt="" /></p> <p><strong>注: 如果您的应用程序导入了快手的SDK,请保证您的app配置了以上操作且关闭了bitcode。</strong></p> <h1>第三方广告平台错误码&amp;FAQ<a href="https://doc.sigmob.com/ToBid%E4%BD%BF%E7%94%A8%E6%8C%87%E5%8D%97/SDK%E9%9B%86%E6%88%90%E8%AF%B4%E6%98%8E/iOS/%E5%B8%B8%E8%A7%81%E9%97%AE%E9%A2%98/#%E7%AC%AC%E4%B8%89%E6%96%B9%E5%B9%BF%E5%91%8A%E5%B9%B3%E5%8F%B0%E9%94%99%E8%AF%AF%E7%A0%81-faq">​</a></h1> <h3>Admob<a href="https://doc.sigmob.com/ToBid%E4%BD%BF%E7%94%A8%E6%8C%87%E5%8D%97/SDK%E9%9B%86%E6%88%90%E8%AF%B4%E6%98%8E/iOS/%E5%B8%B8%E8%A7%81%E9%97%AE%E9%A2%98/#admob">​</a></h3> <table> <thead> <tr> <th>常见错误</th> <th>解决方案</th> </tr> </thead> <tbody> <tr> <td>1</td> <td>广告请求无效;检查广告源参数配置</td> </tr> <tr> <td>2</td> <td>由于网络连接,广告请求失败。</td> </tr> </tbody> </table> <p>更多的Admob的错误信息请查看: <a href="https://support.google.com/admob/thread/3494603?hl=en">Admob错误码</a></p> <h3>穿山甲(Pangle)<a href="https://doc.sigmob.com/ToBid%E4%BD%BF%E7%94%A8%E6%8C%87%E5%8D%97/SDK%E9%9B%86%E6%88%90%E8%AF%B4%E6%98%8E/iOS/%E5%B8%B8%E8%A7%81%E9%97%AE%E9%A2%98/#%E7%A9%BF%E5%B1%B1%E7%94%B2-pangle">​</a></h3> <table> <thead> <tr> <th>常见错误</th> <th>解决方案</th> </tr> </thead> <tbody> <tr> <td>40029</td> <td>检查穿山甲代码位的渲染类型,Sigmob后台穿山甲广告源的配置需与穿山甲后台的配置保持一致</td> </tr> <tr> <td>40018 - 媒体包名与录入不一致</td> <td><strong>代码中配置的包名</strong>与穿山甲后台的不一致</td> </tr> <tr> <td>102 - 主模板没有下载到本地导致,偶发在首次请求广告时,偶现属于正常情况,出现之后请多尝试多次请求。建议升级到穿山甲2955及以上版本SDK</td> <td>可多请求几次广告进行尝试</td> </tr> <tr> <td>103 - 偶发在接入初期,没有匹配到模板导致。待SDK将模板下载成功后不会出现,出现之后请多尝试多次请求。建议升级到穿山甲2955及以上版本SDK。</td> <td>可多请求几次广告进行尝试</td> </tr> <tr> <td>107 - 网络原因或者硬件原因导致渲染失败,可以更换手机或者网络环境测试。建议升级到穿山甲2955及以上版本SDK。</td> <td>可多请求几次广告进行尝试</td> </tr> </tbody> </table> <p>更多的Pangle的错误信息请查看:(需登录) <a href="https://ad.oceanengine.com/union/media/doc?id=5de4cc6d78c8690012a90aa5">Pangle错误码</a></p> <h3>Mintegral<a href="https://doc.sigmob.com/ToBid%E4%BD%BF%E7%94%A8%E6%8C%87%E5%8D%97/SDK%E9%9B%86%E6%88%90%E8%AF%B4%E6%98%8E/iOS/%E5%B8%B8%E8%A7%81%E9%97%AE%E9%A2%98/#mintegral">​</a></h3> <table> <thead> <tr> <th>错误码</th> <th>msg</th> <th>描述</th> <th>解决方案</th> </tr> </thead> <tbody> <tr> <td>-1</td> <td>EXCEPTION_RETURN_EMPTY</td> <td>没有广告填充,可能导致的原因:1.您在测试期间所获取的广告均为Mintegral的正式广告,因此会受到算法智能优化的影响,若一段时间内大量加载和展示广告,可能导致一段时间后没有广告填充的现象。</td> <td>国内版: 1、确保Mintegral后台-应用设置中开启了<strong>是否接受apk广告投放</strong> 海外版: 1、检查是否VPN到美国地区</td> </tr> </tbody> </table> <p>更多的Mintegral的错误信息请查看: <a href="http://cdn-adn.rayjump.com/cdn-adn/v2/markdown_v2/index.html?file=sdk-m_sdk-ios&amp;amp;lang=cn">Mintegral错误码</a></p> <h3>腾讯广告<a href="https://doc.sigmob.com/ToBid%E4%BD%BF%E7%94%A8%E6%8C%87%E5%8D%97/SDK%E9%9B%86%E6%88%90%E8%AF%B4%E6%98%8E/iOS/%E5%B8%B8%E8%A7%81%E9%97%AE%E9%A2%98/#%E8%85%BE%E8%AE%AF%E5%B9%BF%E5%91%8A">​</a></h3> <table> <thead> <tr> <th>错误码</th> <th>描述</th> </tr> </thead> <tbody> <tr> <td>4013</td> <td>系统不支持,原生视频模板广告只支持 iOS 9 及以上系统</td> </tr> <tr> <td>4020</td> <td>window为空,需要在AppDelegate中添加window属性</td> </tr> <tr> <td>5006</td> <td>包名校验非法 <strong>代码中配置的包名</strong>与广点通后台的不一致</td> </tr> <tr> <td>6000</td> <td>未知错误,联系腾讯广告商务同事协助排查。</td> </tr> </tbody> </table> <p>更多的腾讯广告的错误信息请查看: <a href="https://developers.adnet.qq.com/doc/ios/union/union_debug#%E9%94%99%E8%AF%AF%E7%A0%81">Tencent Ad错误码</a></p> <h3>AppLovin<a href="https://doc.sigmob.com/ToBid%E4%BD%BF%E7%94%A8%E6%8C%87%E5%8D%97/SDK%E9%9B%86%E6%88%90%E8%AF%B4%E6%98%8E/iOS/%E5%B8%B8%E8%A7%81%E9%97%AE%E9%A2%98/#applovin">​</a></h3> <table> <thead> <tr> <th>常见错误</th> <th>解决方案</th> </tr> </thead> <tbody> <tr> <td>204</td> <td>无填充,可通过Applovin后台开启测试模式进行测试</td> </tr> </tbody> </table> <p>更多的AppLovin的错误信息请查看: <a href="https://monetization-support.applovin.com/hc/zh-cn/articles/115000400607-%E4%BB%80%E4%B9%88%E6%98%AFIOS%E9%94%99%E8%AF%AF%E4%BB%A3%E7%A0%81-%E5%AE%83%E4%BB%AC%E6%98%AF%E4%BB%80%E4%B9%88%E6%84%8F%E6%80%9D-">AppLovin错误码</a></p> <h3>Vungle<a href="https://doc.sigmob.com/ToBid%E4%BD%BF%E7%94%A8%E6%8C%87%E5%8D%97/SDK%E9%9B%86%E6%88%90%E8%AF%B4%E6%98%8E/iOS/%E5%B8%B8%E8%A7%81%E9%97%AE%E9%A2%98/#vungle">​</a></h3> <table> <thead> <tr> <th>常见错误</th> <th>解决方案</th> </tr> </thead> <tbody> <tr> <td>获取不到广告</td> <td>通过Vungle后台开启测试模式进行测试</td> </tr> <tr> <td>预加载了Vungle的激励视频和插屏广告并且成功后,播放了其中一个Vungle的广告,另一个广告的isAdReady()返回false</td> <td>Vungle的激励视频和插屏广告存在共用同一份广告源资源的情况</td> </tr> </tbody> </table> <p>更多的Vungle的错误信息请查看: <a href="https://support.vungle.com/hc/zh-cn/sections/360006006692-%E5%B8%B8%E8%A7%81%E9%97%AE%E9%A2%98">Vungle错误码</a></p> <h3>快手<a href="https://doc.sigmob.com/ToBid%E4%BD%BF%E7%94%A8%E6%8C%87%E5%8D%97/SDK%E9%9B%86%E6%88%90%E8%AF%B4%E6%98%8E/iOS/%E5%B8%B8%E8%A7%81%E9%97%AE%E9%A2%98/#%E5%BF%AB%E6%89%8B">​</a></h3> <table> <thead> <tr> <th>常见错误</th> <th>解决方案</th> </tr> </thead> <tbody> <tr> <td>40003 - 广告数据为空</td> <td>必现时,联系快手相关人员</td> </tr> <tr> <td>310004 - packageName与注册的packageName不一致</td> <td><strong>代码中配置的包名</strong>与快手后台的不一致</td> </tr> </tbody> </table> <p>更多的快手的错误信息请查看:(需登录下载) <a href="https://ssp.e.kuaishou.com/#/access/sdk">快手错误码</a></p> <h3>UnityAds<a href="https://doc.sigmob.com/ToBid%E4%BD%BF%E7%94%A8%E6%8C%87%E5%8D%97/SDK%E9%9B%86%E6%88%90%E8%AF%B4%E6%98%8E/iOS/%E5%B8%B8%E8%A7%81%E9%97%AE%E9%A2%98/#unityads">​</a></h3> <p>更多的UnityAds的错误信息请查看: <a href="https://github.com/Unity-Technologies/unity-ads-ios">UnityAds错误码</a></p> <h3>Ironsource<a href="https://doc.sigmob.com/ToBid%E4%BD%BF%E7%94%A8%E6%8C%87%E5%8D%97/SDK%E9%9B%86%E6%88%90%E8%AF%B4%E6%98%8E/iOS/%E5%B8%B8%E8%A7%81%E9%97%AE%E9%A2%98/#ironsource">​</a></h3> <p>更多的Ironsource的错误信息请查看: <a href="https://developers.ironsrc.com/ironsource-mobile/ios/advanced-settings-2/#step-6">Ironsource错误码</a></p>

页面列表

ITEM_HTML