iOS _OBJC_CLASS_$_ASIdentifierManage referenziert von: objc-class-ref in ViewController.o
Ich versuche zu starten eine WebView in iOS und übertragen der IDFA-als Teil einer GET-Anfrage aber, wenn ich versuche, schlägt es fehl und ich bekomme folgende Fehlermeldung:
Undefined symbols for architecture i386:
"_OBJC_CLASS_$_ASIdentifierManager", referenced from:
objc-class-ref in ViewController.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Hier ist der code, den ich habe. Keine Ahnung, was ich falsch mache hier, ich bin ein bisschen stecken
#import "ViewController.h"
#import "AdSupport/ASIdentifierManager.h"
@interface ViewController ()
@end
@implementation ViewController
@synthesize webView;
- (void)viewDidLoad
{
NSString *idfaString = [[[ASIdentifierManager sharedManager] advertisingIdentifier] UUIDString];
webView.backgroundColor = [UIColor blueColor];
NSURL *url = [NSURL URLWithString:@"http://example.com/"];
NSString *param = [url.path stringByAppendingString: idfaString];
NSURL *send = [[NSURL alloc] initWithString:param];
NSURLRequest *req = [NSURLRequest requestWithURL:send];
[webView loadRequest:req];
[super viewDidLoad];
//Do any additional setup after loading the view, typically from a nib.
}
- (void)didReceiveMemoryWarning
{
[super didReceiveMemoryWarning];
//Dispose of any resources that can be recreated.
}
@end
InformationsquelleAutor Cyph | 2013-12-03
Du musst angemeldet sein, um einen Kommentar abzugeben.
Stellen Sie sicher
ASIdentifierManager.m
aktiviert ist, unter "Ziel-Mitgliedschaft" für Ihr Projekt das Ziel.InformationsquelleAutor rmaddy
In den Fall, Sie sind genau so dumm wie ich sind, vergessen Sie nicht, fügen Sie
AdSupport.framework
in Ihrem Projekt zu.InformationsquelleAutor Enrico Susatyo