แก้ไขข้อผิดพลาดเกี่ยวกับรันไทม์ของสื่อกลาง iOS
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
หากพบข้อผิดพลาดของโปรแกรมลิงก์แบบไดนามิกหลังจากเปิดแอป คุณอาจพบข้อผิดพลาดเกี่ยวกับรันไทม์ต่อไปนี้
dylib
dynamic framework
Library not loaded
no such file
หากต้องการแก้ไขข้อผิดพลาดเหล่านี้ ให้ลิงก์เฟรมเวิร์กเหล่านี้แบบคงที่ คู่มือนี้ครอบคลุมวิธี
สร้างแอปพลิเคชัน Unity สำหรับ iOS และลิงก์เฟรมเวิร์กเหล่านี้
ข้อกำหนดเบื้องต้น
โปรดทำตามขั้นตอนเริ่มต้นใช้งานให้เสร็จก่อนดำเนินการต่อ
ลิงก์เฟรมเวิร์กแบบคงที่
ตารางต่อไปนี้แสดงแหล่งที่มาของโฆษณาที่มีเฟรมเวิร์กแบบไดนามิกและเวอร์ชันอะแดปเตอร์ขั้นต่ำ
ที่จัดการการลิงก์แบบคงที่โดยอัตโนมัติ หากต้องการลิงก์เฟรมเวิร์กแบบคงที่ ให้อัปเดตอแดปเตอร์เป็นเวอร์ชันขั้นต่ำต่อไปนี้หรือสูงกว่า
แหล่งที่มาของโฆษณา |
เวอร์ชันขั้นต่ำสำหรับการลิงก์แบบคงที่อัตโนมัติ |
AppLovin |
8.1.1 |
InMobi |
4.7.1 |
maio |
3.0.0 |
หากต้องการใช้อะแดปเตอร์เวอร์ชันเก่าที่ไม่ได้กำหนดค่าการลิงก์แบบคงที่โดยอัตโนมัติ ให้ทำดังนี้
สร้างAssets/GoogleMobileAds/Editor/iOSDynamicDependencies.xml
ไฟล์
ที่มีเนื้อหาต่อไปนี้
<dependencies>
<iosPods>
<!-- AppLovin adapter dependencies. -->
<iosPod name="AppLovinSDK" addToAllTargets="true"/>
<!-- InMobi adapter dependencies. -->
<iosPod name="InMobiSDK" addToAllTargets="true"/>
<!-- maio adapter dependencies. -->
<iosPod name="MaioSDK-v2" addToAllTargets="true"/>
</iosPods>
</dependencies>
เก็บเฉพาะองค์ประกอบ <iosPod>
สำหรับแหล่งที่มาของโฆษณาที่เกี่ยวข้องกับแอปของคุณ
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-08-31 UTC
[null,null,["อัปเดตล่าสุด 2025-08-31 UTC"],[],[],null,["# Resolve iOS mediation runtime errors\n\nIf you encounter dynamic linker errors after app launch, you might encounter\nthe following runtime errors:\n\n- `dylib`\n- `dynamic framework`\n- `Library not loaded`\n- `no such file`\n\nTo resolve these errors, link these frameworks statically. This guide covers how\nto build the Unity application for iOS and link these frameworks.\n\nPrerequisites\n-------------\n\nBefore continuing, complete [Get started](/ad-manager/mobile-ads-sdk/unity/quick-start).\n\nLink frameworks statically\n--------------------------\n\nThe following table lists ad sources with dynamic frameworks and the minimum\nadapter version that automatically handles static linking. To link frameworks\nstatically, update your adapters to the following minimum version or higher:\n\n| Ad source | Minimum version for automatic static linking |\n|-----------|----------------------------------------------------------------------------|\n| AppLovin | [8.1.1](/ad-manager/mobile-ads-sdk/unity/mediation/applovin#version-8.1.1) |\n| InMobi | [4.7.1](/ad-manager/mobile-ads-sdk/unity/mediation/inmobi#version-4.7.1) |\n| maio | [3.0.0](/ad-manager/mobile-ads-sdk/unity/mediation/maio#version-3.0.0) |\n\n### Manually configure static linking\n\nTo use an older adapter version that doesn't automatically configure static\nlinking, do the following:\n\n1. Create an `Assets/GoogleMobileAds/Editor/iOSDynamicDependencies.xml` file\n with the following content:\n\n \u003cdependencies\u003e\n \u003ciosPods\u003e\n \u003c!-- AppLovin adapter dependencies. --\u003e\n \u003ciosPod name=\"AppLovinSDK\" addToAllTargets=\"true\"/\u003e\n \u003c!-- InMobi adapter dependencies. --\u003e\n \u003ciosPod name=\"InMobiSDK\" addToAllTargets=\"true\"/\u003e\n \u003c!-- maio adapter dependencies. --\u003e\n \u003ciosPod name=\"MaioSDK-v2\" addToAllTargets=\"true\"/\u003e\n \u003c/iosPods\u003e\n \u003c/dependencies\u003e\n\n2. Keep only the `\u003ciosPod\u003e` elements for ad sources that apply to your app."]]