我試圖將BugSense綁定到Monotouch。但我有一些問題,現在我會聽到有人在這裏檢查我的綁定嗎?Monotouch綁定
的BugSense標題是這樣的:
#define BUGSENSE_LOG(__EXCEPTION, __TAG) [BugSenseCrashController logException:__EXCEPTION withTag:__TAG]
OBJC_EXPORT @interface BugSenseCrashController : NSObject <UIAlertViewDelegate>
+ (BugSenseCrashController *) sharedInstanceWithBugSenseAPIKey:(NSString *)APIKey;
+ (BugSenseCrashController *) sharedInstanceWithBugSenseAPIKey:(NSString *)APIKey
userDictionary:(NSDictionary *)userDictionary;
+ (BugSenseCrashController *) sharedInstanceWithBugSenseAPIKey:(NSString *)APIKey
userDictionary:(NSDictionary *)userDictionary
sendImmediately:(BOOL)immediately;
+ (BOOL) logException:(NSException *)exception withTag:(NSString *)tag;
@end
我已經加入了結合PROJEKT,在我ApiDefinition.cs寫道:
[BaseType (typeof (NSObject))]
interface BugSenseCrashController
{
[Static]
[Export ("sharedInstanceWithBugSenseAPIKey:")]
BugSenseCrashController SharedInstanceWithBugSenseAPIKey(String APIKey);
[Static]
[Export ("sharedInstanceWithBugSenseAPIKey:userDictionary:")]
BugSenseCrashController SharedInstanceWithBugSenseAPIKey(String APIKey, [NullAllowed] NSDictionary userDictionary);
[Static]
[Export ("sharedInstanceWithBugSenseAPIKey:userDictionary:sendImmediately:")]
BugSenseCrashController SharedInstanceWithBugSenseAPIKey(string APIKey, [NullAllowed] NSDictionary userDictionary, bool immediately);
[Static]
[Export ("sharedInstance")]
BugSenseCrashController SharedInstance();
[Static]
[Export ("logException:withTag:")]
bool LogException (NSException exception, string tag);
}
我的問題是 「UIAlertViewDelegate」 在頁眉。我不能在Monotouch中做「[BaseType(typeof(NSObject))]」。
任何人都可以提供幫助嗎?
問題是將BugSense綁定到Monotouch。我創建了一個Monotouch綁定庫,從BugSenseiOS.Framework中取出二進制文件,將其命名爲bugsense.a並將其添加到綁定項目中。但它沒有用。
我 「LinkWith」:
[assembly: LinkWith ("libBugSense-iOS.a", LinkTarget.ArmV6 | LinkTarget.Thumb | LinkTarget.Simulator, ForceLoad = true, Frameworks="SystemConfiguration", LinkerFlags = "-lz")]
BugSense需要SystemConfiguration.framework和libz.dylib。
鏈接BugSense http://www.bugsense.com/docs/ios
你有一個錯字嗎? '我的問題是。' – jonathanpeppers
嗯你的問題是什麼? – dalexsoto
對不起我的問題的一些部分。已更新它。 – Casper