iOS Question Need TestFlight Lib for BetaTesters but cannot get it to work

marcel

Active Member
Licensed User
Longtime User
Hi,

I am trying to get the testflight lib connected to B4I. I need this for my beta testers (arround 20) but I cannot get it to work:

I have two issues:

1) I tried to make a B4I lib to include test flight. But I am not sure if I did this allright as this is my first library at all. I have attached the Obj C project (the testflighlib.a is not included otherwise the zip file was to large to upload, you can download the SDK at https://www.testflightapp.com/sdk/ios/download/). So hopefully some one can get me in the right direction. The runtime error message I get when calling Initialize (debug version):
B4X:
Sub Process_Globals
    'These global variables will be declared once when the application starts.
    'Public variables can be accessed from all modules.
    Public App As Application
    Public NavControl As NavigationController
    Private Page1 As Page
    Private tf As TestFlightManager
End Sub

Private Sub Application_Start (Nav As NavigationController)
    tf.Initialize("xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx")
    NavControl = Nav
    NavControl.ToolBarVisible = False
    Page1.Initialize("Page1")
    Page1.Title = "Test Page"
    NavControl.ShowPage(Page1)
End Sub


B4X:
Error occurred on line: 0 (main)
Class not found: iTestFlight
Stack Trace: (
  CoreFoundation       <redacted> + 150
  libobjc.A.dylib      objc_exception_throw + 38
  CoreFoundation       <redacted> + 0
  YazulaTest           -[B4IShell createObject:] + 206
  YazulaTest           -[B4IShell raiseEventImpl:method:args::] + 1910
  YazulaTest           -[B4IShellBI raiseEvent:event:params:] + 1280
  YazulaTest           -[B4IStaticModule initializeModule] + 534
  YazulaTest           -[b4i_main initializeStaticModules] + 84
  YazulaTest           -[B4IShellBI raiseEvent:event:params:] + 228
  YazulaTest           __33-[B4I raiseUIEvent:event:params:]_block_invoke + 74
libdispatch.dylib    <redacted> + 10
libdispatch.dylib    <redacted> + 22
libdispatch.dylib    <redacted> + 712
CoreFoundation       <redacted> + 8
CoreFoundation       <redacted> + 1512
CoreFoundation       CFRunLoopRunSpecific + 476
CoreFoundation       CFRunLoopRunInMode + 106
GraphicsServices     GSEventRunModal + 136
UIKit                UIApplicationMain + 1440
YazulaTest           main + 116
libdyld.dylib        <redacted> + 2
)
Application_Start
Application_Active

2). When compiling for the Build release version I get the error message:

B4X:
ld: warning: ignoring file ../../Libs/libiTestFlight.a, file was built for archive which is not the architecture being linked (armv7): ../../Libs/libiTestFlight.a
Undefined symbols for architecture armv7:

But the arm7v was in the compiler settings? So is maybe the testflight.a library not in the correct format??

Any help is appriciated.
 

Attachments

  • iTestFlight.zip
    34.3 KB · Views: 273

marcel

Active Member
Licensed User
Longtime User
Thanks. I figured that out. Could you also help me a little bit with the first question. Ido not think I created the library ok...
 
Upvote 0
Top