I have tried to make the DLL again. One odd thing I notice: it creates a Testflight.cs file. That file does not contain a binding for TSLog()! How is that possible? I'm getting intellisense for TSLog() in Monodevelop though.
René -----Ursprüngliche Nachricht----- Von: Nic Wise [mailto:[email protected]] Gesendet: Sonntag, 15. April 2012 14:29 An: René Ruppert Cc: [email protected] Betreff: Re: [MonoTouch] Testflight SDK 1.0 bindings: EntryPointNotFoundException For some reason, I'm doing a string.Format first, then passing the string into TestFlight.Log. Works fine tho :) Make sure you have the right version of the SDK in the same folder as the bindings. Delete all the .a's - everything but the zip file... On Sun, Apr 15, 2012 at 12:46, René Ruppert <[email protected]> wrote: > Hi, > > I’m trying to use Testflight SDK 1.0 in MT. I built small static > wrapper around it so that TF calls are only made for DEBUG and RELEASE > builds but not for DISTRIBUTION. > I “mad” the Testflight DLL as instructed here > https://github.com/mono/monotouch-bindings. > Then I copied the DLL into my project and referenced it. > > This is the call I’m making: > > [Conditional("DEBUG")] > [Conditional("RELEASE")] > public static void Log(string sMsg, params object[] aArgs) { > DateTime dtNow = DateTime.Now; > TestFlight.Log(dtNow.Hour.ToString("00") + ":" + > dtNow.Minute.ToString("00") + ":" + dtNow.Second.ToString("00") + " " > + sMsg, aArgs); } > > And this is what I’m getting: > > {System.EntryPointNotFoundException: TFLog > at (wrapper managed-to-native) > MonoTouch.TestFlight.TestFlight:WrapperTfLog (intptr) > at MonoTouch.TestFlight.TestFlight.Log (System.String msg, > System.Object[] > args) [0x00000] in <filename unknown>:0 > at iTest.BLTestflight.Log (System.String sMsg, System.Object[] > aArgs) [0x00006] in > /Users/rene/Documents/Develop/Projects/TestApp/210/TestApp/iTest/BLTes > tfligh > t.cs:24 > at iTest.Util.ToLog (System.String sMsg, LogLevel eLogLev) [0x00000] > in > /Users/rene/Documents/Develop/Projects/TestApp/210/TestApp/iTest/Util. > cs:226 > > at iTest.Util.GetDeviceUniqueIdentifier () [0x0006e] in > /Users/rene/Documents/Develop/Projects/TestApp/210/TestApp/iTest/Util. > cs:667 > > at iTest.BLTestflight.TakeOff (System.String sTeamToken) [0x00000] > in > /Users/rene/Documents/Develop/Projects/TestApp/210/TestApp/iTest/BLTes > tfligh > t.cs:14 > at TestApp.AppDelegateBase.FinishedLaunching > (MonoTouch.UIKit.UIApplication application, > MonoTouch.Foundation.NSDictionary launchOptions) [0x00000] in > /Users/rene/Documents/Develop/Projects/TestApp/210/TestApp/TestApp/App > Delega > teBase.cs:563 > at TestApp.AppDelegateIPad.FinishedLaunching > (MonoTouch.UIKit.UIApplication app, MonoTouch.Foundation.NSDictionary > options) [0x00000] in > /Users/rene/Documents/Develop/Projects/TestApp/210/TestApp/TestApp/App > Delega > teIPad.cs:24 > at (wrapper managed-to-native) > MonoTouch.ObjCRuntime.Messaging:void_objc_msgSendSuper_IntPtr > (intptr,intptr,intptr) > at MonoTouch.UIKit.UIApplication.SendEvent (MonoTouch.UIKit.UIEvent > uievent) [0x00037] in > /Developer/MonoTouch/Source/monotouch/src/UIKit/UIApplication.g.cs:176 > at TestApp.UIApplicationMain.SendEvent (MonoTouch.UIKit.UIEvent > oEvent) [0x00000] in > /Users/rene/Documents/Develop/Projects/TestApp/210/TestApp/TestApp/UIA > pplica > tionMain.cs:23 > at (wrapper managed-to-native) > MonoTouch.UIKit.UIApplication:UIApplicationMain > (int,string[],intptr,intptr) > at MonoTouch.UIKit.UIApplication.Main (System.String[] args, > System.String principalClassName, System.String delegateClassName) > [0x00042] in > /Developer/MonoTouch/Source/monotouch/src/UIKit/UIApplication.cs:29 > at TestApp.Application.Main (System.String[] args) [0x00000] in > /Users/rene/Documents/Develop/Projects/TestApp/210/TestApp/TestApp/Mai > n.cs:1 > 5 }= > > Any ideas? > > René > > _______________________________________________ > MonoTouch mailing list > [email protected] > http://lists.ximian.com/mailman/listinfo/monotouch -- Nic Wise t. +44 7788 592 806 | @fastchicken | http://www.linkedin.com/in/nicwise b. http://www.fastchicken.co.nz/ Earnest: Self-employed? Track your business expenses and income. http://earnestapp.com Nearest Bus: find when the next bus is coming to your stop. http://goo.gl/Vcz1p mobileAgent (for FreeAgent): get your accounts in your pocket. http://goo.gl/IuBU Trip Wallet: Keep track of your budget on the go: http://goo.gl/ePhKa London Bike App: Find the nearest Boris Bike, and get riding! http://goo.gl/Icp2 _______________________________________________ MonoTouch mailing list [email protected] http://lists.ximian.com/mailman/listinfo/monotouch
