marcel Active Member Licensed User Longtime User Nov 22, 2014 #1 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): Code: Copy 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 Code: Copy 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: Code: Copy 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 iTestFlight.zip 34.3 KB · Views: 528
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): Code: Copy 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 Code: Copy 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: Code: Copy 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.
Erel B4X founder Staff member Licensed User Longtime User Nov 23, 2014 #2 You can use this command to check the library architectures: lipo -i *.a Upvote 0
marcel Active Member Licensed User Longtime User Nov 23, 2014 #3 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
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...
Erel B4X founder Staff member Licensed User Longtime User Nov 23, 2014 #4 I recommend you to start with a simple library that adds two numbers. Upvote 0
marcel Active Member Licensed User Longtime User Nov 23, 2014 #5 Erel said: I recommend you to start with a simple library that adds two numbers. Click to expand... Ok. I thought this was already simple Upvote 0
Erel said: I recommend you to start with a simple library that adds two numbers. Click to expand... Ok. I thought this was already simple