小编Or *_* A.的帖子

xcode-select活动开发人员目录错误

运行npm install所需的node-gyp... 时看到以下错误,但可能由任何需要的东西触发xcode-select.

xcode-select:错误:工具'xcodebuild'需要Xcode,但是活动的开发人员目录'/ Library/Developer/CommandLineTools'是一个命令行工具实例

问题是什么?

macos xcode command-line-tool npm npm-install

601
推荐指数
12
解决办法
28万
查看次数

Facebook即时文章自定义嵌入不提出请求

我正在尝试在FB Instant文章中嵌入我自己的脚本(将iframe注入一些内容).

它似乎仅适用于某些设备(例如iPhone 5s和6s,LG G2),但其他设备(三星设备)似乎没有加载任何东西.

显然问题在于对脚本src的实际请求,但这只是一个假设.(我已将src更改为angular's用于演示).

我试图使用Facebook建议的工具调试这个:链接

我添加了一个我的页面示例(仅供参考,如果将其粘贴到文章编辑器中,它将发出警告).

注意:当我的代码直接插入脚本标记而没有来自某个源的请求时,它会按预期运行.

怎么了?为什么FB Instant Articles不会调用我的脚本?

谢谢

<!doctype html><html><head><link rel="canonical" href="http://news.mywebsite.com/some-canonical-url/"/><meta charset="utf-8"/><meta property="op:generator" content="facebook-instant-articles-sdk-php"/><meta property="op:generator:version" content="1.3.0"/><meta property="op:generator:application" content="facebook-instant-articles-wp"/><meta property="op:generator:application:version" content="2.11"/><meta property="op:generator:transformer" content="facebook-instant-articles-sdk-php"/><meta property="op:generator:transformer:version" content="1.3.0"/><meta property="op:markup_version" content="v1.0"/><meta property="fb:article_style" content="default"/></head><body><article><header><figure><img src="https://www.google.co.il/images/branding/googlelogo/1x/googlelogo_color_272x92dp.png"/></figure><h1>js embed TEST!!!!</h1><time class="op-published" datetime="2016-06-24T13:50:14+00:00">June 24th, 1:50pm</time><time class="op-modified" datetime="2016-07-18T16:21:25+00:00">July 18th, 4:21pm</time><address><a>dev guy</a></address><h3 class="op-kicker">test kicker</h3></header><p><b>Nthi is a TEST</b></p>
<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown …
Run Code Online (Sandbox Code Playgroud)

javascript embed facebook facebook-instant-articles

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