Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Bug / Crash  Undefined symbols for architecture arm64
#1
When I build iOS with 
- Host OS: Mac 10.13.6
- Unity Editor: 2019.1.2f1
- Xcode : 10
- Obi Robe: 4.1

Errors log is pasted below:

Code:
Undefined symbols for architecture arm64:
 "_GetProfilingInfoCount", referenced from:
     _Oni_GetProfilingInfoCount_mF6C93B77328B06BAA42CE9C2E4BDFB89DA310374 in Obi2.o
    (maybe you meant: _Oni_GetProfilingInfoCount_mF6C93B77328B06BAA42CE9C2E4BDFB89DA310374)
 "_SignalFrameEnd", referenced from:
     _Oni_SignalFrameEnd_mAD6C1011D3F8B2B207B171FC8A67A815B8942F1D in Obi2.o
    (maybe you meant: _Oni_SignalFrameEnd_mAD6C1011D3F8B2B207B171FC8A67A815B8942F1D)
 "_SignalFrameStart", referenced from:
     _Oni_SignalFrameStart_m368F56D78F51A62F5DC87FEE54F92A29474D0697 in Obi2.o
    (maybe you meant: _Oni_SignalFrameStart_m368F56D78F51A62F5DC87FEE54F92A29474D0697)
 "_ClearTasks", referenced from:
     _Oni_ClearTasks_mF83C8CDE5CBE6214A2C884D9B7AC02CE2562F489 in Obi2.o
    (maybe you meant: _Oni_ClearTasks_mF83C8CDE5CBE6214A2C884D9B7AC02CE2562F489)
 "_GetSkinInfo", referenced from:
     _Oni_GetSkinInfo_m8672537827F66CDA8E4F31EE6FE44E5DE9693738 in Obi2.o
    (maybe you meant: _Oni_GetSkinInfo_m8672537827F66CDA8E4F31EE6FE44E5DE9693738)
 "_GetSkinnedVertexCount", referenced from:
     _Oni_GetSkinnedVertexCount_mC9CB274CEB2FD54F160392A28FDF6FD7947B5E7D in Obi2.o
    (maybe you meant: _Oni_GetSkinnedVertexCount_mC9CB274CEB2FD54F160392A28FDF6FD7947B5E7D)
 "_GetGroupFromPhase", referenced from:
     _Oni_GetGroupFromPhase_mE6DB73EF65EDE6FEB7668F73969DA405262E2022 in Obi2.o
    (maybe you meant: _Oni_GetGroupFromPhase_mE6DB73EF65EDE6FEB7668F73969DA405262E2022)
 "_MakePhase", referenced from:
     _Oni_MakePhase_mD88785E743F6F79B4A184ABD22047D056EF9152A in Obi2.o
    (maybe you meant: _Oni_MakePhase_mD88785E743F6F79B4A184ABD22047D056EF9152A)
 "_GetPointCloudAnisotropy", referenced from:
     _Oni_GetPointCloudAnisotropy_m5538B1B35B6E449A323688DB4488F4A7BA9FAE17 in Obi2.o
    (maybe you meant: _Oni_GetPointCloudAnisotropy_m5538B1B35B6E449A323688DB4488F4A7BA9FAE17)

...

p.p1 {margin: 0.0px 0.0px 0.0px 12.0px; text-indent: -12.0px; font: 11.0px Menlo; color: #000000; color: rgba(0, 0, 0, 0.85)}
 "_GetBounds", referenced from:
      _Oni_GetBounds_m97A226DFD7C05C116D018192221F0D127E06A844 in Obi2.o
     (maybe you meant: __GetBoundsColor_t2E051424B366FF0F4F6A9403D362D5ABA950CDDF_0_0_0, _ScrollRect_GetBounds_m1434EA6AC230851FBEEE36B1293EA41174124807 , __GetBoundsColor_EndInvoke_mBDBD7F743E7B2F76A8161226E8B0DDAF61E93E77 , __GetBoundsColor__ctor_mB30C7E4CFC9551E493AC9ADD9441D5CB90121F88 , _CVRChaperone_GetBoundsColor_m657AB1E8D63F9E65EA27F274440DFE45E041B586 , __Z47il2cpp_codegen_marshal_function_ptr_to_delegateI57_GetBoundsColor_t2E051424B366FF0F4F6A9403D362D5ABA950CDDFEPT_PFvvEP11Il2CppClass , __ZNK54IVRChaperone_t52491D16BC21FDE07D4C94F339CD993CF4AC068A20get_GetBoundsColor_5Ev , _Oni_GetBounds_m97A226DFD7C05C116D018192221F0D127E06A844 , __GetBoundsColor_BeginInvoke_mDBDB2B7D274C1BAAF1655A5ED0B2B42EAB6CF8C4 , __GetBoundsColor_t2E051424B366FF0F4F6A9403D362D5ABA950CDDF_0_0_4099 , _ScrollRect_GetBounds_m1434EA6AC230851FBEEE36B1293EA41174124807_MetadataUsageId , _MB_Utility_GetBounds_mD21F2046BBA1811477F3D352975D51F244615D17 , _DelegatePInvokeWrapper__GetBoundsColor_t2E051424B366FF0F4F6A9403D362D5ABA950CDDF , __ZN54IVRChaperone_t52491D16BC21FDE07D4C94F339CD993CF4AC068A20set_GetBoundsColor_5EP57_GetBoundsColor_t2E051424B366FF0F4F6A9403D362D5ABA950CDDF , __GetBoundsColor_Invoke_mB6DBD846B3AB737A907D582B11C2C8F97DA87713 , __GetBoundsColor_BeginInvoke_mDBDB2B7D274C1BAAF1655A5ED0B2B42EAB6CF8C4_MetadataUsageId , __GetBoundsColor_t2E051424B366FF0F4F6A9403D362D5ABA950CDDF_1_0_0 , __ZN54IVRChaperone_t52491D16BC21FDE07D4C94F339CD993CF4AC068A30get_offset_of_GetBoundsColor_5Ev , _MB_Utility_GetBounds_mD21F2046BBA1811477F3D352975D51F244615D17_MetadataUsageId , __GetBoundsColor_t2E051424B366FF0F4F6A9403D362D5ABA950CDDF_il2cpp_TypeInfo_var )
  "_SampleDistanceField", referenced from:
      _Oni_SampleDistanceField_m37F0B3709B63718D6BE07E41AD83C18996C9919D in Obi2.o
     (maybe you meant: _Oni_SampleDistanceField_m37F0B3709B63718D6BE07E41AD83C18996C9919D)
  "_CreateBatch", referenced from:
      _Oni_CreateBatch_m250D2C0434255AD38321C976E1D79D3D8F310BFD in Obi2.o
     (maybe you meant: _Oni_CreateBatch_m250D2C0434255AD38321C976E1D79D3D8F310BFD)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Reply
#2
(28-05-2019, 11:40 AM)phont Wrote: When I build iOS with 
- Host OS: Mac 10.13.6
- Unity Editor: 2019.1.2f1
- Xcode : 10
- Obi Robe: 4.1

Errors log is pasted below:

Code:
Undefined symbols for architecture arm64:
 "_GetProfilingInfoCount", referenced from:
     _Oni_GetProfilingInfoCount_mF6C93B77328B06BAA42CE9C2E4BDFB89DA310374 in Obi2.o
    (maybe you meant: _Oni_GetProfilingInfoCount_mF6C93B77328B06BAA42CE9C2E4BDFB89DA310374)
 "_SignalFrameEnd", referenced from:
     _Oni_SignalFrameEnd_mAD6C1011D3F8B2B207B171FC8A67A815B8942F1D in Obi2.o
    (maybe you meant: _Oni_SignalFrameEnd_mAD6C1011D3F8B2B207B171FC8A67A815B8942F1D)
 "_SignalFrameStart", referenced from:
     _Oni_SignalFrameStart_m368F56D78F51A62F5DC87FEE54F92A29474D0697 in Obi2.o
    (maybe you meant: _Oni_SignalFrameStart_m368F56D78F51A62F5DC87FEE54F92A29474D0697)
 "_ClearTasks", referenced from:
     _Oni_ClearTasks_mF83C8CDE5CBE6214A2C884D9B7AC02CE2562F489 in Obi2.o
    (maybe you meant: _Oni_ClearTasks_mF83C8CDE5CBE6214A2C884D9B7AC02CE2562F489)
 "_GetSkinInfo", referenced from:
     _Oni_GetSkinInfo_m8672537827F66CDA8E4F31EE6FE44E5DE9693738 in Obi2.o
    (maybe you meant: _Oni_GetSkinInfo_m8672537827F66CDA8E4F31EE6FE44E5DE9693738)
 "_GetSkinnedVertexCount", referenced from:
     _Oni_GetSkinnedVertexCount_mC9CB274CEB2FD54F160392A28FDF6FD7947B5E7D in Obi2.o
    (maybe you meant: _Oni_GetSkinnedVertexCount_mC9CB274CEB2FD54F160392A28FDF6FD7947B5E7D)
 "_GetGroupFromPhase", referenced from:
     _Oni_GetGroupFromPhase_mE6DB73EF65EDE6FEB7668F73969DA405262E2022 in Obi2.o
    (maybe you meant: _Oni_GetGroupFromPhase_mE6DB73EF65EDE6FEB7668F73969DA405262E2022)
 "_MakePhase", referenced from:
     _Oni_MakePhase_mD88785E743F6F79B4A184ABD22047D056EF9152A in Obi2.o
    (maybe you meant: _Oni_MakePhase_mD88785E743F6F79B4A184ABD22047D056EF9152A)
 "_GetPointCloudAnisotropy", referenced from:
     _Oni_GetPointCloudAnisotropy_m5538B1B35B6E449A323688DB4488F4A7BA9FAE17 in Obi2.o
    (maybe you meant: _Oni_GetPointCloudAnisotropy_m5538B1B35B6E449A323688DB4488F4A7BA9FAE17)

...

p.p1 {margin: 0.0px 0.0px 0.0px 12.0px; text-indent: -12.0px; font: 11.0px Menlo; color: #000000; color: rgba(0, 0, 0, 0.85)}
 "_GetBounds", referenced from:
      _Oni_GetBounds_m97A226DFD7C05C116D018192221F0D127E06A844 in Obi2.o
     (maybe you meant: __GetBoundsColor_t2E051424B366FF0F4F6A9403D362D5ABA950CDDF_0_0_0, _ScrollRect_GetBounds_m1434EA6AC230851FBEEE36B1293EA41174124807 , __GetBoundsColor_EndInvoke_mBDBD7F743E7B2F76A8161226E8B0DDAF61E93E77 , __GetBoundsColor__ctor_mB30C7E4CFC9551E493AC9ADD9441D5CB90121F88 , _CVRChaperone_GetBoundsColor_m657AB1E8D63F9E65EA27F274440DFE45E041B586 , __Z47il2cpp_codegen_marshal_function_ptr_to_delegateI57_GetBoundsColor_t2E051424B366FF0F4F6A9403D362D5ABA950CDDFEPT_PFvvEP11Il2CppClass , __ZNK54IVRChaperone_t52491D16BC21FDE07D4C94F339CD993CF4AC068A20get_GetBoundsColor_5Ev , _Oni_GetBounds_m97A226DFD7C05C116D018192221F0D127E06A844 , __GetBoundsColor_BeginInvoke_mDBDB2B7D274C1BAAF1655A5ED0B2B42EAB6CF8C4 , __GetBoundsColor_t2E051424B366FF0F4F6A9403D362D5ABA950CDDF_0_0_4099 , _ScrollRect_GetBounds_m1434EA6AC230851FBEEE36B1293EA41174124807_MetadataUsageId , _MB_Utility_GetBounds_mD21F2046BBA1811477F3D352975D51F244615D17 , _DelegatePInvokeWrapper__GetBoundsColor_t2E051424B366FF0F4F6A9403D362D5ABA950CDDF , __ZN54IVRChaperone_t52491D16BC21FDE07D4C94F339CD993CF4AC068A20set_GetBoundsColor_5EP57_GetBoundsColor_t2E051424B366FF0F4F6A9403D362D5ABA950CDDF , __GetBoundsColor_Invoke_mB6DBD846B3AB737A907D582B11C2C8F97DA87713 , __GetBoundsColor_BeginInvoke_mDBDB2B7D274C1BAAF1655A5ED0B2B42EAB6CF8C4_MetadataUsageId , __GetBoundsColor_t2E051424B366FF0F4F6A9403D362D5ABA950CDDF_1_0_0 , __ZN54IVRChaperone_t52491D16BC21FDE07D4C94F339CD993CF4AC068A30get_offset_of_GetBoundsColor_5Ev , _MB_Utility_GetBounds_mD21F2046BBA1811477F3D352975D51F244615D17_MetadataUsageId , __GetBoundsColor_t2E051424B366FF0F4F6A9403D362D5ABA950CDDF_il2cpp_TypeInfo_var )
  "_SampleDistanceField", referenced from:
      _Oni_SampleDistanceField_m37F0B3709B63718D6BE07E41AD83C18996C9919D in Obi2.o
     (maybe you meant: _Oni_SampleDistanceField_m37F0B3709B63718D6BE07E41AD83C18996C9919D)
  "_CreateBatch", referenced from:
      _Oni_CreateBatch_m250D2C0434255AD38321C976E1D79D3D8F310BFD in Obi2.o
     (maybe you meant: _Oni_CreateBatch_m250D2C0434255AD38321C976E1D79D3D8F310BFD)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Hi,

If you've updated from an older Obi version, make sure you've regenerated the Xcode project. If this is not the case, let us know so that we can look deeper into it.
Reply
#3
(28-05-2019, 11:44 AM)josemendez Wrote: Hi,

If you've updated from an older Obi version, make sure you've regenerated the Xcode project. If this is not the case, let us know so that we can look deeper into it.

I've regenerated the Xcode project. 

Remove Xcode project old and rebuild
Reply
#4
@josemendez Can you fix this problem?
Reply
#5
(29-05-2019, 03:57 AM)phont Wrote: @josemendez Can you fix this problem?

Hi,

We're looking into it. Seems like the ARM64 architecture isn't being included in the fat lib file generated for iOS. Once we get it working I will get back to you, hopefully very soon.
Reply
#6
We double checked, the arm64 architecture is being included in the iOS lib, the same one shipped with the asset. Running lipo -info on the .a file, returns:
Quote:Architectures in the fat file: libOni.a are: armv7 arm64

Runnning on an iPhone 8 with no issues.

Can you share the Xcode project that's causing this issue?
Reply
#7
I am facing similar and it started happening out of nowhere. How do I solve this ?

PS - got it to work, had to delete obi folder from the project and reimport it. After that when when I built the project and ran on my device, it worked fine.
Reply