BugSense를 모노 터치에 바인딩하려고합니다. 하지만 몇 가지 문제가 있습니다. 여기 누군가가 제 바인딩을 점검한다면 어떻게 될까요?모노 터치 바인딩
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이 필요합니다. http://www.bugsense.com/docs/ios
오타가 있습니까? '내 문제는 .' – jonathanpeppers
음. 네 문제 있니? – dalexsoto
죄송합니다. 제 질문 중 일부가 누락되었습니다. 업데이트했습니다. – Casper