ios - 实现 Spring 库跟踪(移动应用传感器)

标签 ios objective-c spring-mvc linker-errors symbol-not-found

我需要在我的项目中实现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/

相关文章:

Java SpringMVC 异常时的错误对象

ios - 快速设置 TextField 边框样式的功能不起作用

ios - Swift - 编码 URL

iphone - RevMob sdk 5.9.0 在导入 <RevMobAds/RevMobAds.h> 时出现头文件错误

ios - 我如何获得当前的事件 View Controller ?

objective-c - 目标模式不包含 '%' 。生成文件

java - 尝试使用 Spring MVC 在 post 方法中传递 List<T> ?

ios - iOS 中的 TouchBegan 和响应者

objective-c - Objective C - OS X - 将 NSShadow 添加到 NSImageView 时出现问题

没有spring security的java mvc授权