我试图根据子规格排除文件。 Roughlt,我的(本地)podspec看起来像
s.source_files = "all"
s.resources = "some"
s.subspec 'CoreData' do |sp|
sp.exclude_files = ...
end
s.subspec 'Realm' do |sp|
sp.exclude_files = ...
end
当我在我的Podfile中调用pod 'MyPod/Realm'
时,不会导入任何文件。
我错过了什么?
我应该将sp.source_files = "all"
添加到我的子规格中,如果是,为什么?
看来,亚种不会使source_files
属性或resources
属性贬值。
答案 0 :(得分:0)
到目前为止,我的解决方案是
<html>
<head>
<script>
/*call player*/
function callPlayer(frame_id, func, args) {
if (window.jQuery && frame_id instanceof jQuery) frame_id = frame_id.get(0).id;
var iframe = document.getElementById(frame_id);
if (iframe && iframe.tagName.toUpperCase() != 'IFRAME') {
iframe = iframe.getElementsByTagName('iframe')[0];
}
if (iframe) {
// Frame exists,
iframe.contentWindow.postMessage(JSON.stringify({
"event": "command",
"func": func,
"args": args || [],
"id": frame_id
}), "*");
}
}
</script>
</head>
<body>
<div id="whateverID" class="video-container"><iframe width="640" height="390" id="yt" frameborder="0" title="YouTube video player" type="text/html" src="http://www.youtube.com/embed/u1zgFlCw8Aw?enablejsapi=1"></iframe></div>
<div id="playButton" class="playVideo"><a href="javascript:void callPlayer("whateverID","playVideo")">Play button</a></div>
<div class="close_icon" ><a href="javascript:void callPlayer("whateverID","pauseVideo")">Pause close</a></div>
</body>
</html>