小编Cyp*_*yph的帖子

iOS _OBJC_CLASS _ $ _ ASIdentifierManage引自:ViewController.o中的objc-class-ref

我试图在iOS中启动WebView并将IDFA作为GET请求的一部分进行传输,但是当我尝试构建它失败时,我收到以下错误:

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)
Run Code Online (Sandbox Code Playgroud)

这是我的代码.知道我在这里做错了什么,我有点卡住了

    #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 = …
Run Code Online (Sandbox Code Playgroud)

linker-errors ios

11
推荐指数
2
解决办法
3万
查看次数

在PHP中捕获RAW(未解码的)$ _GET数据

我正在运行一些测试,以了解各种浏览器/操作系统之间的微妙细微差别,以及他们如何通过不同的方法,ajax,stand posts&get,jQuery等发送数据.所以我需要捕获数据,因为它来到服务器,没有改变.

我有一个PHP脚本使用php://输入捕获RAW POST数据,但我不清楚如何为通过GET发送的数据实现类似的流.$ _GET数组url解码我的数据,对于我不想要的这组测试.我希望在GET请求中发送RAW URL编码数据.

有没有快速的方法在PHP中执行此操作?

谢谢!

php get capture

5
推荐指数
1
解决办法
1871
查看次数

回调不是一个功能:我做错了什么?

我正在对Redis进行异步调用,并尝试使用回调来通知async.js查询已完成.我一直遇到一个错误,指出"回调不是一个函数".

我在这做错了什么?

            "check": function (redisListItem, dataElement, callback) {
                let lookupKey = redisListItem.table + dataElement;
                let virtualField = redisListItem.virtualName;

                client.get(lookupKey, function (err, reply) {
                        if (err) {
                            return callback(err)
                        }
                        else {
                            session.virtual[virtualField] = reply;
                            callback(session);
                        }

                });
            }
Run Code Online (Sandbox Code Playgroud)

"检查"的呼叫正在进行如下:

    "condition": function(R) {
        var self = this;
        async.series([
            function(R){

/////////THE CALL TO CHECK ////////
                R.check(List.redisTables.List.negEmail, self.customer.email)

            }.bind(this,R),
            function(R) {
                R.when(this.virtual.negEmail === "true")
            }.bind(this,R)
        ])
    }
Run Code Online (Sandbox Code Playgroud)

javascript callback node.js

0
推荐指数
1
解决办法
576
查看次数

标签 统计

callback ×1

capture ×1

get ×1

ios ×1

javascript ×1

linker-errors ×1

node.js ×1

php ×1