我需要在我的项目中实现Spring Tracking Library。
我在网上进行了大量研究,但找不到合适的演示。
我找到的就是这个 link 它演示了如何在您的项目中实现这一点,但我在这方面遇到了错误。
这个 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
我导入的.a库提示如下错误。
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)
最佳答案
将“AdSupport.framework”添加到您的项目/构建阶段。这对我有用。
关于ios - 实现 Spring 库跟踪(移动应用传感器),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20540189/