0
我需要實現我的項目春季跟蹤庫。實現Spring庫跟蹤(移動應用傳感器)
我研究了很多過網,不能爲它找到一個合適的演示。
我發現的全是這個link它演示瞭如何在你的項目中實現這一點,但我得到這個錯誤。
This link給出了上述實施所需的庫。
就如何落實這一任何想法。
這是該代碼我已經實現,但得到的錯誤。
#import "ViewController.h"
#import "SpringOEWA.h"
@interface ViewController()
@end
SpringOEWA* spring;
@implementation ViewController
- (void)viewDidLoad
{
[super viewDidLoad];
// Do any additional setup after loading the view, typically from a nib.
spring = [[SpringOEWA alloc] initWithSiteAndApplication:@"app" application:@"Test App"];
spring.timeout = 30.0; // in seconds
spring.debug = YES;
NSMutableDictionary *dict = [NSMutableDictionary dictionaryWithObjectsAndKeys:@"service/messaging/email",@"cp",nil];
[spring commit:dict];
}
- (void)didReceiveMemoryWarning
{
[super didReceiveMemoryWarning];
// Dispose of any resources that can be recreated.
}
@end
以下錯誤提示了。一個圖書館我有進口。
ld: warning: ignoring file /Users/xyz/Desktop/TestnewSpring/spring-appsensor-iOS-oewa-1.3.2/spring-appsensor-device-oewa.a, missing required architecture i386 in file /Users/xyz/Desktop/TestnewSpring/spring-appsensor-iOS-oewa-1.3.2/spring-appsensor-device-oewa.a (2 slices)
Undefined symbols for architecture i386:
"_OBJC_CLASS_$_ASIdentifierManager", referenced from:
objc-class-ref in spring-appsensor-fat-oewa.a(SpringOEWA.o)
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)