iOS Question ActivityViewController on iPad linker command failed with exit code 1

Alexander Stolte

Expert
Licensed User
Longtime User
I wanted to test an app in the simulator for ipads and can't get around this error:
B4X:
ld: warning: ignoring file ../../Libs/libiPhone.a, file is universal (arm64,armv7) but does not contain the x86_64 architecture: ../../Libs/libiPhone.a
Undefined symbols for architecture x86_64:
  "_OBJC_CLASS_$_B4IActivityViewController", referenced from:
      objc-class-ref in b4i_b4xmainpage.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)


Error: 2023-05-05 10:02:33.901 xcodebuild[270:2088539] DVTCoreDeviceEnabledState: DVTCoreDeviceEnabledState_Disabled set via user default (DVTEnableCoreDevice=disabled)
** BUILD FAILED **
That's my code:
B4X:
    Dim avc As ActivityViewController
    avc.Initialize("avc", Array("Test"))
    avc.Show(B4XPages.GetNativeParent(Me), Button1) 'Second parameter is relevant for iPad only. The arrow will point to the view.
    'avc.Show(B4XPages.GetNativeParent(Me), Root) '<---- B4XPages equivalent code
    Wait For avc_Complete (Success As Boolean, ActivityType As String)
    Log($"Success: ${Success}, ActivityType: ${ActivityType}"$)

I was able to recreate it in an example project
 

Attachments

  • ActivityViewController on iPad.zip
    3.9 KB · Views: 61

Erel

B4X founder
Staff member
Licensed User
Longtime User
 
Upvote 0
Top