小编Tre*_*vor的帖子

升级到xcode 9后,将无法构建cordova应用程序,错误70,需要配置文件

昨天我们从xcode 8.3.2升级到版本9.现在我们的企业分发apache cordova ios app拒绝构建.

2017-09-21 07:37:16.787 xcodebuild[70400:217569] [MT] IDEDistribution: -[IDEDistributionLogging _createLoggingBundleAtPath:]: Created bundle at path '/var/folders/wj/yj3cfvh954gbc_btlhcrcx7nk7t4dj/T/App Name_2017-09-21_07-37-16.786.xcdistributionlogs'.
2017-09-21 07:37:16.938 xcodebuild[70400:217569] [MT] IDEDistribution: Step failed: <IDEDistributionSigningAssetsStep: 0x7ff756bbdf70>: Error Domain=IDEDistributionSigningAssetStepErrorDomain Code=0 "Locating signing assets failed." UserInfo={NSLocalizedDescription=Locating signing assets failed., IDEDistributionSigningAssetStepUnderlyingErrors=(
    "Error Domain=IDEProvisioningErrorDomain Code=9 \"\"App Name.app\" requires a provisioning profile.\" UserInfo={NSLocalizedDescription=\"App Name.app\" requires a provisioning profile., NSLocalizedRecoverySuggestion=Add a profile to the \"provisioningProfiles\" dictionary in your Export Options property list.}"
)}
error: exportArchive: "App Name.app" requires a provisioning profile.

Error Domain=IDEProvisioningErrorDomain Code=9 ""App …
Run Code Online (Sandbox Code Playgroud)

xcode ios cordova

32
推荐指数
1
解决办法
2万
查看次数

在Javascript中做什么?

我正在学习VueJs,在这个沙箱中https://codesandbox.io/s/o29j95wx9它有像这样的行

<script>
export default {
  props: {
    value: {
      type: String,
      default: '',
    }
  },
  computed: {
    listeners () {
      return {
        // Pass all component listeners directly to input
        ...this.$listeners,
        // Override input listener to work with v-model
        input: event => this.$emit('input', event.target.value)
      }
    }
  }
}
</script>
Run Code Online (Sandbox Code Playgroud)

什么是......this.$listeners,做什么?我尝试搜索它,但每个搜索引擎都会过滤掉该查询.我不知道它叫什么.

我也看到它在这样的vuex中使用过

computed: {
   ...mapGetters({
      currentData: 'viewerGetCurrentDocument',
      folders: 'viewerGetFoldersList'
   }),
Run Code Online (Sandbox Code Playgroud)

javascript

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

执行后是否会自动释放onload事件处理程序?

是匿名时执行的onload事件是在执行后发布的吗?

就像你这样做

var tempImg = new Image()
tempImg.onload = function () {
   alert("loaded");
}
tempImg.src = "https://images.google.ca/images/branding/googlelogo/1x/googlelogo_color_272x92dp.png";
Run Code Online (Sandbox Code Playgroud)

或这个

<img id='img' />
<script>    
    var tempImg = document.getElementById("img")
    tempImg.onload = function () {
       alert("loaded");
    }
    tempImg.src = "https://images.google.ca/images/branding/googlelogo/1x/googlelogo_color_272x92dp.png";
</script>
Run Code Online (Sandbox Code Playgroud)

您是否必须以某种方式清除它以防止在其他地方更改图像时再次触发事件?如果是这样,那么正确的方法是什么?刚设置为undefined?你能在里面清楚吗?

html javascript

3
推荐指数
1
解决办法
454
查看次数

如何将nodejs windows服务设置为高优先级

我有一个节点服务器和脚本,使用https://github.com/jon-hall/pm2-windows-service和 pm2作为 Windows 服务运行。

服务器对时间敏感,我看到硬件 CPU 使用率达到 100% 并且脚本计时超时的情况,有时会超时几分钟。

我想通过将服务设置为高优先级来缓解这种情况。我怎样才能做到这一点?

我找到了一些涉及 VBScript https://serverfault.com/questions/179161/change-windows-service-priority的解决方案,但是是否有 pm2 或节点方式来设置服务或在运行后提升自身?

另外,如果我将其发布在错误的网站上,请发表评论。它有点灰色,因为它既是服务器问题也是编程问题。

windows-services node.js pm2

3
推荐指数
1
解决办法
1970
查看次数

如何从图书馆创建承诺

我对此感到困惑,因为到目前为止我找到的每个教程都假定我可以编辑库代码,或者库只有回调或回调作为最后一个参数.

我正在使用的库具有各种功能设置 function(successCallBack(result), FailCallBack(error),options)

所以在每个实例中,我最终都使用了像

var options={stuff1:1, stuff2:2};

doStuff(success,failure,options);

function success(result){
    //handle, usually with another call to a similar function, chaining callbacks together
};

function failure(error){
     //handle error
};
Run Code Online (Sandbox Code Playgroud)

当我只能控制呼叫,成功和失败时,如何将这些转换为承诺?

此外,作为奖励,链条正在访问它们之外的变量.

var options={stuff1:1, stuff2:2};

doStuff(success,failure,options);

function success(result){
    var options2={stuff1:1, stuff2:2};
    doStuff2(function(result2){
                processStuff(result1, result2);
            },function(error){
                 //handle error
            },options2)
};

function failure(error){
     //handle error
};

function processSuff(result1,result2){
    //do things to results
}
Run Code Online (Sandbox Code Playgroud)

谢谢

javascript promise

2
推荐指数
1
解决办法
71
查看次数

Cordova 8,Android 7.1.0,无法安装任何插件

我尝试安装的每个插件都会抛出错误,说它无法找到清单.这是真的,文件不存在.我试图升级6.4,因为6.4似乎不支持Android上的64位CPU,而无需手动更改构建清单.

Failed to install 'cordova-plugin-geolocation': Error: ENOENT: no such file or directory, open 'C:\...\platforms\android\AndroidManifest.xml'

Failed to install 'cordova-plugin-file': Error: ENOENT: no such file or directory, open 'C:\..\platforms\android\AndroidManifest.xml'

Failed to install 'cordova-plugin-google-analytics': Error: ENOENT: no such file or directory, open 'C:\...\platforms\android\AndroidManifest.xml'

Failed to install 'cordova-plugin-inappbrowser': Error: ENOENT: no such file or directory, open 'C:\...\platforms\android\AndroidManifest.xml'

Failed to install 'cordova-plugin-whitelist': Error: ENOENT: no such file or directory, open 'C:\...\platforms\android\AndroidManifest.xml'

Failed to install 'cordova-plugin-network-information': Error: ENOENT: no such file or directory, open 'C:\...\platforms\android\AndroidManifest.xml'

Failed …

android cordova

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

标签 统计

javascript ×3

cordova ×2

android ×1

html ×1

ios ×1

node.js ×1

pm2 ×1

promise ×1

windows-services ×1

xcode ×1