-
Notifications
You must be signed in to change notification settings - Fork 174
Closed
Labels
Description
Goals
Build Unity application for iOS target platform using Realm
Expected Results
Finish build process with no linker errors.
Actual Results
Linker error
Undefined symbols for architecture arm64: "_realm_thread_safe_reference_destroy", referenced from: _ThreadSafeReferenceHandle_Unbind_m8B516E342FFE32FA967A0774363A935962952FCD in Realm1.o _NativeMethods_destroy_realm_reference_m5953D89668770CFD7399888C4CF3FBCC136A591B in Realm1.o ld: symbol(s) not found for architecture arm64
Steps to Reproduce
- Create an empty Unity project, switch Build target to iOS;
- Import
realm.unity.bundle-10.1.2.tgzusing Package Manager; - Create sample .cs script that invokes
Realm.GetInstance()and uses sampleRealmObject. Attach script to any object in the SampleScene.unity; - Export Xcode project (File --> Build Settings... --> Build);
- Open Xcode project, setup your
Team,Bundle IdentifierandProvisioning Profileetc. inSigning & Capabilitiestab; - Set
Enable Bitcodeproperty toNOfor both Unity-iPhone and UnityFramework targets (Build Settings tab --> Build Options); - Try to build Xcode project (
Command+Bor top menuProduct --> Build); - Linker error will be thrown
Undefined symbols for architecture arm64: "_realm_thread_safe_reference_destroy", referenced from: _ThreadSafeReferenceHandle_Unbind_m8B516E342FFE32FA967A0774363A935962952FCD in Realm1.o _NativeMethods_destroy_realm_reference_m5953D89668770CFD7399888C4CF3FBCC136A591B in Realm1.o ld: symbol(s) not found for architecture arm64
Code Sample
Version of Realm and Tooling
- Realm Object Server Version: ? (you can see this as well in Studio once connected to a Realm instance)
- Flavor:
- Realm Cloud
- Self-Hosted
- Server OS & Version: ? (e.g. CentOS 6)
- Client SDK Version: realm.unity.bundle-10.1.2
- Client OS & Version: macOS Catalina 10.15.7
- Unity 2020.3.2f1 (also reproduced with Unity 2019.4.20f1)
- Xcode 12.4
Reactions are currently unavailable