0

我需要在我的项目中实现Spring Tracking Library 。

我在网上进行了很多研究,但找不到合适的演示。

我发现的只是这个链接,它演示了如何在你的项目中实现它,但我在这方面遇到了错误。

链接为上述实现提供了所需的库。

关于如何实现这一点的任何想法。

这是我已经实现的代码,但在此出现错误。

#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)
4

1 回答 1

1

将“AdSupport.framework”添加到您的项目/构建阶段。这对我有用。

于 2013-12-16T10:31:06.843 回答